CSS properties

Last modified by Lucas Charpentier on 2026/06/26 16:30

Information

As 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 default value of this property on a XWiki Standard instance using the Iceberg colortheme.
  • 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 Bootstrap LESS variable: 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).
  • TODO the backwards-compatibility status still has to be documented.

All properties have been available as CSS variables since 17.3.0 unless a since note indicates otherwise.

Brand & Status Colors

NameTypeDefault valueBackwards compatibilityDescription
--brand-primary<color>#2f70a7LESSbuttonPrimaryBackgroundColorColor of the success icon and progress-bar fill of the attachment upload widget.
--brand-success<color>#077537LESSnotificationSuccessColorColor of the "installed" extension status label in the Extension Manager.
--brand-info<color>#3bb2d0LESSnotificationInfoColorBorder color of the checked option in the Required Rights dialog.
--brand-warning<color>#f0ad4eLESSnotificationWarningColorColor of the "available"/remote extension status label in the Extension Manager.
--brand-danger<color>#cc3333LESSnotificationErrorColorColor of the "invalid" extension status label and the comment delete icon.

Text & Typography

NameTypeDefault valueBackwards compatibilityDescription
--text-color<color>#222222LESStextColorColor of the default body text (macro names, button-group menu items, Required Rights labels).
--text-muted<color>#555TODOColor of secondary, de-emphasized text such as comment headers, extension authors and the "supported by" labels.
--headings-color<color>inheritLESStitleColorColor of headings h1–h6.
--headings-font-weight<number>400TODOFont weight of headings h1–h6.
--link-color<color>#2f6faflinkColorColor of links such as the search-suggest "show all results" action.
--font-family-base<string>var(--font-family-sans-serif)LESSFont family used as the base for body text.
--font-family-sans-serif<string>"Helvetica Neue", Helvetica, Arial, sans-serifLESSFont stack of sans-serif fonts used as the base body font.
--font-family-serif<string>Georgia, "Times New Roman", Times, serifLESSFont stack of serif fonts available for serif text.
--font-family-monospace<string>Georgia, "Times New Roman", Times, serifLESSFont stack of monospace fonts used for code and pre blocks.
--font-size-base<length>1remLESSFont size used as the base from which the other text and heading sizes are derived.
--font-size-small<length>.85remLESSFont size for small/secondary text.
--font-weight-regular<number>400LESSWeight token for regular text, used for instance by form labels.
--font-weight-semibold<number>700LESSWeight of emphasized labels: comment author, file name, current pagination page and suggest source names.
--font-weight-bold<number>900LESSWeight token for bold text.

Fluid Heading Font Sizes

Font sizes for headings scale fluidly between --min-screen-size and --max-screen-size using a typographic scale. The intermediate min- and max- variables are unitless pixel values used in the calc() expressions.

NameTypeDefault valueBackwards compatibilityDescription
--font-size-headings-scale<number>1.190TODORatio of the typographic scale used to compute heading sizes at the largest screen width.
--font-size-headings-scale-min<number>1.125TODORatio of the typographic scale used to compute heading sizes at the smallest screen width.
--min-screen-size<number>768TODOBound (px) for the lower screen width in the fluid heading-size interpolation.
--max-screen-size<number>1200TODOBound (px) for the upper screen width in the fluid heading-size interpolation.
--min-document-title-font-size<number>calc(var(--font-size-base) * pow(var(--font-size-headings-scale-min), 5))TODOValue (small-screen minimum) used in the fluid document-title font-size calc.
--max-document-title-font-size<number>calc(var(--font-size-base) * pow(var(--font-size-headings-scale), 5))TODOValue (large-screen maximum) used in the fluid document-title font-size calc.
--font-size-document-title<length>See variablelist.vmTODOFont size of the page/document title.
--min-h1-font-size<number>calc(var(--font-size-base) * pow(var(--font-size-headings-scale-min), 4))TODOValue (small-screen minimum) used in the fluid h1 font-size calc.
--max-h1-font-size<number>calc(var(--font-size-base) * pow(var(--font-size-headings-scale), 4))TODOValue (large-screen maximum) used in the fluid h1 font-size calc.
--font-size-h1<length>See variablelist.vmLESSFont size of h1 headings, used e.g. for the macro wizard title.
--min-h2-font-size<number>calc(var(--font-size-base) * pow(var(--font-size-headings-scale-min), 3))TODOValue (small-screen minimum) used in the fluid h2 font-size calc.
--max-h2-font-size<number>calc(var(--font-size-base) * pow(var(--font-size-headings-scale), 3))TODOValue (large-screen maximum) used in the fluid h2 font-size calc.
--font-size-h2<length>See variablelist.vmLESSFont size of h2 headings.
--min-h3-font-size<number>calc(var(--font-size-base) * pow(var(--font-size-headings-scale-min), 2))TODOValue (small-screen minimum) used in the fluid h3 font-size calc.
--max-h3-font-size<number>calc(var(--font-size-base) * pow(var(--font-size-headings-scale), 2))TODOValue (large-screen maximum) used in the fluid h3 font-size calc.
--font-size-h3<length>See variablelist.vmLESSFont size of h3 headings.
--min-h4-font-size<number>calc(var(--font-size-base) * pow(var(--font-size-headings-scale-min), 1))TODOValue (small-screen minimum) used in the fluid h4 font-size calc.
--max-h4-font-size<number>calc(var(--font-size-base) * pow(var(--font-size-headings-scale), 1))TODOValue (large-screen maximum) used in the fluid h4 font-size calc.
--font-size-h4<length>See variablelist.vmLESSFont size of h4 headings.
--font-size-h5<length>var(--font-size-base)LESSFont size of h5 headings.
--min-h6-font-size<number>calc(var(--font-size-base) * pow(var(--font-size-headings-scale), -1))TODOValue (small-screen minimum) used in the fluid h6 font-size calc.
--max-h6-font-size<number>calc(var(--font-size-base) * pow(var(--font-size-headings-scale-min), -1))TODOValue (large-screen maximum) used in the fluid h6 font-size calc.
--font-size-h6<length>See variablelist.vmLESSFont size of h6 headings.

Page & Background

NameTypeDefault valueBackwards compatibilityDescription
--body-bg<color>#fafafaLESSpageBackgroundColorBackground color of the page body.
--xwiki-page-content-bg<color>#FFFFFFLESSpageContentBackgroundColorBackground of the page content area, suggest dropdowns, the extension search input and button-group menus.
--xwiki-background-secondary-color<color>#fafafabackgroundSecondaryColorBackground color (secondary) used for instance by the attachment upload status container.
--xwiki-border-color<color>#E8E8E8borderColorBorder color of dropdowns, suggest result lists and the extension body container.
--xwiki-page-header-bg-color<color>#FFFFFFpageHeaderBackgroundColorBackground color of the page header.
--xwiki-page-header-bg-image<image>""headerBackgroundImageBackground image of the page header.
--xwiki-page-header-bg-position<position>""headerBackgroundPositionBackground image position of the page header.

Buttons

NameTypeDefault valueBackwards compatibilityDescription
--btn-font-weight<number>normalLESSFont weight of buttons (.btn).
--btn-default-color<color>#4d5860LESSbuttonSecondaryTextColorText color of default buttons (.btn-default); also the active pagination button text.
--btn-default-bg<color>#f8f8f8LESSbuttonSecondaryBackgroundColorBackground of default buttons (.btn-default); also the active pagination button.
--btn-default-border<color>#cccLESSBorder color of default buttons; e.g. the separator before a button-group dropdown toggle.
--btn-primary-color<color>#fffLESSbuttonPrimaryTextColorText color of primary buttons (.btn-primary).
--btn-primary-bg<color>#386da7LESSbuttonPrimaryBackgroundColorBackground of primary buttons (.btn-primary).
--btn-success-color<color>#fffLESSmenuAddEntryLinkColorText color of success buttons (.btn-success).
--btn-success-bg<color>TODOLESSmenuAddEntryBackgroundColorBackground of success buttons (.btn-success).
--btn-info-color<color>#fffLESSText color of info buttons (.btn-info).
--btn-info-bg<color>var(--brand-info)LESSBackground of info buttons (.btn-info).
--btn-warning-color<color>#000LESSText color of warning buttons (.btn-warning).
--btn-warning-bg<color>var(--brand-warning)LESSBackground of warning buttons (.btn-warning).
--btn-danger-color<color>#fffLESSText color of danger buttons (.btn-danger).
--btn-danger-bg<color>#ca302cLESSBackground of danger buttons (.btn-danger).
--button-spacing<length>2pxTODOSpacing between adjacent buttons.
--button-border-width<length>1pxTODOBorder width of buttons.

Navigation & Menu

NameTypeDefault valueBackwards compatibilityDescription
--navbar-height<length>50pxLESSHeight of the top navigation bar (.navbar).
--navbar-default-color<color>#727272LESSmenuLinkColorText color of the top navigation bar (.navbar-default).
--navbar-default-bg<color>TODOLESSmenuBackgroundColorBackground color of the top navigation bar (.navbar-default).
--navbar-default-link-color<color>#727272LESSmenuLinkColorLink color in the top navigation bar (.navbar-default).
--navbar-default-link-hover-color<color>TODOLESSmenuLinkColorLink hover color in the top navigation bar.
--navbar-default-link-hover-bg<color>TODOLESSmenuBackgroundColorLink hover background in the top navigation bar.
--navbar-default-link-active-color<color>TODOLESSmenuLinkColorColor of active links in the top navigation bar.
--navbar-default-link-active-bg<color>TODOLESSmenuBackgroundColorBackground of active links in the top navigation bar.
--navbar-default-link-disabled-color<color>TODOmenuContentLinkColorColor of disabled links in the top navigation bar.
--navbar-default-toggle-border-color<color>TODOborderColorBorder color of the navbar collapse toggle (mobile menu button).
--menu-default-color<color>var(--navbar-default-color)TODOText color of menus (derived from the navbar color).
--menu-default-link-color<color>var(--navbar-default-link-color)TODOLink color of menus.
--menu-default-link-hover-color<color>var(--navbar-default-link-hover-color)TODOLink hover color of menus.
--menu-default-link-hover-bg<color>var(--navbar-default-link-hover-bg)TODOLink hover background of menus.
--menu-default-link-active-color<color>var(--navbar-default-link-active-color)TODOColor of active menu links.
--menu-default-link-active-bg<color>var(--navbar-default-link-active-bg)TODOBackground of active menu links.
--menu-height<length>1.5lhTODOHeight of menu entries.
--menu-default-border<color>var(--navbar-default-border)TODOBorder color of menus.

Dropdowns

NameTypeDefault valueBackwards compatibilityDescription
--dropdown-bg<color>TODOLESSpageContentBackgroundColorBackground of dropdown menus (.dropdown-menu).
--dropdown-border<color>rgba(0, 0, 0, .15)LESSBorder color of dropdown menus (.dropdown-menu).
--dropdown-link-color<color>TODOLESStextColorItem text color in dropdown menus.
--dropdown-link-hover-color<color>TODOLESStextColorItem hover text color in dropdown menus.
--dropdown-link-hover-bg<color>TODOLESSsubmenuContentBackgroundColorItem hover background in dropdown menus.
--dropdown-divider-bg<color>#e5e5e5LESSColor of dropdown dividers; also the hover border of pagination buttons.

Inputs & Forms

NameTypeDefault valueBackwards compatibilityDescription
--input-bg<color>#fffLESSBackground of form inputs and TomSelect (selectize) controls.
--input-border<color>TODOLESSborderColorBorder color of form inputs and TomSelect (selectize) controls.
--input-color<color>TODOLESSText color of form inputs and TomSelect (selectize) controls.
--input-border-focus<color>#66afe9LESSFocus border color of form inputs and TomSelect (selectize) controls.
--input-color-placeholder<color>#727272LESSPlaceholder text color of form inputs.
--legend-color<color>#333LESSText color of form legend elements.
--legend-border-color<color>#e5e5e5LESSBorder under form legend elements; also macro parameter group tab content in the macro wizard.

Panels

NameTypeDefault valueBackwards compatibilityDescription
--panel-bg<color>TODOLESSpanelBackgroundColorBackground of panels (.panel); e.g. the Required Rights dialog selection panel.
--panel-default-text<color>TODOLESSpanelTextColorText color of panels; e.g. the Required Rights dialog selection panel.
--panel-header-bg<color>TODOpanelHeaderBackgroundColorBackground of panel headers.
--panel-header-text<color>TODOLESSpanelHeaderTextColorText color of panel headers.

Breadcrumbs

NameTypeDefault valueBackwards compatibilityDescription
--breadcrumb-bg<color>#f5f5f5LESSBackground of breadcrumbs; also the Extension Manager search bar.
--breadcrumb-color<color>#707070LESSText color of breadcrumbs.
--breadcrumb-link-color<color>var(--link-color)LESSLink color in breadcrumbs.
--breadcrumb-active-color<color>#707070TODOColor of the active (current page) breadcrumb item.
--breadcrumb-separator<string>/LESSCharacter used to separate breadcrumb items.

Tables

NameTypeDefault valueBackwards compatibilityDescription
--table-bg<color>TODOLESSBackground color of tables (.table).
--table-bg-hover<color>#f5f5f5LESSRow hover background color of tables (.table-hover).
--table-border-color<color>#dddLESSBorder color of tables (.table).

Navigation Tabs

NameTypeDefault valueBackwards compatibilityDescription
--nav-tabs-border-color<color>TODOborderColorBorder color of navigation tabs (.nav-tabs).
--nav-tabs-active-link-hover-bg<color>var(--xwiki-page-content-bg)pageContentBackgroundColorBackground of the active navigation tab (.nav-tabs).
--nav-tabs-active-link-hover-border-color<color>TODOborderColorBorder color of the active navigation tab.
--nav-link-hover-bg<color>TODOhighlightColorBackground of menu items on hover/active (button-group menus, extension menu tabs, macro list, tree nodes).

