cschroeter / park-ui

Beautifully designed components built with Ark UI and Panda CSS that work with a variety of JS frameworks.
https://park-ui.com
MIT License
1.75k stars 75 forks source link

fix `Missing token: colors.red.9` #401

Closed tobigumo closed 3 months ago

tobigumo commented 3 months ago

I got this error with @park-ui/panda-preset@0.41.0

🐼 warn [config] ⚠️ Invalid config:
- [tokens] Missing token: `colors.red.9` used in `theme.semanticTokens.colors.fg.error`
- [tokens] Missing token: `colors.red.9` used in `theme.semanticTokens.colors.border.error`

Changing the semantic token value from colors.red.9 to colors.red.light.9 and colors.red.dark.9 seems to solve the problem.

vercel[bot] commented 3 months ago

@tobigumo is attempting to deploy a commit to the Personal Team on Vercel.

A member of the Team first needs to authorize it.

cschroeter commented 3 months ago

@tobigumo Good catch mate. I went a step further and added red as semantic token.

const availableColors = [grayColor, accentColor, 'red', ...additionalColors]