Recipe layer selection #3047
bohdanbirdie
started this conversation in
General
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.
-
I have a specific use case. ParkUI is used as a base for my components, but I also add extra styles using recipes.
Using
svaorcvais somewhat ok. Specificity is correct because recipe styles from ParkUI are in therecipeslayer and all overrides fromsvaorcvaare in theutilitieslayer.Yet, specificity is broken when I want to move to
defineRecipe. If ParkUI defines a recipe with a name that is alphabetically further than my custom recipe, none of my overrides can work.It can be assumed, as a generic case, that multiple presets can be stacked. So would it make sense to add a property to
definePresetto scope generated recipes into a specific layer? In my case, it would suffice to define a layer underbasefor Park UI and another layer for my custom styles.Beta Was this translation helpful? Give feedback.
All reactions