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
-
I have a specific use case. ParkUI is used as a base for my components, but I also add extra styles using recipes.
Using
sva
orcva
is somewhat ok. Specificity is correct because recipe styles from ParkUI are in therecipes
layer and all overrides fromsva
orcva
are in theutilities
layer.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
definePreset
to scope generated recipes into a specific layer? In my case, it would suffice to define a layer underbase
for Park UI and another layer for my custom styles.Beta Was this translation helpful? Give feedback.
All reactions