Skip to content

Commit

Permalink
docs: adds css variable type cleanup step
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolai Lopin <[email protected]>
  • Loading branch information
Nikolai Lopin committed Jan 12, 2024
1 parent e24a9f3 commit 07fbc99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/migrating.storybook.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,12 @@ Consider the role the color fulfils in your use case, and pick the matching vari
- _shadow_.

The list of semantic variables is available at [the colors page](?path=/docs/essentials-colors--docs),
but we recommend using a typed `getSemanticValue` helper instead of hardcoding variable names (they are long).
but we recommend using a typed `getSemanticValue` helper instead of hard-coding variable names (they are long).

<CssVariablesMigrationTable />

After you are done, replace all mentions of `ReadCssColorVariable | (string & {})` in your code with `ReadCssColorVariable`.

### Set the default page background to Wave's

Wave has several CSS variables for page background color because of the dark/light schemes.
Expand Down

0 comments on commit 07fbc99

Please sign in to comment.