Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS @layer support to override existing presets #1569

Open
fourdim opened this issue May 4, 2024 · 0 comments
Open

CSS @layer support to override existing presets #1569

fourdim opened this issue May 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@fourdim
Copy link

fourdim commented May 4, 2024

Is your feature request related to a problem? Please describe.
Sometimes users need to add !important to override the styles that already exist in presets.

Describe the solution you'd like
https://developer.mozilla.org/en-US/docs/Web/CSS/@layer
Then we can put presets in the lower layer while user defined CSS in the higher layer.
User defined CSS will automatically override presets so that they don't need to worry about fighting the slidev's presets in terms of selector strength.

Describe alternatives you've considered
None.

@fourdim fourdim added the enhancement New feature or request label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant