Replies: 2 comments 5 replies
-
Hey! Thanks for the feedback! To address your points:
|
Beta Was this translation helpful? Give feedback.
-
@markdalgleish Regarding point 6 here, what’s your recommended approach for child selectors within variants? export const parent = recipe({
variants: {
primary: {
[`& ${child}`]: {
color: "blue",
},
},
secondary: {
[`& ${child}`]: {
color: "red",
},
},
},
}); Stitches, Emotion, et al. all allow component targeting, however, this is listed as explicitly prohibited. |
Beta Was this translation helpful? Give feedback.
-
Hello!
First and foremost, thanks for the library! If you feel like this better fits into Discussions, feel free to move it there.
I wanted to refactor a project of mine and saw the library pop-up on Twitter so I gave it a try: https://github.com/LekoArts/gatsby-source-tmdb/tree/7701461beb678b3ca2534e03b4c6df1aeea818a0/example
So here are some loosely structured thoughts about using it the first time. I didn't hit any bugs, only usage limitations and some confusion around docs.
globalStyle
I'd also like to use element selectors likeh1
. I needed to define the global styles for headings inside a normal CSS file:hover:after
pseudo selector so I also had to revert to a normal CSS file for thatselectors
portion in the docs was unclear to me, at the beginning I got a lot of error messages as I e.g. tried to use element selectors or classnames there. Only later it made click that it only affects the current style/class and that you can use that with a parenthttps://github.com/LekoArts/gatsby-source-tmdb/blob/7701461beb678b3ca2534e03b4c6df1aeea818a0/example/src/components/detail-view.css.ts#L74-L80
But what would be better to define a css var like
icon-fill-color
in the icon and then in the CSS the--icon-fill-color: 'newColor'
is reassigned instead of overriding thefill
itself. I probably didn't do that as the docs had part of that pattern only here: https://github.com/seek-oss/vanilla-extract#createvarBeta Was this translation helpful? Give feedback.
All reactions