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

support deeply nested colors in tailwind service #48

Open
olets opened this issue Jan 21, 2022 · 0 comments
Open

support deeply nested colors in tailwind service #48

olets opened this issue Jan 21, 2022 · 0 comments

Comments

@olets
Copy link
Contributor

olets commented Jan 21, 2022

Tailwind supports deeply nested colors; our Tailwind service doesn't. Changing getColors to use a recursive function would add support for deeply nested colors.

Example: the AHIP design system has things like "blue" and "dark blue", which we set up as

      blue: {
        DEFAULT: '#5fb1c3',
        // … several levels of blue
        dark: {
          DEFAULT: '#004b66',
          // … several levels of dark blue
        },
      },
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