consider using cascade layers #1048
mayank99
started this conversation in
Feature Requests
Replies: 1 comment 6 replies
-
Definitely on our radar, thanks @mayank99! Our current browser support matrix includes Chromium v88–98 which don’t support |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.12.0
What is your idea?
Currently evaluating starlight for a docsite (already using Astro) which makes heavy use of cascade layers for all of its styles. It would help if Starlight wrapped all of its styles in a cascade layer (either by default or opt-in). Alternatively, provide a manual way to import Starlight styles. Would this be possible?
Why is this feature necessary?
Cascade layers are a sort of "all or nothing" feature. Starlight's unlayered styles will take preference over even the highest priority cascade layer, which causes varying amounts of frustration depending on where the custom styles are meant to go.
With all Starlight styles wrapped in a specific layer, it allows the author to add styles both before and after starlight's styles, without any specificity battles. The basic order would be something like this:
Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions