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

Update Types to allow an array of CSSRuleObjects #14347

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

moshie
Copy link

@moshie moshie commented Sep 4, 2024

When generating tailwind css to js using prejss it combines sections in an array which tailwind's types are not happy with.

"@supports (color: oklch(0% 0 0))": [
      {
        ".btn": {
          "backgroundColor": "var(--btn-color, var(--zui-primary-button))",
          "borderColor": "var(--btn-color, var(--zui-primary-button))"
        }
      },
      {
        ".btn-primary": {
          "-BtnColor": "var(--primary-button)"
        }
      }
    ],

I propose we update the type to allow for CSSRuleObjects[]

related to: #14054

@moshie
Copy link
Author

moshie commented Sep 9, 2024

Thoughts?

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

Successfully merging this pull request may close these issues.

1 participant