We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently Panda produces invalid CSS when extending the theme with semanticTokens, which results in unusable tokens.
e.g. my theme looks like this:
theme: { extend: { semanticTokens: defineSemanticTokens({ colors: { customRed: { value: { _base: '{colors.red.800}', _dark: '{colors.red.200}' }, }, }, }), }, },
then the last lines of the output CSS in styled-system/tokens/index.css looks like this:
styled-system/tokens/index.css
... --colors-color-palette-500: var(--colors-color-palette-500); --colors-color-palette-600: var(--colors-color-palette-600); --colors-color-palette-700: var(--colors-color-palette-700); --colors-color-palette-800: var(--colors-color-palette-800); --colors-color-palette-900: var(--colors-color-palette-900) } { --colors-custom-red: #991b1b } .dark { --colors-custom-red: #fecaca } }
Thank you so much for creating Panda, this is just awesome!
https://stackblitz.com/edit/vitejs-vite-1z5hns?file=panda.config.ts
No response
0.3.2
The text was updated successfully, but these errors were encountered:
@dsumer just noting that it's base not _base
base
_base
Sorry, something went wrong.
Here's a working Stackblitz https://stackblitz.com/edit/vitejs-vite-nt8jwv?file=panda.config.ts,src%2FApp.tsx
After testing, can confirm that using _base is what caused the issue.
ouch, yes that fixes the problem, thanks for pointing this out and for the incredibly fast responses!
No branches or pull requests
Description
Currently Panda produces invalid CSS when extending the theme with semanticTokens, which results in unusable tokens.
e.g. my theme looks like this:
then the last lines of the output CSS in
styled-system/tokens/index.css
looks like this:Thank you so much for creating Panda, this is just awesome!
Link to Reproduction
https://stackblitz.com/edit/vitejs-vite-1z5hns?file=panda.config.ts
Steps to reproduce
JS Framework
No response
Panda CSS Version
0.3.2
Browser
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: