iTwin / iTwinUI

A design system for building beautiful and well-working web interfaces.
https://itwin.github.io/iTwinUI/
MIT License
92 stars 35 forks source link

wrap `all.css` in `@layer` #1963

Closed mayank99 closed 1 month ago

mayank99 commented 1 month ago

Changes

This PR wraps the distributed all.css inside a @layer. Previously this file was unlayered and was being explicitly layered by the importer (e.g. css-workshop and itwinui-react).

This is the first step towards introducing nested internal layers for managing cross-component cascade priority.

Note: Sass doesn't allow @forward inside @layer so I had to use meta.load-css.

Testing

Everything works the same as before, just the layers have moved from one place to another.

Docs

Added major changeset for itwinui-css, since this is technically a breaking change.