How to use preset tokens #1689
-
I am trying to do a simple thing. I want to set red.500 to the background of a div.
I came from ChakraUI where this works, so I am a bit confused. Am I expected to add all of the tokens one by one in Can anybody help me figure this out? My setup:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
@KatFishSnake Must be something wrong with your setup. This works as you can see in the playground |
Beta Was this translation helpful? Give feedback.
-
Actually had park ui messing this up, so removing the following from
|
Beta Was this translation helpful? Give feedback.
@KatFishSnake @anubra266
Park UI dropped support for the colors that ship by default with
@pandacss/preset-panda
by using@pandacss/preset-base
. Instead Park UI using the Radix Color System which offers greater flexibility and a more consistent color experience, particularly when toggling between dark and light modes.Regarding your issue, it's important to note that you can no longer use color references like
red.500
. Instead, you should select red shades numbered from 1-12 under the new system. For more detailed information about this change, you can explore the colors overview