Skip to content

Latest commit

 

History

History
124 lines (73 loc) · 2.62 KB

File metadata and controls

124 lines (73 loc) · 2.62 KB

@utrecht/paragraph-css

4.0.0

Major Changes

  • eabbf23: Publish tokens.json in DTCG format: $value instead of value, standard $type, etcetera.

3.0.1

Patch Changes

  • 9b3cb1e: Release with npm provenance.

3.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

    // 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

    // Before
    @import "~@utrecht/button-css/src/mixin";
    @include utrecht-button;
    
    // After
    @use "~@utrecht/button-css/src/forward" as *;
    @include utrecht-button;

    With Namespaces

    @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.

2.3.1

Patch Changes

  • e20f33c: Provide .d.mts file for .mjs files in CSS components.

2.3.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

2.2.0

Minor Changes

  • 725617a: Add tokens.mjs and tokens.d.mts files to CSS packages.

2.1.0

Minor Changes

  • e497b08: Export CSS string as default export in dist/index.mjs.

2.0.0

Major Changes

  • fe20468: Breaking change: Removed "lead" and "small" styling from HTML paragraph component. If "lead" or "small" are now used, there will be no styling.

    Removed "lead" and "small" stories from html paragraph.

1.2.0

Minor Changes

  • 526ba87: Added metadata for paragraph 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.