@utrecht/document-css
Version:
Document component for the Municipality of Utrecht based on the NL Design System architecture
123 lines (72 loc) • 2.52 kB
Markdown
# @utrecht/document-css
## 3.0.1
### Patch Changes
- 0f759fc: Ensure package is published with provenance
## 3.0.0
### Major Changes
- eabbf23: Publish `tokens.json` in DTCG format: `$value` instead of `value`, standard `$type`, etcetera.
## 2.0.1
### Patch Changes
- 9b3cb1e: Release with npm provenance.
## 2.0.0
### Major Changes
- 77438bb: # BREAKING CHANGE: Migrate from SCSS @import to @use/@forward
Migrated all SCSS files from the legacy `@import` syntax to the modern `@use` and `@forward` module system.
## Breaking Changes
- **Import syntax changed**: `@import` statements replaced with `@use`/`@forward`
- **Namespace requirements**: Some imports now require explicit namespaces
- **File structure**: Added `_forward.scss` files for mixin exports
- **Module loading**: Modules are now loaded once and cached
## Migration Guide
### For CSS Classes
```scss
// Before
@import "~@utrecht/button-css/src/index";
// After (recommended)
@use "~@utrecht/button-css/src/index";
// Note: @import still works for CSS-only files but @use is recommended
```
### For Mixins
```scss
// Before
@import "~@utrecht/button-css/src/mixin";
@include utrecht-button;
// After
@use "~@utrecht/button-css/src/forward" as *;
@include utrecht-button;
```
### With Namespaces
```scss
@use "~@utrecht/focus-ring-css/src/forward" as focus-ring;
@include focus-ring.utrecht-focus-visible;
```
## Benefits
- Better performance through module caching
- Namespace safety prevents naming conflicts
- Explicit dependencies improve maintainability
- Future-proof with modern SCSS standards
See `SCSS_MIGRATION.md` for detailed migration instructions.
## 1.5.1
### Patch Changes
- e20f33c: Provide `.d.mts` file for `.mjs` files in CSS components.
## 1.5.0
### Minor Changes
- 729f698: Restore vanilla HTML implementations to the npm packages of CSS components, with the following files:
- `dist/html/index.css`
- `dist/html/index.min.css`
- `dist/html/index.mjs`
## 1.4.0
### Minor Changes
- 725617a: Add `tokens.mjs` and `tokens.d.mts` files to CSS packages.
## 1.3.0
### Minor Changes
- e497b08: Export CSS string as default export in `dist/index.mjs`.
## 1.2.0
### Minor Changes
- a42a56a: Added metadata for document tokens.
## 1.1.0
### Minor Changes
- 62f1157: Add SCSS files to `src/` directory of CSS component packages.
## 1.0.0
### Major Changes
- 856d996: Switch from alpha releases to semantic versioning.