Made a helper for styling children/siblings by variant #1663
limgit
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone! I just made a small utility called global-recipes that scratches an itch I've had for a while. When styling child elements or siblings based on recipe variants, I always ended up with a bunch of repetitive
globalStylecalls scattered around my.css.tsfiles. This package lets you write those global styles in the same declarative, compound-variants style that recipes use — so everything stays organized and type-safe. Would love to hear your thoughts if you find it useful!The package is here: https://www.npmjs.com/package/global-recipes, and the repository is https://github.com/limgit/global-recipes
Happy styling!
Beta Was this translation helpful? Give feedback.
All reactions