Color #
Neutral colors are --astryx-color-*. Each one uses light-dark() for the light stop and the dark stop. In the grid below, the left chip is light and the right chip is dark. Translucent colors sit on a checkerboard.
The set covers surfaces, text, icons, the info, success, warning, and error statuses, and the blue, cyan, gray, green, orange, pink, purple, red, teal, and yellow groups for background, border, icon, and text. Badge variants use those names, for example variant="blue".
Status colors #
Each status (info, success, warning, error) has a role for every surface it appears on:
| Variable | Where it goes |
|---|---|
--astryx-color-<status> | The strong fill: Badge, StatusDot, progress fills. |
--astryx-color-on-<status> | Text and icons on the strong fill, at 4.5:1 or more. |
--astryx-color-<status>-muted | The pale fill: Banner, field status messages, the chat composer status bar. |
--astryx-color-on-<status>-muted | Text and icons on the pale fill. |
--astryx-color-text-<status> | Status text on the page and on cards, such as a destructive menu item or an over-limit count. |
--astryx-color-icon-<status> | Status icons on the page, such as Icon color="success" and Stepper glyphs. Follows the text role. |
--astryx-color-border-<status> | Status borders, such as an input in the error state. Follows the text role. |
Info is its own status, not the accent. To change one status, set its fill; a theme from defineTheme works out the content and text roles you leave unset (see Status colors in a theme).
The defaults live in @astryx-vue/themes/neutral/base.css. Code that measures colors, such as a contrast check, can read the same values from STATUS_COLOR_DEFAULTS in @astryx-vue/core/Theme.
Chart colors #
Chart colors are --astryx-color-data-*, 56 of them, with the same names and values as upstream. Categorical colors give one color to each series, for example --astryx-color-data-categorical-blue, and the light and dark stops are the same hex. Sequential ramps run from 5 to 1, 5 darkest and 1 lightest, for example --astryx-color-data-blue-5. The gray ramp and --astryx-color-data-neutral change with the color scheme. The neutral one is for labels and reference lines.
The defaults live once in @astryx-vue/themes/data.css, on :root, and every theme entry imports that file. A theme's own stylesheet does not repeat them. To recolor a series, set only that variable, on :root or inside a theme, and a nested theme keeps whatever its parent set. Code that paints outside CSS, such as a canvas chart, can read the same defaults from DATA_TOKEN_DEFAULTS in @astryx-vue/core/Theme, or call useTheme().token('--color-data-categorical-blue').
Surfaces and accent
--astryx-color-background-surfacelight-dark(#ffffff, #262626)
--astryx-color-background-bodylight-dark(#f1f1f1, #1b1b1b)
--astryx-color-background-cardlight-dark(#ffffff, #1b1b1b)
--astryx-color-background-popoverlight-dark(#ffffff, #1b1b1b)
--astryx-color-background-mutedlight-dark(#f1f1f1, #1b1b1b)
--astryx-color-accentlight-dark(#1b1b1b, #f1f1f1)
--astryx-color-accent-mutedlight-dark(#d4d4d4, #474747)
--astryx-color-neutrallight-dark(#0000000f, #ffffff1a)
--astryx-color-overlaylight-dark(#00000080, #000000cc)
--astryx-color-overlay-hoverlight-dark(#0000000d, #ffffff0d)
--astryx-color-overlay-pressedlight-dark(#0000001a, #ffffff1a)
--astryx-color-background-invertedlight-dark(#0a1317, #ffffff)
Neutral does not override this token, so the upstream default is used.
--astryx-color-background-error-invertedlight-dark(#aa071e, #e3193b)
Neutral does not override this token, so the upstream default is used.
Text
--astryx-color-text-primarylight-dark(#000000, #ffffff)
--astryx-color-text-secondarylight-dark(#474747, #9e9e9e)
The light stop stays #525252. Upstream Neutral uses #737373. Inputs, selectors, and supporting text already use the current value.
--astryx-color-text-disabledlight-dark(#919191, #525252)
--astryx-color-text-accentlight-dark(#1b1b1b, #f1f1f1)
The semantic value matches accent. text.css still declares a blue pair that wins, so components stay blue.
--astryx-color-on-dark#ffffff
--astryx-color-on-light#111111
--astryx-color-on-accentlight-dark(#ffffff, #111111)
Icon
--astryx-color-icon-accentlight-dark(#1b1b1b, #f1f1f1)
--astryx-color-icon-primarylight-dark(#000000, #ffffff)
--astryx-color-icon-secondarylight-dark(#6a6a6a, #9e9e9e)
--astryx-color-icon-disabledlight-dark(#919191, #525252)
Status
--astryx-color-on-successlight-dark(#ffffff, #111111)
--astryx-color-on-errorlight-dark(#ffffff, #111111)
--astryx-color-on-warning#111111
--astryx-color-successlight-dark(#198100, #64af4c)
--astryx-color-errorlight-dark(#c9303a, #ff705d)
--astryx-color-warning#ffce2f
--astryx-color-success-mutedlight-dark(#bce0bb, #90ca903d)
--astryx-color-error-mutedlight-dark(#ffc4be, #ff98903d)
--astryx-color-warning-mutedlight-dark(#fae19e, #e2b6233d)
--astryx-color-infolight-dark(#0074e2, #6d9cfe)
--astryx-color-info-mutedlight-dark(#b9d7ff, #88bcff3D)
--astryx-color-on-infolight-dark(#ffffff, #111111)
--astryx-color-text-infolight-dark(#0067ce, #a1caff)
--astryx-color-text-successlight-dark(#2f7d33, #90ca90)
--astryx-color-text-warninglight-dark(#836700, #eec448)
--astryx-color-text-errorlight-dark(#c0262c, #ffaea7)
--astryx-color-icon-infovar(--astryx-color-text-info)
--astryx-color-icon-successvar(--astryx-color-text-success)
--astryx-color-icon-warningvar(--astryx-color-text-warning)
--astryx-color-icon-errorvar(--astryx-color-text-error)
--astryx-color-border-infovar(--astryx-color-text-info)
--astryx-color-border-successvar(--astryx-color-text-success)
--astryx-color-border-warningvar(--astryx-color-text-warning)
--astryx-color-border-errorvar(--astryx-color-text-error)
--astryx-color-on-info-mutedlight-dark(#003978, #a1caff)
--astryx-color-on-success-mutedlight-dark(#00490b, #90ca90)
--astryx-color-on-warning-mutedlight-dark(#4b3900, #eec448)
--astryx-color-on-error-mutedlight-dark(#76000c, #ffaea7)
Border and effect
--astryx-color-borderlight-dark(#00000014, #ffffff1a)
--astryx-color-border-emphasizedlight-dark(#d4d4d4, #525252)
--astryx-color-skeletonlight-dark(#d4d4d4, #525252)
--astryx-color-shadowlight-dark(#0000001a, #0000004d)
--astryx-color-tint-hoverlight-dark(#000000, #ffffff)
--astryx-color-tracklight-dark(#ccd3db, #5a5e66)
Neutral does not override this token, so the upstream default is used.
Blue
--astryx-color-background-bluelight-dark(#b9d7ff, #253c5a)
--astryx-color-border-bluelight-dark(#a1caff, #5aa0f8)
--astryx-color-icon-bluelight-dark(#003978, #88bcff)
--astryx-color-text-bluelight-dark(#003978, #a1caff)
Cyan
--astryx-color-background-cyanlight-dark(#9ae2f4, #274046)
--astryx-color-border-cyanlight-dark(#85d5e9, #49adc4)
--astryx-color-icon-cyanlight-dark(#004351, #71c7dd)
--astryx-color-text-cyanlight-dark(#004351, #85d5e9)
Gray
--astryx-color-background-graylight-dark(#e2e2e2, #303030)
The dark stop references color-neutral, a translucent white.
--astryx-color-border-graylight-dark(#d4d4d4, #262626)
--astryx-color-icon-graylight-dark(#474747, #9e9e9e)
--astryx-color-text-graylight-dark(#1b1b1b, #d4d4d4)
Green
--astryx-color-background-greenlight-dark(#bce0bb, #2b422b)
--astryx-color-border-greenlight-dark(#aad4a9, #6ab26b)
--astryx-color-icon-greenlight-dark(#00490b, #90ca90)
--astryx-color-text-greenlight-dark(#00490b, #90ca90)
Orange
--astryx-color-background-orangelight-dark(#ffc7a1, #503424)
--astryx-color-border-orangelight-dark(#ffc7a1, #df843f)
--astryx-color-icon-orangelight-dark(#622700, #ff9e55)
--astryx-color-text-orangelight-dark(#622700, #ffb37e)
Pink
--astryx-color-background-pinklight-dark(#ffc0d7, #572b3d)
--astryx-color-border-pinklight-dark(#ffc0d7, #fc78b1)
--astryx-color-icon-pinklight-dark(#70003f, #fd92bd)
--astryx-color-text-pinklight-dark(#70003f, #ffa9ca)
Purple
--astryx-color-background-purplelight-dark(#f7d5ff, #4a2f51)
--astryx-color-border-purplelight-dark(#f3bfff, #d885eb)
--astryx-color-icon-purplelight-dark(#5c0e6c, #e496f6)
--astryx-color-text-purplelight-dark(#5c0e6c, #eaacf8)
Red
--astryx-color-background-redlight-dark(#ffc4be, #5b2b28)
--astryx-color-border-redlight-dark(#ffaea7, #fa6762)
--astryx-color-icon-redlight-dark(#76000c, #ff9890)
--astryx-color-text-redlight-dark(#76000c, #ffaea7)
Teal
--astryx-color-background-teallight-dark(#a9e2d6, #28413c)
--astryx-color-border-teallight-dark(#90d7c8, #4fb1a0)
--astryx-color-icon-teallight-dark(#00463d, #81c9bb)
--astryx-color-text-teallight-dark(#00463d, #90d7c8)
Yellow
--astryx-color-background-yellowlight-dark(#fae19e, #453a1c)
--astryx-color-border-yellowlight-dark(#e3c36c, #c29900)
--astryx-color-icon-yellowlight-dark(#4b3900, #e2b623)
--astryx-color-text-yellowlight-dark(#4b3900, #eec448)
Charts
--astryx-color-data-categorical-bluelight-dark(#0171E3, #0171E3)
--astryx-color-data-categorical-orangelight-dark(#EB6E00, #EB6E00)
--astryx-color-data-categorical-purplelight-dark(#6B1EFD, #6B1EFD)
--astryx-color-data-categorical-greenlight-dark(#0B991F, #0B991F)
--astryx-color-data-categorical-pinklight-dark(#F351C0, #F351C0)
--astryx-color-data-categorical-cyanlight-dark(#0171A4, #0171A4)
--astryx-color-data-categorical-redlight-dark(#F5394F, #F5394F)
--astryx-color-data-categorical-teallight-dark(#08A3A3, #08A3A3)
--astryx-color-data-categorical-brownlight-dark(#965E03, #965E03)
--astryx-color-data-categorical-indigolight-dark(#6F8AFF, #6F8AFF)
--astryx-color-data-neutrallight-dark(#8494A3, #8C939B)
--astryx-color-data-blue-5light-dark(#02165E, #02165E)
--astryx-color-data-blue-4light-dark(#004CBC, #004CBC)
--astryx-color-data-blue-3light-dark(#2694FE, #2694FE)
--astryx-color-data-blue-2light-dark(#78BEFF, #78BEFF)
--astryx-color-data-blue-1light-dark(#DBECFF, #DBECFF)
--astryx-color-data-shamrock-5light-dark(#0B603D, #0B603D)
--astryx-color-data-shamrock-4light-dark(#138546, #138546)
--astryx-color-data-shamrock-3light-dark(#24BB5E, #24BB5E)
--astryx-color-data-shamrock-2light-dark(#8EF7AA, #8EF7AA)
--astryx-color-data-shamrock-1light-dark(#D6FEE4, #D6FEE4)
--astryx-color-data-orange-5light-dark(#A13F04, #A13F04)
--astryx-color-data-orange-4light-dark(#D66100, #D66100)
--astryx-color-data-orange-3light-dark(#FD9537, #FD9537)
--astryx-color-data-orange-2light-dark(#FDB876, #FDB876)
--astryx-color-data-orange-1light-dark(#FFE6CF, #FFE6CF)
--astryx-color-data-pink-5light-dark(#8E1073, #8E1073)
--astryx-color-data-pink-4light-dark(#D123A1, #D123A1)
--astryx-color-data-pink-3light-dark(#F989D3, #F989D3)
--astryx-color-data-pink-2light-dark(#FEADE3, #FEADE3)
--astryx-color-data-pink-1light-dark(#FCE3F4, #FCE3F4)
--astryx-color-data-purple-5light-dark(#3E0697, #3E0697)
--astryx-color-data-purple-4light-dark(#6B1EFD, #6B1EFD)
--astryx-color-data-purple-3light-dark(#9081FF, #9081FF)
--astryx-color-data-purple-2light-dark(#B3B0FE, #B3B0FE)
--astryx-color-data-purple-1light-dark(#E8E8FB, #E8E8FB)
--astryx-color-data-red-5light-dark(#9D0519, #9D0519)
--astryx-color-data-red-4light-dark(#D31130, #D31130)
--astryx-color-data-red-3light-dark(#FB7D87, #FB7D87)
--astryx-color-data-red-2light-dark(#FFB2B8, #FFB2B8)
--astryx-color-data-red-1light-dark(#FEE4E6, #FEE4E6)
--astryx-color-data-teal-5light-dark(#08767D, #08767D)
--astryx-color-data-teal-4light-dark(#0C9293, #0C9293)
--astryx-color-data-teal-3light-dark(#0DB7AF, #0DB7AF)
--astryx-color-data-teal-2light-dark(#6CE6D8, #6CE6D8)
--astryx-color-data-teal-1light-dark(#D7FCF8, #D7FCF8)
--astryx-color-data-yellow-5light-dark(#8A5001, #8A5001)
--astryx-color-data-yellow-4light-dark(#D69804, #D69804)
--astryx-color-data-yellow-3light-dark(#FBCE03, #FBCE03)
--astryx-color-data-yellow-2light-dark(#FCEC85, #FCEC85)
--astryx-color-data-yellow-1light-dark(#FDF6BA, #FDF6BA)
--astryx-color-data-gray-5light-dark(#25363F, #333338)
--astryx-color-data-gray-4light-dark(#5D6C7B, #666A72)
--astryx-color-data-gray-3light-dark(#AFB9C4, #B2B8BE)
--astryx-color-data-gray-2light-dark(#CCD3DB, #D0D3D6)
--astryx-color-data-gray-1light-dark(#F1F4F7, #F2F4F6)