CSS Properties

Last modified by Vincent Massol on 2026/11/30 17:28

Each CSS property of the skin has a category, a type, a default value and a LESS or color theme mapping, with an example.

Reference

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 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

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>#ca302cLESSnotificationErrorColorColor 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>#555LESSColor 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>400LESSFont weight of headings h1–h6.
--link-color<color>#2f6faflinkColorColor of links such as the search-suggest "show all results" action.
--font-family-base<string>Open Sans, sans-serifLESSFont 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>600LESSWeight of emphasized labels: comment author, file name, current pagination page and suggest source names.
--font-weight-bold<number>700LESSWeight 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- 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.

NameTypeDefault valueBackwards compatibilityDescription
--font-size-headings-scale<number>1.190LESSRatio of the typographic scale used to compute heading sizes at the largest screen width.
--font-size-headings-scale-min<number>1.125LESSRatio of the typographic scale used to compute heading sizes at the smallest screen width.
--min-screen-size<number>768LESSBound (px) for the lower screen width in the fluid heading-size interpolation.
--max-screen-size<number>1200LESSBound (px) for the upper screen width in the fluid heading-size interpolation.
--min-document-title-font-size<length>26pxLESSValue (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>34pxLESSValue (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>34pxLESSFont size of the page/document title.
--min-h1-font-size<length>22.43pxLESSValue (small-screen minimum) used in the fluid h1 font-size calc.
--max-h1-font-size<length>28.07pxLESSValue (large-screen maximum) used in the fluid h1 font-size calc.
--font-size-h1<length>28.07pxLESSFont size of h1 headings, used e.g. for the macro wizard title.
--min-h2-font-size<length>19.93pxLESSValue (small-screen minimum) used in the fluid h2 font-size calc.
--max-h2-font-size<length>23.59pxLESSValue (large-screen maximum) used in the fluid h2 font-size calc.
--font-size-h2<length>23.59pxLESSFont size of h2 headings.
--min-h3-font-size<length>17.72pxLESSValue (small-screen minimum) used in the fluid h3 font-size calc.
--max-h3-font-size<length>19.83pxLESSValue (large-screen maximum) used in the fluid h3 font-size calc.
--font-size-h3<length>19.83pxLESSFont size of h3 headings.
--min-h4-font-size<length>15.75pxLESSValue (small-screen minimum) used in the fluid h4 font-size calc.
--max-h4-font-size<length>16.66pxLESSValue (large-screen maximum) used in the fluid h4 font-size calc.
--font-size-h4<length>16.66pxLESSFont size of h4 headings.
--font-size-h5<length>1remLESSFont size of h5 headings.
--min-h6-font-size<length>11.76pxLESSValue (small-screen minimum) used in the fluid h6 font-size calc.
--max-h6-font-size<length>12.44pxLESSValue (large-screen maximum) used in the fluid h6 font-size calc.
--font-size-h6<length>12.44pxLESSFont 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>#077537LESSmenuAddEntryBackgroundColorBackground of success buttons (.btn-success).
--btn-info-color<color>#000000LESSText color of info buttons (.btn-info).
--btn-info-bg<color>#3bb2d0LESSBackground of info buttons (.btn-info).
--btn-warning-color<color>#000000LESSText color of warning buttons (.btn-warning).
--btn-warning-bg<color>#ffd483LESSBackground 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>2pxLESSSpacing between adjacent buttons.
--button-border-width<length>1pxLESSBorder width of buttons.

Navigation & Menu

NameTypeDefault valueBackwards compatibilityDescription
--navbar-height<length>50pxLESSHeight of the top navigation bar (.navbar).
--navbar-default-color<color>#fffLESSmenuLinkColorText color of the top navigation bar (.navbar-default).
--navbar-default-bg<color>#3E79BCLESSmenuBackgroundColorBackground color of the top navigation bar (.navbar-default).
--navbar-default-link-color<color>#fffLESSmenuLinkColorLink color in the top navigation bar (.navbar-default).
--navbar-default-link-hover-color<color>#fffLESSmenuLinkColorLink hover color in the top navigation bar.
--navbar-default-link-hover-bg<color>#2f6eadLESSmenuBackgroundColorLink hover background in the top navigation bar.
--navbar-default-link-active-color<color>#fffLESSmenuLinkColorColor of active links in the top navigation bar.
--navbar-default-link-active-bg<color>#3E79BCLESSmenuBackgroundColorBackground of active links in the top navigation bar.
--navbar-default-link-disabled-color<color>Not setmenuContentLinkColorColor of disabled links in the top navigation bar.
--navbar-default-toggle-border-color<color>#E8E8E8borderColorBorder color of the navbar collapse toggle (mobile menu button).
--menu-default-color<color>#fffLESSText color of menus (derived from the navbar color).
--menu-default-link-color<color>#fffLESSLink color of menus.
--menu-default-link-hover-color<color>#fffLESSLink hover color of menus.
--menu-default-link-hover-bg<color>#2f6eadLESSLink hover background of menus.
--menu-default-link-active-color<color>#fffLESSColor of active menu links.
--menu-default-link-active-bg<color>#3E79BCLESSBackground of active menu links.
--menu-height<length>1.5lhLESSHeight of menu entries.
--menu-default-border<color>Not setLESSBorder color of menus.

Dropdowns

NameTypeDefault valueBackwards compatibilityDescription
--dropdown-bg<color>#FFFFFFLESSpageContentBackgroundColorBackground of dropdown menus (.dropdown-menu).
--dropdown-border<color>rgba(0, 0, 0, .15)LESSBorder color of dropdown menus (.dropdown-menu).
--dropdown-link-color<color>#222222LESStextColorItem text color in dropdown menus.
--dropdown-link-hover-color<color>#333LESStextColorItem hover text color in dropdown menus.
--dropdown-link-hover-bg<color>#f5f5f5LESSsubmenuContentBackgroundColorItem 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>#E8E8E8LESSborderColorBorder color of form inputs and TomSelect (selectize) controls.
--input-color<color>Not setLESSText 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>#fafafaLESSpanelBackgroundColorBackground of panels (.panel); e.g. the Required Rights dialog selection panel.
--panel-default-text<color>#333333LESSpanelTextColorText color of panels; e.g. the Required Rights dialog selection panel.
--panel-default-heading-bg<color>#f5f5f5LESSsince 18.9.0Background 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>#ECECECpanelHeaderBackgroundColorBackground of panel headers.
--panel-header-text<color>#4D5860LESSpanelHeaderTextColorText color of panel headers.

Breadcrumbs

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

Tables

NameTypeDefault valueBackwards compatibilityDescription
--table-bg<color>Not setLESSBackground 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).
--table-cell-padding<length>8pxLESSsince 18.9.0Padding of table cells; e.g. the horizontal padding of the Live Data header and filter cells.

Navigation Tabs

NameTypeDefault valueBackwards compatibilityDescription
--nav-tabs-border-color<color>#E8E8E8borderColorBorder color of navigation tabs (.nav-tabs).
--nav-tabs-active-link-hover-bg<color>#FFFFFFpageContentBackgroundColorBackground of the active navigation tab (.nav-tabs).
--nav-tabs-active-link-hover-border-color<color>#E8E8E8borderColorBorder color of the active navigation tab.
--nav-link-hover-bg<color>#eeeeeehighlightColorBackground 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>#E8E8E8borderColorBorder 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>#555LESSLink hover text color in list-group items.

Pagination

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

Alerts

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

Components

NameTypeDefault valueBackwards compatibilityDescription
--component-active-color<color>#555LESSText color of active components, e.g. selected list or dropdown items.
--component-active-bg<color>#f5f5f5LESSBackground of active components, e.g. selected list or dropdown items.

Borders & Border Radii

NameTypeDefault valueBackwards compatibilityDescription
--border-width<length>1pxLESSBorder width (default); e.g. the separator before a button-group dropdown toggle.
--border-radius-base<length>7pxLESSCorner rounding (default radius) of suggest/search dropdowns and the extension search bar.
--border-radius-large<length>10pxLESSCorner rounding (large radius), e.g. the attachment upload status container.
--border-radius-small<length>5pxLESSCorner 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>60pxLESSPadding around the main page content area.
--padding-base-horizontal<length>12pxLESSsince 18.9.0Padding (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>10pxLESSPadding (vertical) of large buttons and inputs (.btn-lg, .input-lg).
--screen-xs-max<length>767pxLESSsince 18.9.0Screen 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>4pxLESSsince 18.10.0Base 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.0Spacing of half a base step.
--spacing-medium<length>calc(var(--spacing-base) * 2) (8px)LESSsince 18.10.0Spacing 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.0Spacing of three base steps.
--spacing-xlarge<length>calc(var(--spacing-base) * 4) (16px)LESSsince 18.10.0Spacing 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.0Spacing of six base steps.
--spacing-xxxlarge<length>calc(var(--spacing-base) * 8) (32px)LESSsince 18.10.0Spacing of eight base steps.

Figures

NameTypeDefault valueBackwards compatibilityDescription
--figure-caption-font-size<percentage>90%LESSFont size of figure captions (figcaption).
--figure-caption-color<color>#555LESSText color of figure captions (figcaption).

Marks & Text Highlights

NameTypeDefault valueBackwards compatibilityDescription
--mark-bg<color>#ffe9c1LESSsince 18.0.0Background of highlighted text (mark).
--mark-updated-bg<color>#f6cdb2LESSsince 18.0.0Background marking updated text in diffs.
--mark-altered-bg<color>#e49896LESSsince 18.0.0Background marking altered/removed text in diffs.
--mark-highlighted-bg<color>#ffd483LESSsince 18.0.0Background of strongly highlighted text.

Accessibility

NameTypeDefault valueBackwards compatibilityDescription
--target-size-minimum<length>24pxLESSTouch-target size (WCAG minimum), e.g. the lightbox toggle button.
--target-size-recommended<length>44pxLESSTouch-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.
--state-success-text<color>#3c763dLESSsince 18.10.0Text color of the success state, e.g. the border of a suggest picker inside .has-success.
--state-warning-text<color>#8a6d3bLESSsince 18.10.0Text color of the warning state, e.g. the border of a suggest picker inside .has-warning.
--thumbnail-border<color>#E8E8E8borderColorBorder 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.

Warning

Avoid 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.

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

Get Connected