List Groups

NameTypeDefault valueBackwards compatibilityDescription
--list-group-border<color>TODOborderColorBorder color of list-group items (.list-group-item).
--list-group-hover-bg<color>#f5f5f5LESSBackground of list-group items on hover.
--list-group-link-color<color>#555LESSLink text color in list-group items.
--list-group-link-hover-color<color>var(--list-group-link-color)LESSLink hover text color in list-group items.

Pagination

NameTypeDefault valueBackwards compatibilityDescription
--pagination-border<color>TODOborderColorBorder color of pagination links (.pagination).
--pagination-hover-border<color>TODOborderColorBorder color of pagination links on hover.
--pagination-disabled-border<color>TODOborderColorBorder color of disabled pagination links.

Alerts

NameTypeDefault valueBackwards compatibilityDescription
--alert-success-bg<color>#e5f3dfTODOBackground of success alerts (.alert-success).
--alert-info-bg<color>#e1f1f9TODOBackground of info alerts (.alert-info); also the in-progress upload bar and Required Rights dialog highlights.
--alert-danger-bg<color>#f8ececTODOBackground of danger alerts (.alert-danger); also the attachment upload error state.

Components

NameTypeDefault valueBackwards compatibilityDescription
--component-active-color<color>#fffLESSText color of active components, e.g. selected list or dropdown items.
--component-active-bg<color>var(--brand-primary)LESSBackground of active components, e.g. selected list or dropdown items.

Borders & Border Radii

NameTypeDefault valueBackwards compatibilityDescription
--border-width<length>1pxTODOBorder width (default); e.g. the separator before a button-group dropdown toggle.
--border-radius-base<length>7pxTODOCorner rounding (default radius) of suggest/search dropdowns and the extension search bar.
--border-radius-large<length>10pxTODOCorner rounding (large radius), e.g. the attachment upload status container.
--border-radius-small<length>5pxTODOCorner rounding (small radius) of the global header search input and the upload progress bar.

Layout & Spacing

NameTypeDefault valueBackwards compatibilityDescription
--grid-gutter-width<length>30pxLESSGutter spacing (horizontal) for the left/right panel columns.
--main-padding<length>calc(var(--grid-gutter-width) * 2)TODOPadding around the main page content area.
--padding-large-vertical<length>10pxLESSPadding (vertical) of large buttons and inputs (.btn-lg, .input-lg).
--edit-section-relative-height<number>.7TODOSize of inline section-edit links relative to the heading.

Figures

NameTypeDefault valueBackwards compatibilityDescription
--figure-caption-font-size<percentage>90%TODOFont size of figure captions (figcaption).
--figure-caption-color<color>var(--text-muted)TODOText color of figure captions (figcaption).

Marks & Text Highlights

NameTypeDefault valueBackwards compatibilityDescription
--mark-bg<color>color-mix(in srgb, var(--btn-warning-bg), white)LESSsince 18.0.0Background of highlighted text (mark).
--mark-updated-bg<color>color-mix(in srgb, color-mix(in srgb, var(--btn-warning-bg), var(--btn-danger-bg) 35%), white)LESSsince 18.0.0Background marking updated text in diffs.
--mark-altered-bg<color>color-mix(in srgb, var(--btn-danger-bg), white)LESSsince 18.0.0Background marking altered/removed text in diffs.
--mark-highlighted-bg<color>var(--btn-warning-bg)LESSsince 18.0.0Background of strongly highlighted text.

Accessibility

NameTypeDefault valueBackwards compatibilityDescription
--target-size-minimum<length>24pxTODOTouch-target size (WCAG minimum), e.g. the lightbox toggle button.
--target-size-recommended<length>44pxTODOTouch-target size (WCAG recommended), e.g. the image toolbar buttons.

Miscellaneous

NameTypeDefault valueBackwards compatibilityDescription
--state-danger-text<color>#a94442LESSText color of the danger/error state, e.g. the attachment upload error message.
--thumbnail-border<color>TODOborderColorBorder color of image thumbnails (.thumbnail).
--login-form-max-width<length>450pxLESSsince 17.9.0Width (maximum) of the login form.

Internal / Computed

These variables are used internally by the responsive font-size system and should generally not be overridden.

NameTypeDefault valueBackwards compatibilityDescription
--100vw<length>100vwLESSViewport width (full) used by the responsive font-size system.
--int-viewport-width<number>calc(10000 * tan(atan2(var(--100vw), 10000px)))LESSViewport width (integer, unitless) computed for the responsive font-size calculations.

Get Connected