Re: [csswg-drafts] [CSS Import Once] @import-once, or some syntax for importing a stylesheet only once (#6130)

Would mixins address this? Then you can import mixins for each of these styles and apply them. E.g.

```css
@import url("button-styles.css");

button, .button, ::part(button) {
 @apply --flat-accent-button();
}
```

Alternatively:
- [the `@sheet` proposal](https://github.com/w3c/csswg-drafts/issues/11509), depending on where that goes (but I really hope it can serve these use cases)
- The [`specifier:` URL proposal](https://github.com/whatwg/html/issues/12163) is also relevant, which would allow registering specifiers for stylesheets with import behavior similar to JS modules (including deduplication of HTTP requests) 

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6130#issuecomment-4343911700 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 29 April 2026 13:05:27 UTC