Skip to content

Commit 28d53cc

Browse files
docs(chakra-migration-guide): update guide for nested semantic token structure
1 parent 1dd98b5 commit 28d53cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/chakra-migration-guide.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,11 @@ const Text = styled.p`
118118
`
119119

120120
// now
121-
<Text color="primary" bg="background" />
121+
<Text color="primary.base" bg="background.base" />
122122
```
123123

124+
> Note the dotted notation. In Chakra, the values are referred to as "semantic tokens" and the new theme applies a nested structure of like tokens for better organization. See [semanticTokens.ts](../src/%40chakra-ui/gatsby-plugin/semanticTokens.ts)
125+
124126
<aside>
125127
💡 In the **next iteration** we will refactor all the colors with the correct color from the new Design System
126128
</aside>

0 commit comments

Comments
 (0)