Each CSS property of the skin has a category, a type, a default value and a LESS or color theme mapping, with an example.
InformationAs an implementation of the Abstract Design System, the CSS properties in Flamingo should include all the ones defined in the ADS.
- Name: The name of the property. It can be used with the syntax
var(--<name>) - Type: The property type, as defined in the CSS data types specifications. Other data types must be used carefully as values for this property.
- Default value: The computed value of this property on a XWiki Standard instance using the Iceberg colortheme, which is the value the browser ends up with on the root element. References to other properties are already resolved: a property declared as
var(--brand-info) is listed with the resulting #3bb2d0, so the column does not show which properties follow each other. Formulas such as calc() and color-mix() are evaluated too, and the column shows their result on a reference setup: a 1920px wide desktop window and the 14px root font size of the skin. Values declared with a relative unit such as rem are kept as declared. Not set means the property has no value by default: it only gets one once a color theme or a custom style defines it. - Backwards compatibility: How the property maps onto the former customization mechanisms, shown as the colour-coded pills described below.
- Example: When using this property, make sure it makes sense to use the same as this UI. When updating its value, it's the element you can check to figure out how your change impacts the default XWiki UI.
Each piece of backwards-compatibility information is shown as its own pill. The LESS pill is colour-coded by the level of support, and a separate pill is added for the legacy color theme mapping:
- LESS there is a Flamingo LESS variable and it is editable in the Flamingo Theme Editor.
- LESS there is a LESS variable, coming from Bootstrap or defined by XWiki: it can be overridden through LESS but is not exposed in the Theme Editor.
- LESS there is no LESS equivalent — the property is CSS-only.
- colorThemeField the property is mapped from a legacy Colibri color theme field (the pill shows the field name).
All properties have been available as CSS variables since 17.3.0 unless a since note indicates otherwise.
Brand & Status Colors
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --brand-primary | <color> | #2f70a7 | LESSbuttonPrimaryBackgroundColor | Color of the success icon and progress-bar fill of the attachment upload widget. |
| --brand-success | <color> | #077537 | LESSnotificationSuccessColor | Color of the "installed" extension status label in the Extension Manager. |
| --brand-info | <color> | #3bb2d0 | LESSnotificationInfoColor | Border color of the checked option in the Required Rights dialog. |
| --brand-warning | <color> | #f0ad4e | LESSnotificationWarningColor | Color of the "available"/remote extension status label in the Extension Manager. |
| --brand-danger | <color> | #ca302c | LESSnotificationErrorColor | Color of the "invalid" extension status label and the comment delete icon. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --text-color | <color> | #222222 | LESStextColor | Color of the default body text (macro names, button-group menu items, Required Rights labels). |
| --text-muted | <color> | #555 | LESS | Color of secondary, de-emphasized text such as comment headers, extension authors and the "supported by" labels. |
| --headings-color | <color> | inherit | LESStitleColor | Color of headings h1–h6. |
| --headings-font-weight | <number> | 400 | LESS | Font weight of headings h1–h6. |
| --link-color | <color> | #2f6faf | linkColor | Color of links such as the search-suggest "show all results" action. |
| --font-family-base | <string> | Open Sans, sans-serif | LESS | Font family used as the base for body text. |
| --font-family-sans-serif | <string> | "Helvetica Neue", Helvetica, Arial, sans-serif | LESS | Font stack of sans-serif fonts used as the base body font. |
| --font-family-serif | <string> | Georgia, "Times New Roman", Times, serif | LESS | Font stack of serif fonts available for serif text. |
| --font-family-monospace | <string> | Georgia, "Times New Roman", Times, serif | LESS | Font stack of monospace fonts used for code and pre blocks. |
| --font-size-base | <length> | 1rem | LESS | Font size used as the base from which the other text and heading sizes are derived. |
| --font-size-small | <length> | .85rem | LESS | Font size for small/secondary text. |
| --font-weight-regular | <number> | 400 | LESS | Weight token for regular text, used for instance by form labels. |
| --font-weight-semibold | <number> | 600 | LESS | Weight of emphasized labels: comment author, file name, current pagination page and suggest source names. |
| --font-weight-bold | <number> | 700 | LESS | Weight token for bold text. |
Font sizes for headings scale fluidly between --min-screen-size and --max-screen-size using a typographic scale. The intermediate min- and max- properties are lengths computed from --font-size-base, used in the calc() expressions. Their LESS counterparts are unitless pixel values.
The default values below are the ones on the reference setup, a 1920px wide window. That is wider than --max-screen-size, so the heading and title font sizes sit at their maximum there, and they get closer to the matching min- property on a narrower window.
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --font-size-headings-scale | <number> | 1.190 | LESS | Ratio of the typographic scale used to compute heading sizes at the largest screen width. |
| --font-size-headings-scale-min | <number> | 1.125 | LESS | Ratio of the typographic scale used to compute heading sizes at the smallest screen width. |
| --min-screen-size | <number> | 768 | LESS | Bound (px) for the lower screen width in the fluid heading-size interpolation. |
| --max-screen-size | <number> | 1200 | LESS | Bound (px) for the upper screen width in the fluid heading-size interpolation. |
| --min-document-title-font-size | <length> | 26px | LESS | Value (small-screen minimum) used in the fluid document-title font-size calc. Rounded up to a whole pixel since 18.10.0. |
| --max-document-title-font-size | <length> | 34px | LESS | Value (large-screen maximum) used in the fluid document-title font-size calc. Rounded up to a whole pixel since 18.10.0. |
| --font-size-document-title | <length> | 34px | LESS | Font size of the page/document title. |
| --min-h1-font-size | <length> | 22.43px | LESS | Value (small-screen minimum) used in the fluid h1 font-size calc. |
| --max-h1-font-size | <length> | 28.07px | LESS | Value (large-screen maximum) used in the fluid h1 font-size calc. |
| --font-size-h1 | <length> | 28.07px | LESS | Font size of h1 headings, used e.g. for the macro wizard title. |
| --min-h2-font-size | <length> | 19.93px | LESS | Value (small-screen minimum) used in the fluid h2 font-size calc. |
| --max-h2-font-size | <length> | 23.59px | LESS | Value (large-screen maximum) used in the fluid h2 font-size calc. |
| --font-size-h2 | <length> | 23.59px | LESS | Font size of h2 headings. |
| --min-h3-font-size | <length> | 17.72px | LESS | Value (small-screen minimum) used in the fluid h3 font-size calc. |
| --max-h3-font-size | <length> | 19.83px | LESS | Value (large-screen maximum) used in the fluid h3 font-size calc. |
| --font-size-h3 | <length> | 19.83px | LESS | Font size of h3 headings. |
| --min-h4-font-size | <length> | 15.75px | LESS | Value (small-screen minimum) used in the fluid h4 font-size calc. |
| --max-h4-font-size | <length> | 16.66px | LESS | Value (large-screen maximum) used in the fluid h4 font-size calc. |
| --font-size-h4 | <length> | 16.66px | LESS | Font size of h4 headings. |
| --font-size-h5 | <length> | 1rem | LESS | Font size of h5 headings. |
| --min-h6-font-size | <length> | 11.76px | LESS | Value (small-screen minimum) used in the fluid h6 font-size calc. |
| --max-h6-font-size | <length> | 12.44px | LESS | Value (large-screen maximum) used in the fluid h6 font-size calc. |
| --font-size-h6 | <length> | 12.44px | LESS | Font size of h6 headings. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --body-bg | <color> | #fafafa | LESSpageBackgroundColor | Background color of the page body. |
| --xwiki-page-content-bg | <color> | #FFFFFF | LESSpageContentBackgroundColor | Background of the page content area, suggest dropdowns, the extension search input and button-group menus. |
| --xwiki-background-secondary-color | <color> | #fafafa | backgroundSecondaryColor | Background color (secondary) used for instance by the attachment upload status container. |
| --xwiki-border-color | <color> | #E8E8E8 | borderColor | Border color of dropdowns, suggest result lists and the extension body container. |
| --xwiki-page-header-bg-color | <color> | #FFFFFF | pageHeaderBackgroundColor | Background color of the page header. |
| --xwiki-page-header-bg-image | <image> | "" | headerBackgroundImage | Background image of the page header. |
| --xwiki-page-header-bg-position | <position> | "" | headerBackgroundPosition | Background image position of the page header. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --btn-font-weight | <number> | normal | LESS | Font weight of buttons (.btn). |
| --btn-default-color | <color> | #4d5860 | LESSbuttonSecondaryTextColor | Text color of default buttons (.btn-default); also the active pagination button text. |
| --btn-default-bg | <color> | #f8f8f8 | LESSbuttonSecondaryBackgroundColor | Background of default buttons (.btn-default); also the active pagination button. |
| --btn-default-border | <color> | #ccc | LESS | Border color of default buttons; e.g. the separator before a button-group dropdown toggle. |
| --btn-primary-color | <color> | #fff | LESSbuttonPrimaryTextColor | Text color of primary buttons (.btn-primary). |
| --btn-primary-bg | <color> | #386da7 | LESSbuttonPrimaryBackgroundColor | Background of primary buttons (.btn-primary). |
| --btn-success-color | <color> | #fff | LESSmenuAddEntryLinkColor | Text color of success buttons (.btn-success). |
| --btn-success-bg | <color> | #077537 | LESSmenuAddEntryBackgroundColor | Background of success buttons (.btn-success). |
| --btn-info-color | <color> | #000000 | LESS | Text color of info buttons (.btn-info). |
| --btn-info-bg | <color> | #3bb2d0 | LESS | Background of info buttons (.btn-info). |
| --btn-warning-color | <color> | #000000 | LESS | Text color of warning buttons (.btn-warning). |
| --btn-warning-bg | <color> | #ffd483 | LESS | Background of warning buttons (.btn-warning). |
| --btn-danger-color | <color> | #fff | LESS | Text color of danger buttons (.btn-danger). |
| --btn-danger-bg | <color> | #ca302c | LESS | Background of danger buttons (.btn-danger). |
| --button-spacing | <length> | 2px | LESS | Spacing between adjacent buttons. |
| --button-border-width | <length> | 1px | LESS | Border width of buttons. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --navbar-height | <length> | 50px | LESS | Height of the top navigation bar (.navbar). |
| --navbar-default-color | <color> | #fff | LESSmenuLinkColor | Text color of the top navigation bar (.navbar-default). |
| --navbar-default-bg | <color> | #3E79BC | LESSmenuBackgroundColor | Background color of the top navigation bar (.navbar-default). |
| --navbar-default-link-color | <color> | #fff | LESSmenuLinkColor | Link color in the top navigation bar (.navbar-default). |
| --navbar-default-link-hover-color | <color> | #fff | LESSmenuLinkColor | Link hover color in the top navigation bar. |
| --navbar-default-link-hover-bg | <color> | #2f6ead | LESSmenuBackgroundColor | Link hover background in the top navigation bar. |
| --navbar-default-link-active-color | <color> | #fff | LESSmenuLinkColor | Color of active links in the top navigation bar. |
| --navbar-default-link-active-bg | <color> | #3E79BC | LESSmenuBackgroundColor | Background of active links in the top navigation bar. |
| --navbar-default-link-disabled-color | <color> | Not set | menuContentLinkColor | Color of disabled links in the top navigation bar. |
| --navbar-default-toggle-border-color | <color> | #E8E8E8 | borderColor | Border color of the navbar collapse toggle (mobile menu button). |
| --menu-default-color | <color> | #fff | LESS | Text color of menus (derived from the navbar color). |
| --menu-default-link-color | <color> | #fff | LESS | Link color of menus. |
| --menu-default-link-hover-color | <color> | #fff | LESS | Link hover color of menus. |
| --menu-default-link-hover-bg | <color> | #2f6ead | LESS | Link hover background of menus. |
| --menu-default-link-active-color | <color> | #fff | LESS | Color of active menu links. |
| --menu-default-link-active-bg | <color> | #3E79BC | LESS | Background of active menu links. |
| --menu-height | <length> | 1.5lh | LESS | Height of menu entries. |
| --menu-default-border | <color> | Not set | LESS | Border color of menus. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --dropdown-bg | <color> | #FFFFFF | LESSpageContentBackgroundColor | Background of dropdown menus (.dropdown-menu). |
| --dropdown-border | <color> | rgba(0, 0, 0, .15) | LESS | Border color of dropdown menus (.dropdown-menu). |
| --dropdown-link-color | <color> | #222222 | LESStextColor | Item text color in dropdown menus. |
| --dropdown-link-hover-color | <color> | #333 | LESStextColor | Item hover text color in dropdown menus. |
| --dropdown-link-hover-bg | <color> | #f5f5f5 | LESSsubmenuContentBackgroundColor | Item hover background in dropdown menus. |
| --dropdown-divider-bg | <color> | #e5e5e5 | LESS | Color of dropdown dividers; also the hover border of pagination buttons. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --input-bg | <color> | #fff | LESS | Background of form inputs and TomSelect (selectize) controls. |
| --input-border | <color> | #E8E8E8 | LESSborderColor | Border color of form inputs and TomSelect (selectize) controls. |
| --input-color | <color> | Not set | LESS | Text color of form inputs and TomSelect (selectize) controls. |
| --input-border-focus | <color> | #66afe9 | LESS | Focus border color of form inputs and TomSelect (selectize) controls. |
| --input-color-placeholder | <color> | #727272 | LESS | Placeholder text color of form inputs. |
| --legend-color | <color> | #333 | LESS | Text color of form legend elements. |
| --legend-border-color | <color> | #e5e5e5 | LESS | Border under form legend elements; also macro parameter group tab content in the macro wizard. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --panel-bg | <color> | #fafafa | LESSpanelBackgroundColor | Background of panels (.panel); e.g. the Required Rights dialog selection panel. |
| --panel-default-text | <color> | #333333 | LESSpanelTextColor | Text color of panels; e.g. the Required Rights dialog selection panel. |
| --panel-default-heading-bg | <color> | #f5f5f5 | LESSsince 18.9.0 | Background of default panel headings; e.g. the Live Data entry selection bar, the hover state of the delete buttons in the Live Data filter and sort panels, and the Live Data loading shimmer. |
| --panel-header-bg | <color> | #ECECEC | panelHeaderBackgroundColor | Background of panel headers. |
| --panel-header-text | <color> | #4D5860 | LESSpanelHeaderTextColor | Text color of panel headers. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --breadcrumb-bg | <color> | #f8f8f8 | LESS | Background of breadcrumbs; also the Extension Manager search bar. |
| --breadcrumb-color | <color> | #727272 | LESS | Text color of breadcrumbs. |
| --breadcrumb-link-color | <color> | #2f6faf | LESS | Link color in breadcrumbs. |
| --breadcrumb-active-color | <color> | #707070 | LESS | Color of the active (current page) breadcrumb item. |
| --breadcrumb-separator | <string> | / | LESS | Character used to separate breadcrumb items. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --table-bg | <color> | Not set | LESS | Background color of tables (.table). |
| --table-bg-hover | <color> | #f5f5f5 | LESS | Row hover background color of tables (.table-hover). |
| --table-border-color | <color> | #ddd | LESS | Border color of tables (.table). |
| --table-cell-padding | <length> | 8px | LESSsince 18.9.0 | Padding of table cells; e.g. the horizontal padding of the Live Data header and filter cells. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --nav-tabs-border-color | <color> | #E8E8E8 | borderColor | Border color of navigation tabs (.nav-tabs). |
| --nav-tabs-active-link-hover-bg | <color> | #FFFFFF | pageContentBackgroundColor | Background of the active navigation tab (.nav-tabs). |
| --nav-tabs-active-link-hover-border-color | <color> | #E8E8E8 | borderColor | Border color of the active navigation tab. |
| --nav-link-hover-bg | <color> | #eeeeee | highlightColor | Background of menu items on hover/active (button-group menus, extension menu tabs, macro list, tree nodes). |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --list-group-border | <color> | #E8E8E8 | borderColor | Border color of list-group items (.list-group-item). |
| --list-group-hover-bg | <color> | #f5f5f5 | LESS | Background of list-group items on hover. |
| --list-group-link-color | <color> | #555 | LESS | Link text color in list-group items. |
| --list-group-link-hover-color | <color> | #555 | LESS | Link hover text color in list-group items. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --pagination-border | <color> | #E8E8E8 | borderColor | Border color of pagination links (.pagination). |
| --pagination-hover-border | <color> | #E8E8E8 | borderColor | Border color of pagination links on hover. |
| --pagination-disabled-border | <color> | #E8E8E8 | borderColor | Border color of disabled pagination links. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --alert-success-bg | <color> | #e5f3df | LESS | Background of success alerts (.alert-success). |
| --alert-info-bg | <color> | #e1f1f9 | LESS | Background of info alerts (.alert-info); also the in-progress upload bar and Required Rights dialog highlights. |
| --alert-danger-bg | <color> | #f8ecec | LESS | Background of danger alerts (.alert-danger); also the attachment upload error state. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --component-active-color | <color> | #555 | LESS | Text color of active components, e.g. selected list or dropdown items. |
| --component-active-bg | <color> | #f5f5f5 | LESS | Background of active components, e.g. selected list or dropdown items. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --border-width | <length> | 1px | LESS | Border width (default); e.g. the separator before a button-group dropdown toggle. |
| --border-radius-base | <length> | 7px | LESS | Corner rounding (default radius) of suggest/search dropdowns and the extension search bar. |
| --border-radius-large | <length> | 10px | LESS | Corner rounding (large radius), e.g. the attachment upload status container. |
| --border-radius-small | <length> | 5px | LESS | Corner rounding (small radius) of the global header search input and the upload progress bar. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --grid-gutter-width | <length> | 30px | LESS | Gutter spacing (horizontal) for the left/right panel columns. |
| --main-padding | <length> | 60px | LESS | Padding around the main page content area. |
| --padding-base-horizontal | <length> | 12px | LESSsince 18.9.0 | Padding (horizontal) of default buttons and inputs (.btn, .form-control); e.g. used to align the annotation toolbar buttons with the annotation text. |
| --padding-large-vertical | <length> | 10px | LESS | Padding (vertical) of large buttons and inputs (.btn-lg, .input-lg). |
| --screen-xs-max | <length> | 767px | LESSsince 18.9.0 | Screen width (maximum) of the extra-small breakpoint. Media queries keep using the @screen-xs-max LESS variable, since a CSS property cannot be read in an @media condition. |
| --spacing-base | <length> | 4px | LESSsince 18.10.0 | Base step of the spacing scale; the other --spacing-* properties are multiples of it. E.g. the inner padding of the administration category cards. |
| --spacing-small | <length> | calc(var(--spacing-base) / 2) (2px) | LESSsince 18.10.0 | Spacing of half a base step. |
| --spacing-medium | <length> | calc(var(--spacing-base) * 2) (8px) | LESSsince 18.10.0 | Spacing of two base steps; e.g. the gap between the administration category cards, and between a card icon and its text. |
| --spacing-large | <length> | calc(var(--spacing-base) * 3) (12px) | LESSsince 18.10.0 | Spacing of three base steps. |
| --spacing-xlarge | <length> | calc(var(--spacing-base) * 4) (16px) | LESSsince 18.10.0 | Spacing of four base steps; e.g. the padding around the administration category icons. |
| --spacing-xxlarge | <length> | calc(var(--spacing-base) * 6) (24px) | LESSsince 18.10.0 | Spacing of six base steps. |
| --spacing-xxxlarge | <length> | calc(var(--spacing-base) * 8) (32px) | LESSsince 18.10.0 | Spacing of eight base steps. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --figure-caption-font-size | <percentage> | 90% | LESS | Font size of figure captions (figcaption). |
| --figure-caption-color | <color> | #555 | LESS | Text color of figure captions (figcaption). |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --mark-bg | <color> | #ffe9c1 | LESSsince 18.0.0 | Background of highlighted text (mark). |
| --mark-updated-bg | <color> | #f6cdb2 | LESSsince 18.0.0 | Background marking updated text in diffs. |
| --mark-altered-bg | <color> | #e49896 | LESSsince 18.0.0 | Background marking altered/removed text in diffs. |
| --mark-highlighted-bg | <color> | #ffd483 | LESSsince 18.0.0 | Background of strongly highlighted text. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --target-size-minimum | <length> | 24px | LESS | Touch-target size (WCAG minimum), e.g. the lightbox toggle button. |
| --target-size-recommended | <length> | 44px | LESS | Touch-target size (WCAG recommended), e.g. the image toolbar buttons. |
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --state-danger-text | <color> | #a94442 | LESS | Text color of the danger/error state, e.g. the attachment upload error message. |
| --state-success-text | <color> | #3c763d | LESSsince 18.10.0 | Text color of the success state, e.g. the border of a suggest picker inside .has-success. |
| --state-warning-text | <color> | #8a6d3b | LESSsince 18.10.0 | Text color of the warning state, e.g. the border of a suggest picker inside .has-warning. |
| --thumbnail-border | <color> | #E8E8E8 | borderColor | Border color of image thumbnails (.thumbnail). |
| --login-form-max-width | <length> | 450px | LESSsince 17.9.0 | Width (maximum) of the login form. |
These variables are used internally by the responsive font-size system and should generally not be overridden.
WarningAvoid using these properties in customizations. They are part of a workaround to get a unitless screen width, which might get removed from XWiki once CSS offers a native way to do it.
| Name | Type | Default value | Backwards compatibility | Description |
|---|
| --100vw | <length> | 100vw | LESS | Viewport width (full) used by the responsive font-size system. |
| --int-viewport-width | <number> | 1920 | LESS | Viewport width (integer, unitless) computed for the responsive font-size calculations. |