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

Generate CSS packages from React styles #2577

Closed
NicholasBoll opened this issue Feb 13, 2024 · 0 comments
Closed

Generate CSS packages from React styles #2577

NicholasBoll opened this issue Feb 13, 2024 · 0 comments

Comments

@NicholasBoll
Copy link
Member

🚀 Feature Proposal

Generate CSS Kit from React Kit.

Motivation

Less maintenance supporting a CSS kit and guarantee the CSS kit and React kit are up-to-date.

Example

In the button package, the following should extract similar to below:

modules/react/button/lib/Button.tsx

const buttonStencil = createStencil({
  base: {
    padding: 10
  },
  modifiers: {
    size: {
      large: {
        padding: 20
      }
    }
  }
})

modules/css/button.css

.cnvs-button { padding: 10px; }
.cnvs-button--size-large { padding: 20px; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

No branches or pull requests

1 participant