Replies: 2 comments
-
|
@rossmoody thanks! converted to a discussion, i'll come back to this |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Loving Stitches. This is more of a nascent idea, versus a request or bug.
I like that I can target theme color aliases like how is outlined here but the implementation isn't very elegant when I have to repeat it multiple times in the same file (especially with variants). I've always been a fan of how Chakra handles this with a
modehelper function. I mimicked a helper function in my tiny project that works pretty well so I wanted to share it as a consideration for a baked-in utility of some kind. OR, if I am going about this in a subpar way please lemme know so I can fix it up. (I know I could alias these at the theme level but I'm a sucker for keeping my styles next to my components).Previous
Works fine, but gets unruly fast and I have to import my themes into every component file.
Mode function
Beta Was this translation helpful? Give feedback.
All reactions