Skip to content

Implement support for wrapping styles in a css @layer rule#223

Merged
seanrcollings merged 1 commit intomainfrom
sc/css-layers
Feb 27, 2026
Merged

Implement support for wrapping styles in a css @layer rule#223
seanrcollings merged 1 commit intomainfrom
sc/css-layers

Conversation

@seanrcollings
Copy link
Copy Markdown
Contributor

@seanrcollings seanrcollings commented Feb 27, 2026

Wraps all elements styles in a @layer elements directive (name customizable).

This should make overriding the elements styles a lot easier as layers give you direct control over how styles cascade:

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@layer

@seanrcollings seanrcollings merged commit f690cfc into main Feb 27, 2026
1 check passed
@seanrcollings seanrcollings deleted the sc/css-layers branch February 27, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants