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

theme.colors nesting issues #1230

Closed
blowsie opened this issue Jul 7, 2022 · 0 comments
Closed

theme.colors nesting issues #1230

blowsie opened this issue Jul 7, 2022 · 0 comments
Labels
bug Something isn't working preset-mini

Comments

@blowsie
Copy link

blowsie commented Jul 7, 2022

Creating nested colors in the theme config does not work.
I was able to make a workaround by using lowerCamelCasedKeys.

I believe this is a bug?

  theme:{
    colors:{
      crimson: 'crimson', // bg-crimson PASS
      nested: {
       yellow: 'yellow', //  bg-nested-yellow PASS
       twice: {
         green: 'green' // bg-nested-twice-green FAIL
       }
      },
      nestingWorkaroundGreen: 'green' // bg-nesting-workaround-green PASS
    }
  },

Playground Reproduction

@antfu antfu added bug Something isn't working preset-mini labels Jul 7, 2022
@antfu antfu closed this as completed in ed5fbc2 Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preset-mini
Projects
None yet
Development

No branches or pull requests

2 participants