From be13e705a595c6cf4d7a1a86eb3c7cfa76983420 Mon Sep 17 00:00:00 2001
From: Cagatay Civici Colors are exported as CSS variables and used with the standard var syntax such as var(--text-color). Following is the list of general variables used in a theme. Colors palette consists of 13 main colors where each color provides tints/shades from 50 to 900. Surface palette is used when designing the layers such as headers, content, footers, overlays and dividers. Surface palette varies between 0 - 900 and named surfaces are also available.
-
-
-
-
-
-
- Variable
- Description
-
-
- --text-color
- Font text color.
-
-
- --text-secondary-color
- Muted font text color with a secondary level.
-
-
- --primary-color
- Primary color of the theme.
-
-
- --primary-color-text
- Text color when background is primary color.
-
-
- --font-family
- Font family of the theme.
-
-
- --inline-spacing
- Spacing between to adjacent items.
-
-
- --border-radius
- Common border radius of elements.
-
-
- --focus-ring
- Box shadow of a focused element.
-
-
- --mask-bg
- Background of an overlay mask.
-
-
- --highlight-bg
- Background of a highlighted element.
-
-
-
- --highlight-text-color
- Text color of a highlighted element.
-
-
-
-
-
-
-
- Variable
- Description
-
-
- --surface-ground
- Base ground color.
-
-
- --surface-section
- Background color of a section on a ground surface.
-
-
- --surface-card
- Color of a surface used as a card.
-
-
- --surface-overlay
- Color of overlay surfaces.
-
-
- --surface-border
- Color of a divider.
-
-
-
- --surface-hover
- Color of an element in hover state.
-
Colors can be accessed at CSS as a variable and programmatically using the $dt utility.
+Design tokens can be scoped to a certain component using CSS variables. In an upcoming update, a special dt property would be introduced to generate the CSS variables from a design token object.
+Design tokens can be scoped to a certain component using CSS variables.
In an upcoming update, a special dt property would be introduced for each component to generate the CSS variables from a design token object.
+