v4 Prose customization - plugins
@layer
#14551
fcrozatier
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
@fcrozatier Heya! I am not quite sure what you're trying to do here. In the code example it seems like you're extending the
The CSS you're adding is not within any layer and since we put the utilities created from the plugin inside the You have code for this in your example where you're saying you need |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Motivation
In v4 I'd like to both:
The problem is that currently we can't do this properly: I can override the default styles by using unlayered selectors or layering them in
utilities
But then to override this for one-off modifications I have to use the
!important
modifierWorkaround
I can fix this if I use the prose gist by importing it in a
plugin
layer with lower priority thanutilities
Then I can make one-off modifications with utilities without the
!important
modifierSolution
It would be great to have a
plugin
layer with lower priority thanutilities
where the@plugin
directive would import by default, to be able to both override the defaults and still be able to use utilities without the!important
modifierBeta Was this translation helpful? Give feedback.
All reactions