Skip to content
New issue

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

[breaking!] accent color variables are missing within new createPreset #477

Open
dannylin108 opened this issue Nov 24, 2024 · 0 comments
Open

Comments

@dannylin108
Copy link

dannylin108 commented Nov 24, 2024

With version 0.43 createPreset has changed to use pre-generated color palettes instead of just names:

import cyan from '@park-ui/panda-preset/colors/cyan'
import slate from '@park-ui/panda-preset/colors/slate'

export default defineConfig({
  preflight: true,
  presets: [
    '@pandacss/preset-base',
    createPreset({
      accentColor: cyan,
      grayColor: slate,
      radius: 'lg'
    }),
  ],
  ...

After that, these CSS vars for accent colors are not generated by Panda anymore:

 --colors-accent-1: var(--colors-cyan-light-1);
    --colors-accent-2: var(--colors-cyan-light-2);
    --colors-accent-3: var(--colors-cyan-light-3);
    --colors-accent-4: var(--colors-cyan-light-4);
    --colors-accent-5: var(--colors-cyan-light-5);
    --colors-accent-6: var(--colors-cyan-light-6);
    --colors-accent-7: var(--colors-cyan-light-7);
    --colors-accent-8: var(--colors-cyan-light-8);
    --colors-accent-9: var(--colors-cyan-light-9);

It's even on a park-ui.com website:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant