Skip to content

Latest commit

 

History

History
124 lines (74 loc) · 2.43 KB

File metadata and controls

124 lines (74 loc) · 2.43 KB

@utrecht/pre-heading-css

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

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

1.4.1

Patch Changes

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

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

Patch Changes

  • 71dd085: Update Figma support in the design token metadata for the Pre-heading component.

1.2.1

Patch Changes

  • e0d6ca6: Changed value for Figma support metadata:

    • Code block
    • Code
    • Color sample
    • Drawer
    • Pre heading

1.2.0

Minor Changes

  • 64c613c: Added metadata for pre-heading 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.