Skip to main content

Theme Variable Reference

This page lists every CSS variable a custom theme can set, with the color each one has in the built-in Light, Dark and Midnight themes.

Accent and Base Colors​

Start with these. Many of the variables further down follow them, so a theme can set a few of these and leave the rest alone.

VariableUsed ForLightDarkMidnight
--color-accentThe one color a theme sets to restyle primary buttons, links, focus rings and selection.#8719e0#9446ed#9446ed
--color-accentContrastText and icons on an accent fill.#ffffff#ffffff#ffffff
--color-accentHoverHovered and pressed accent fill.#7300c3#822fd8#822fd8
--color-accentTextThe accent as text or an icon on the page and on tables.#8719e0#cbaeff#bb91ff
--color-accentBorderSelected outlines and focus rings.#8719e0#a45aff#a660ff
--color-accentSubtleTinted surface for selected rows and pills.#efe7fe#44427c#342553
--color-accentSubtleTextAccent text on the tinted surface.#8719e0#cbaeff#bb91ff
--color-backgroundPageThe page behind cards and tables.#e8ecf0#080811#373b4a
--color-backgroundTables, cards, inputs and other content surfaces.#ffffff#243b53#141520
--color-backgroundRaisedMenus, tooltips, modals and buttons.#ffffff#243b53#242733
--color-backgroundHoverA hovered row on a content surface.#f7fafc#334e68#4d5768
--color-backgroundSelectedA selected row on a content surface.#efe7fe#44427c#342553
--color-borderLines between rows and around menus and tooltips.#e8ecf0#486581#373b4a
--color-borderStrongStronger lines, such as button and input outlines and dividers.#9fb3c8#829ab1#747c8b
--color-textPrimary text.#272630#d9e2ec#e8ecf0
--color-textSecondarySupporting text such as descriptions and labels.#627d98#9fb3c8#bdc5cf
--color-textTertiaryThe least prominent text, such as hints.#9fb3c8#829ab1#98a1ae
--color-successSuccess and notice messages. Their fills and text are worked out from it.#27ab83#3ebd93#3ebd93
--color-warningWarning messages. Their fills and text are worked out from it.#e6bb20#f5e35d#f5e35d
--color-errorError messages. Their fills and text are worked out from it.#e12d39#e12d39#e12d39
--color-infoInformational messages. Their fill and text are worked out from it.#2b8fed#40a5f7#40a5f7

All Other Variables​

The Follows column names the variable a color is taken from, or worked out from, when a theme does not set it. Setting the variable in that column changes both.

VariableLightDarkMidnightFollows
--color-pageBackground#e8ecf0#080811#373b4a--color-backgroundPage
--color-pageBackgroundTopLeft#e8ecf0#243b53#141520
--color-pageBackgroundBottomRight#b3d9ff#242733#242733
--color-pageBackgroundLineTop#ffffff#9446ed#a368fc
--color-pageBackgroundLineMid#e8ecf0#102a43#080811
--color-pageBackgroundLineBottom#b3d9ff#d9e2ec#d4dae0
--color-pageText#272630#d9e2ec#e8ecf0--color-text
--color-pageTextLight#627d98#9fb3c8#bdc5cf--color-textSecondary
--color-pageTextSubdued#9fb3c8#829ab1#98a1ae--color-textTertiary
--color-pageTextDark#272630#d9e2ec#e8ecf0--color-text
--color-pageTextPositive#8719e0#cbaeff#bb91ff--color-accentText
--color-pageTextLink#8719e0#cbaeff#bb91ff--color-accentText
--color-pageTextLinkLight#8719e0#cbaeff#bb91ff--color-accentText
--color-cardBackground#ffffff#243b53#141520--color-background
--color-cardBorder#8719e0#a45aff#a660ff--color-accentBorder
--color-cardShadow#334e68#334e68#080811
--color-tableBackground#ffffff#243b53#141520--color-background
--color-tableRowBackgroundAlternate#ffffff#243b53#141520--color-tableBackground
--color-tableRowBackgroundHover#f7fafc#334e68#4d5768--color-backgroundHover
--color-tableText#272630#d9e2ec#e8ecf0--color-text
--color-tableTextItemAdded#272630#d9e2ec#e8ecf0--color-tableText
--color-tableTextLight#627d98#d9e2ec#e8ecf0--color-tableText in Dark and Midnight
--color-tableTextSubdued#627d98#9fb3c8#bdc5cf--color-textSecondary
--color-tableTextSelected#272630#d9e2ec#e8ecf0--color-tableText
--color-tableTextInactive#627d98#829ab1#98a1ae
--color-tableHeaderText#486581#bcccdc#bdc5cf
--color-tableHeaderBackground#ffffff#334e68#080811
--color-tableBorder#e8ecf0#486581#373b4a--color-border
--color-tableBorderSelected#8719e0#a45aff#a660ff--color-accentBorder
--color-tableBorderHover#8719e0#a45aff#a660ff--color-accentBorder
--color-tableBorderSeparator#9fb3c8#829ab1#747c8b--color-borderStrong
--color-tableRowBackgroundHighlight#efe7fe#44427c#342553--color-backgroundSelected
--color-tableRowBackgroundHighlightText#272630#d9e2ec#e8ecf0--color-tableText
--color-tableRowHeaderBackground#f7fafc#334e68#242733
--color-tableRowHeaderText#272630#d9e2ec#e8ecf0--color-text
--color-numberPositive#147d64#65d6ad#65d6ad
--color-numberNegative#e12d39#ff9b9b#ff9b9b
--color-numberNeutral#627d98#9fb3c8#bdc5cf--color-textSecondary
--color-budgetNumberNegative#e12d39#ff9b9b#ff9b9b--color-numberNegative
--color-budgetNumberZero#627d98#9fb3c8#bdc5cf--color-tableTextSubdued
--color-budgetNumberNeutral#272630#d9e2ec#e8ecf0--color-tableText
--color-budgetNumberPositive#272630#d9e2ec#e8ecf0--color-budgetNumberNeutral
--color-templateNumberFunded#147d64#65d6ad#65d6ad--color-numberPositive
--color-templateNumberUnderFunded#b88115#f5e35d#fcf088
--color-toBudgetPositive#147d64#65d6ad#65d6ad--color-numberPositive
--color-toBudgetZero#147d64#65d6ad#65d6ad--color-numberPositive
--color-toBudgetNegative#e12d39#ff9b9b#ff9b9b--color-budgetNumberNegative
--color-sidebarBackground#102a43#102a43#080811
--color-sidebarItemBackgroundPending#fcf088#fcf088#fcf088
--color-sidebarItemBackgroundPositive#27ab83#27ab83#3ebd93
--color-sidebarItemBackgroundFailed#f86a6a#f86a6a#f86a6a
--color-sidebarItemBackgroundHover#243b53#334e68#242733
--color-sidebarItemAccentSelected#c7a2ff#c5a3ff#b380ff--color-accent, readable on --color-sidebarBackground
--color-sidebarItemBackgroundSelected#c7a2ff38#c5a3ff38#b380ff38Mixed from --color-sidebarItemAccentSelected
--color-sidebarItemText#d9e2ec#d9e2ec#e8ecf0
--color-sidebarItemTextUpdated#d9e2ec#d9e2ec#e8ecf0--color-sidebarItemText
--color-sidebarItemTextSelected#c7a2ff#c5a3ff#b380ff--color-sidebarItemAccentSelected
--color-sidebarBudgetName#d9e2ec#9fb3c8#98a1ae
--color-sidebarHeaderText#ffffff#ffffff#e8ecf0
--color-sidebarTextSubdued#9fb3c8#9fb3c8#98a1ae
--color-sidebarTextMuted#627d98#627d98#4d5768
--color-sidebarTextPositive#27ab83#27ab83#3ebd93--color-sidebarItemBackgroundPositive
--color-sidebarTextFailed#f86a6a#f86a6a#f86a6a--color-sidebarItemBackgroundFailed
--color-sidebarBackgroundFailedSubtle#f86a6a29#f86a6a29#f86a6a29Mixed from --color-sidebarItemBackgroundFailed
--color-sidebarBorder#243b53#334e68#242733--color-sidebarItemBackgroundHover
--color-sidebarControlBackground#243b53#334e68#242733--color-sidebarItemBackgroundHover
--color-sidebarBrand#c7a2ff#c5a3ff#b380ff--color-sidebarItemAccentSelected
--color-settingsCardBackground#ffffff#243b53#141520--color-tableBackground
--color-settingsCardBorder#e8ecf0#486581#373b4a--color-tableBorder
--color-settingsCardText#272630#d9e2ec#e8ecf0--color-tableText
--color-settingsCardTextSubdued#627d98#9fb3c8#bdc5cf--color-textSecondary
--color-settingsNavItemText#272630#d9e2ec#e8ecf0--color-pageText
--color-settingsNavItemBackgroundHover#27263014#d9e2ec14#e8ecf014Mixed from --color-settingsNavItemText
--color-settingsNavItemAccentSelected#8719e0#cbaeff#bb91ff--color-accentSubtleText
--color-settingsNavItemTextSelected#8719e0#cbaeff#bb91ff--color-settingsNavItemAccentSelected
--color-settingsNavItemBackgroundSelected#efe7fe#44427c#342553--color-accentSubtle
--color-menuBackground#ffffff#243b53#242733--color-backgroundRaised
--color-menuItemBackgroundHover#e8ecf0#486581#4d5768
--color-menuItemText#272630#d9e2ec#e8ecf0--color-text
--color-menuItemTextHover#272630#d9e2ec#e8ecf0--color-text
--color-menuItemTextSelected#8719e0#cbaeff#bb91ff--color-accentText
--color-menuItemTextHeader#8719e0#b98cff#ac6eff--color-accent, readable on --color-menuBackground
--color-menuBorder#e8ecf0#486581#373b4a--color-border
--color-menuKeybindingText#8719e0#b98cff#ac6eff--color-accent, readable on --color-menuBackground
--color-menuAutoCompleteBackground#102a43#102a43#373b4a
--color-menuAutoCompleteBackgroundHover#486581#486581#4d5768
--color-menuAutoCompleteText#ffffff#bcccdc#e8ecf0
--color-menuAutoCompleteTextHover#c6f7e2#c6f7e2#c6f7e2
--color-menuAutoCompleteTextHeader#c7a2ff#c5a3ff#d9c5ff--color-accent, readable on --color-menuAutoCompleteBackground
--color-menuAutoCompleteItemTextHover#ffffff#f7fafc#f6f8fa--color-menuAutoCompleteText in Light
--color-menuAutoCompleteItemText#ffffff#d9e2ec#e8ecf0--color-menuAutoCompleteText in Light, --color-menuItemText in Dark and Midnight
--color-modalBackground#ffffff#243b53#242733--color-backgroundRaised
--color-modalBorder#ffffff#486581#bdc5cf
--color-mobileHeaderBackground#8719e0#9446ed#9446ed--color-accent
--color-mobileHeaderText#ffffff#ffffff#ffffff--color-accentContrast
--color-mobileHeaderTextSubdued#ffffffbf#ffffffbf#ffffffbfMixed from --color-mobileHeaderText
--color-mobileHeaderTextHover#c8c8c826#c8c8c826#c8c8c826
--color-mobilePageBackground#f7fafc#334e68#080811
--color-mobileNavBackground#ffffff#243b53#242733--color-backgroundRaised
--color-mobileNavItem#272630#d9e2ec#e8ecf0--color-text
--color-mobileNavItemSelected#8719e0#cbaeff#bb91ff--color-accentText
--color-mobileAccountText#0b5fa3#0b5fa3#0b5fa3
--color-mobileTransactionSelected#8719e0#a45aff#a660ff--color-accentBorder
--color-mobileViewTheme#8719e0#9446ed#9446ed--color-mobileHeaderBackground
--color-mobileConfigServerViewTheme#8719e0#9446ed#9446ed--color-accent
--color-markdownNormal#8719e04d#9446ed4d#9446ed4dMixed from --color-accent
--color-markdownDark#8719e0#a45aff#a660ff--color-accentBorder
--color-markdownLight#efe7fe#44427c#342553--color-accentSubtle
--color-buttonMenuText#e8ecf0#bcccdc#bdc5cf
--color-buttonMenuTextHover#f7fafc#bcccdc#bdc5cf--color-buttonMenuText in Dark and Midnight
--color-buttonMenuBackground#00000000#00000000#242733
--color-buttonMenuBackgroundHover#c8c8c840#c8c8c840#c8c8c840
--color-buttonMenuBorder#627d98#627d98#4d5768
--color-buttonMenuSelectedText#0c6b58#0c6b58#0c6b58
--color-buttonMenuSelectedTextHover#87540d#87540d#87540d
--color-buttonMenuSelectedBackground#fcf088#fcf088#fcf088
--color-buttonMenuSelectedBackgroundHover#f5e35d#f5e35d#98a1ae
--color-buttonMenuSelectedBorder#fcf088#fcf088#fcf088--color-buttonMenuSelectedBackground
--color-buttonPrimaryText#ffffff#ffffff#ffffff--color-accentContrast
--color-buttonPrimaryTextHover#ffffff#ffffff#ffffff--color-buttonPrimaryText
--color-buttonPrimaryBackground#8719e0#9446ed#9446ed--color-accent
--color-buttonPrimaryBackgroundHover#7300c3#822fd8#822fd8--color-accentHover
--color-buttonPrimaryBorder#8719e0#9446ed#9446ed--color-buttonPrimaryBackground
--color-buttonPrimaryShadow#0000004d#00000099#00000099
--color-buttonPrimaryDisabledText#ffffff#334e68#747c8b
--color-buttonPrimaryDisabledBackground#9fb3c8#829ab1#242733
--color-buttonPrimaryDisabledBorder#9fb3c8#829ab1#242733--color-buttonPrimaryDisabledBackground
--color-buttonNormalText#272630#d9e2ec#e8ecf0--color-text
--color-buttonNormalTextHover#272630#d9e2ec#e8ecf0--color-text
--color-buttonNormalBackground#ffffff#243b53#242733--color-backgroundRaised
--color-buttonNormalBackgroundHover#f7fafc#334e68#4d5768--color-backgroundHover
--color-buttonNormalBorder#9fb3c8#829ab1#747c8b--color-borderStrong
--color-buttonNormalShadow#00000033#00000066#00000066
--color-buttonNormalSelectedText#ffffff#ffffff#ffffff--color-accentContrast
--color-buttonNormalSelectedBackground#8719e0#9446ed#9446ed--color-accent
--color-buttonNormalDisabledText#9fb3c8#627d98#747c8b
--color-buttonNormalDisabledBackground#ffffff#243b53#242733--color-backgroundRaised
--color-buttonNormalDisabledBorder#d9e2ec#627d98#4d5768
--color-calendarText#f7fafc#f7fafc#f6f8fa
--color-calendarBackground#102a43#102a43#242733
--color-calendarItemText#ffffff#ffffff#ffffff
--color-calendarItemBackground#243b53#243b53#4d5768
--color-calendarSelectedBackground#8719e0#9446ed#9446ed--color-accent
--color-calendarSelectedText#ffffff#ffffff#ffffffBlack or white on --color-calendarSelectedBackground over --color-calendarBackground
--color-datePickerRangeBackground#efe7fe#44427c#342553--color-accentSubtle
--color-buttonBareText#272630#d9e2ec#e8ecf0--color-pageText
--color-buttonBareTextHover#272630#d9e2ec#e8ecf0--color-pageText
--color-buttonBareDisabledText#9fb3c8#627d98#747c8b--color-pageTextSubdued in Light
--color-buttonBareBackground#00000000#00000000#00000000
--color-buttonBareDisabledBackground#00000000#00000000#00000000--color-buttonBareBackground
--color-buttonBareBackgroundHover#64646426#c8c8c84d#c8c8c84d
--color-buttonBareBackgroundActive#64646440#c8c8c880#c8c8c880
--color-noticeBackground#b0ffdf#00684d#00684d--color-success, as a fill
--color-noticeBackgroundLight#dbffef#004c37#004c37--color-success, as a fill
--color-noticeText#00795a#6fe8bc#6fe8bc--color-success, readable as text
--color-noticeTextLight#00795a#56d1a6#45c298--color-success, readable as text
--color-noticeTextDark#006349#bfffe4#bfffe4--color-success, readable as text
--color-noticeTextMenu#8eedc7#27ab83#3ebd93
--color-noticeBorder#27ab83#3ebd93#3ebd93--color-success
--color-warningBackground#ffeaae#635900#635900--color-warning, as a fill
--color-warningText#816700#f5e35d#f5e35d--color-warning, readable as text
--color-warningTextDark#6b5500#fff082#fff082--color-warning, readable as text
--color-warningBorder#e6bb20#f5e35d#f5e35d--color-warning
--color-errorBackground#ffe4e1#a7001d#a7001d--color-error, as a fill
--color-errorText#d1162c#ffb2ac#ffb2ac--color-error, readable as text
--color-errorTextDark#b1001f#ffd8d5#ffd8d5--color-error, readable as text
--color-errorTextDarker#b1001f#ffd8d5#ffd8d5--color-errorTextDark
--color-errorTextMenu#ff9b9b#ff9b9b#ff9b9b
--color-errorBorder#e12d39#e12d39#e12d39--color-error
--color-infoBackground#ddedff#005c97#005c97--color-info, as a fill
--color-infoText#0059a0#dfefff#dfefff--color-info, readable as text
--color-upcomingBackground#efe7fe#44427c#342553--color-accentSubtle
--color-upcomingText#8719e0#cbaeff#bb91ff--color-accentSubtleText
--color-formLabelText#8719e0#cbaeff#bb91ff--color-accentText
--color-formLabelBackground#ffffff#243b53#141520--color-tableBackground
--color-formInputBackground#ffffff#243b53#141520--color-background
--color-formInputBackgroundSelected#ffffff#334e68#242733
--color-formInputBackgroundSelection#8719e0#9446ed#9446ed--color-accent
--color-formInputBorder#9fb3c8#829ab1#747c8b--color-borderStrong
--color-formInputTextReadOnlySelection#f7fafc#243b53#141520
--color-formInputBorderSelected#8719e0#a45aff#a660ff--color-accentBorder
--color-formInputText#272630#d9e2ec#e8ecf0--color-text
--color-formInputTextPlaceholder#9fb3c8#829ab1#98a1ae--color-textTertiary
--color-formInputTextPlaceholderSelected#bcccdc#e8ecf0#e8ecf0
--color-formInputShadowSelected#8719e0#a45aff#a660ff--color-accentBorder
--color-formInputTextHighlight#8719e0#cbaeff#bb91ff--color-accentText
--color-checkboxText#ffffff#ffffff#ffffff--color-accentContrast
--color-checkboxBackgroundSelected#8719e0#9446ed#9446ed--color-accent
--color-checkboxBorderSelected#8719e0#9446ed#9446ed--color-accent
--color-checkboxShadowSelected#8719e0#a45aff#a660ff--color-accentBorder
--color-checkboxToggleBackground#747c8b#242733#747c8b
--color-checkboxToggleBackgroundSelected#8719e0#9446ed#9446ed--color-accent
--color-checkboxToggleDisabled#bdc5cf#747c8b#242733
--color-pillBackground#d9e2ec#243b53#4d5768
--color-pillBackgroundLight#f7fafc#102a43#080811
--color-pillText#272630#d9e2ec#e8ecf0--color-text
--color-pillTextHighlighted#7d00d3#c5a3ff#b380ff--color-accent, readable on --color-pillBackgroundLight
--color-pillBorder#d9e2ec#334e68#4d5768
--color-pillBorderDark#9fb3c8#829ab1#747c8b--color-borderStrong
--color-pillBackgroundSelected#efe7fe#44427c#342553--color-accentSubtle
--color-pillTextSelected#8719e0#cbaeff#bb91ff--color-accentSubtleText
--color-pillBorderSelected#8719e0#a45aff#a660ff--color-accentBorder
--color-reportsRed#f86a6a#f86a6a#f86a6a
--color-reportsBlue#40a5f7#40a5f7#40a5f7
--color-reportsGreen#3ebd93#3ebd93#3ebd93
--color-reportsGray#747c8b#747c8b#747c8b
--color-reportsLabel#272630#d9e2ec#e8ecf0--color-text
--color-reportsInnerLabel#243b53#243b53#243b53
--color-reportsNumberPositive#147d64#65d6ad#65d6ad--color-numberPositive
--color-reportsNumberNegative#e12d39#ff9b9b#ff9b9b--color-numberNegative
--color-reportsNumberNeutral#627d98#9fb3c8#bdc5cf--color-numberNeutral
--color-reportsChartFill#147d64#65d6ad#65d6ad--color-reportsNumberPositive
--color-noteTagBackground#efe7fe#44427c#342553--color-accentSubtle
--color-noteTagBackgroundHover#f7f3ff#343f68#241d3aMixed from --color-accentSubtle and --color-tableBackground
--color-noteTagText#8719e0#cbaeff#bb91ff--color-accentSubtleText
--color-budgetCurrentMonth#ffffff#243b53#141520--color-tableBackground
--color-budgetOtherMonth#f6f8fa#102a43#242733
--color-budgetHeaderCurrentMonth#f6f8fa#334e68#080811--color-budgetOtherMonth in Light, --color-tableHeaderBackground in Dark and Midnight
--color-budgetHeaderOtherMonth#f0f4f6#243b53#141520
--color-floatingActionBarBackground#8719e0#9446ed#9446ed--color-accent
--color-floatingActionBarBorder#8719e0#9446ed#9446ed--color-floatingActionBarBackground
--color-floatingActionBarText#ffffff#ffffff#ffffff--color-accentContrast
--color-tooltipText#272630#d9e2ec#e8ecf0--color-text
--color-tooltipBackground#ffffff#243b53#242733--color-backgroundRaised
--color-tooltipBorder#e8ecf0#486581#373b4a--color-border
--color-calendarCellBackground#e8ecf0#102a43#102a43
--color-overlayBackground#0000004d#0000004d#0000004d
--color-chartQual1#45b29d#45b29d#45b29d
--color-chartQual2#efc94c#efc94c#efc94c
--color-chartQual3#e27a3f#e27a3f#e27a3f
--color-chartQual4#df5a49#df5a49#df5a49
--color-chartQual5#5f91b8#5f91b8#5f91b8
--color-chartQual6#e2a37f#e2a37f#e2a37f
--color-chartQual7#55dbc1#55dbc1#55dbc1
--color-chartQual8#efda97#efda97#efda97
--color-chartQual9#df948a#df948a#df948a

This page is generated from the theme source in packages/component-library/src/themes/source/colors.ts.