Skip to content

Releases: digdir/designsystemet

@digdir/designsystemet-theme@0.101.0

03 Mar 12:21
6a609bf
Compare
Choose a tag to compare
@digdir/designsystemet-theme@0.101.0

@digdir/designsystemet-react@1.0.0

03 Mar 13:35
5fb71bf
Compare
Choose a tag to compare

Major Changes

  • 🎉 Version 1.0 of Designsystemet! 🎉 (#3290)

    We are excited to announce the release of Version 1.0 of Designsystemet! This marks a significant milestone as we establish a solid foundation for future development. 🚀

@digdir/designsystemet-react@0.101.0

03 Mar 12:21
6a609bf
Compare
Choose a tag to compare

Minor Changes

  • SeverityColors is removed from Color type. Components where we deem severity to be relevant, now explicitly have SeverityColors added to data-color. Button component only allows "danger". (#3223)

  • Badge, Card, Details, Popover: Rename data-variant prop to variant (#3241)

  • ToggleGroup.Item: Disallow setting variant directly, it should only be set based on which item in the group is active (#3241)

Patch Changes

@digdir/designsystemet-css@1.0.0

03 Mar 13:35
5fb71bf
Compare
Choose a tag to compare

Major Changes

  • 🎉 Version 1.0 of Designsystemet! 🎉 (#3290)

    We are excited to announce the release of Version 1.0 of Designsystemet! This marks a significant milestone as we establish a solid foundation for future development. 🚀

@digdir/designsystemet-css@0.101.0

03 Mar 12:21
6a609bf
Compare
Choose a tag to compare

Patch Changes

  • New class ds-focus--inset for adding a focus border on the insider of an element (#3222)

  • Button: When setting both aria-busy and aria-disabled, we don't turn down opacity, and show a progress cursor (#3211)

  • Radio: fix filled error state in Fieldset (#3257)

  • Tabs: Focus now fully encompasses Tab (#3270)

  • Tabs: change selected color and inherit color on content (#3191)

  • Details: Change to inset focus (#3271)

  • Dropdown: Move dropdown closer to trigger (#3273)

  • Removed --ds-global colors from tokens build (#3250)

  • Breadcrumbs: Fix arrow to inherit color when in a link (#3269)

  • Rename --ds-disabled-opacity to --ds-opacity-disabled (#3250)

  • Added :not([hidden]) around display CSS properties to respect native hidden attribute (#3278)

  • Added --ds-link-color-visited for styling visited links (#3250)

@digdir/designsystemet@0.100.52

26 Feb 12:57
22a544d
Compare
Choose a tag to compare

Patch Changes

  • Invalidate system colors as color names (success, danger, warning, info, blue, green, orange, red, purple) (#3228)

@digdir/designsystemet@0.100.51

26 Feb 12:19
0860f99
Compare
Choose a tag to compare
  • 2d1da9a: Testing snapshot release

  • 10e7b55: Fix wrong base default color beeing set by the themebuilder

  • 0f7418e: Added token border-width-focus

  • 882c206: Create & build tokens correctly if support-color is missing

  • 418b31a: chore: Fix rollup build warnings for react package

  • 482f765: Renamed background, surface and contrast color tokens and CSS variables

  • b9c5deb: Fix design-token warning contrast color reference

  • 58724b7: tokens: fix wrong reference for focus color.

  • a42f6f7: refactor: Changed border-radius token to dimension type

  • a9f0528: refactor: single CSS file for theme

  • d146fbe: clean should only run once during tokens create when multiple themes are defined using config file

  • c25920a: Add JSON schema for CLI config file, which enables editor hints. To use it, do something like this:

    {
      "$schema": "node_modules/@digdir/designsystemet/dist/config.schema.json",
      // ...config options here...
    }
  • d679d0c: fix: Correct name on Figma collection for color schemes

  • bcd50d9: cli: better error messages for wrong or missing options

  • cc236ab: Changed name of Tokens Studio theme "Mode" to "Color scheme", and updated the path in the token structure from primitives/modes/colors to primitives/modes/color-scheme

  • 957d418: Increased lightness of global orange color

  • 3109699: Add json config file support for tokens create

  • 2f94b73: Added option dry run using --dry on tokens create & tokens build

  • 24d8f90: Update init script to new design-tokens format

  • 0f7418e: Removed token border-width-highlight

  • 38a0843: fix(cli): 🚑 include missing build files for designsystemet bin

  • 482f765: Added migration for color tokens renaming. Run designsystemet migrate css-renames-next48-to-next49 --glob "./**/*.css"

  • 2f94b73: tokens create now writes by default

  • 7ed2b22: Disable contrast color-scheme in tokens create script

  • 188bd19: CLI: tokens build command now generates a colors.d.ts file which enables type safety for the data-color attribute when included in your tsconfig.json. The @digdir/designsystemet-theme package has been updated to include types for those themes.

  • e6325af: fix: Export correct types for color

  • 58724b7: Changed focus color to use neutral instead of accent color

  • dc6ab52: Rename data-ds-typography to data-typography

  • 1a37354: Renamed color step contrast-1 to 16

  • 7115f38: Removed predefined accent variables added during tokens build. Use data-color or generated named color variables instead.

  • 0f7418e: Reduced font-size scale by one, from 11 to 10. All sizes above and including font-size-2 have shifted down size by one

  • 1a37354: Added new step to color scale, now with a total of 16

  • d146fbe: typography and borderRadius are now optional in config file

  • db678d4: Removed init command. Use tokens create instead.

  • 1767724: React components and css now support custom colors through the data-color attribute.

    BREAKING CHANGE: All React components that had a color prop have been changed to use data-color.

    All1 css targeting data-color has been changed to work with all custom colors generated by the CLI.

    Avatar, Badge, Button, and Link use --ds-color-accent-*2, unless data-color is set directly on the element.

    For components that had a color prop, but defaulted to something other than "accent", data-color must also be set directly on the element.

    All other components that defaulted to "accent", or previously only existed in "accent" color, now support data-color. They will also inherit their color from the closest data-color attribute. If none is found, they use --ds-color-accent-*2.

    1: ...except Alert, which only supports info, warning, danger and success colors.
    2: If an "accent" color is not defined in the theme, the --ds-color-accent-* variables will point to the first main-color.

  • cd1c607: New create tokens script with color options support

  • 6998d4b: BREAKING CHANGE: The attribute / prop data-ds-color-mode has been renamed to data-color-scheme

  • 347bb61: Rename config option from --json to --config

  • f2b9922: chore: Reset data-color to degfault color when setting data-color-scheme

  • 83e083b: Increased the luminance of the Surface Tinted color in light mode and made Surface Tinted stand out more against Surface Default in dark mode.

  • 65c1d54: bump version

  • 1a37354: Changed order for semantic color tokens in design-tokens

  • a452813: CSS variables: --ds-color-*-{1,2,...,13,contrast-1,contrast-2}, which were generated from the primitives layer of design tokens, have been removed since they are always 1-to-1 with the semantic layer. Use the equivalent variables from the semantic layer instead

    Example, for the neutral scale:

      var(--ds-color-neutral-background-default); /* instead of: var(--ds-color-neutral-1) */
      var(--ds-color-neutral-background-subtle);  /* instead of: var(--ds-color-neutral-2) */
      var(--ds-color-neutral-surface-default);    /* instead of: var(--ds-color-neutral-3) */
      var(--ds-color-neutral-surface-hover);      /* instead of: var(--ds-color-neutral-4) */
      var(--ds-color-neutral-surface-active);     /* instead of: var(--ds-color-neutral-5) */
      var(--ds-color-neutral-border-subtle);      /* instead of: var(--ds-color-neutral-6) */
      var(--ds-color-neutral-border-default);     /* instead of: var(--ds-color-neutral-7) */
      var(--ds-color-neutral-border-strong);      /* instead of: var(--ds-color-neutral-8) */
      var(--ds-color-neutral-base-default);       /* instead of: var(--ds-color-neutral-9) */
      var(--ds-color-neutral-base-hover);         /* instead of: var(--ds-color-neutral-10) */
      var(--ds-color-neutral-base-active);        /* instead of: var(--ds-color-neutral-11) */
      var(--ds-color-neutral-text-subtle);        /* instead of: var(--ds-color-neutral-12) */
      var(--ds-color-neutral-text-default);       /* instead of: var(--ds-color-neutral-13) */
      var(--ds-color-neutral-contrast-default);   /* instead of: var(--ds-color-neutral-contrast-1) */
      var(--ds-color-neutral-contrast-subtle);    /* instead of: var(--ds-color-neutral-contrast-2) */

    ...and similarly for accent, brand1, brand2 and brand3.

  • 829ec13: Update global colors

  • 957d418: Changed warning colors to use global orange

  • 1a37354: Renamed color step contrast-2 to 15

  • f304115: CLI now supports creating themes with 1 or more "main" colors, a neutral color, and 1 or more "support" colors. The "main" and "support" colors can have arbitrary names. There can not be more than 4 colors of each category unless you're using Figma on the Enterprise plan, due to plan-based restrictions on the number of variable modes per collection.

  • 9d54191: Moved typography based sizing formula to design-tokens

  • 4ff02ff: Feat: New clean option for cleaning outDir before tokens create/build

  • 48bd80e: Fix crash when running CLI command tokens build:

    • add --verbose option to tokens build for easier debugging
    • tokens build crashed when run on result of tokens create

    Update tokens template used by CLI command tokens create

    • removes ingress, renames paragraph to body, and adds xl size
  • 9b6401b: Fix crash when running @digdir/designsystemet CLI due to differences in module resolution when used as a package

  • 6959e9d: chore: Replace eslint with biomejs

  • 019e723: fix: Export correct bin files

  • f32f1fb: feat: Convert to W3C design token format

  • 5f51c95: Implemented a more flexible system of semantic border-radius tokens.

  • 2a3c4d3: Removed design-tokens sizing & spacing, use size.

  • c3da81b: tokens build: fix invalid values in --ds-size calculations

  • 9d54191: Support for building typography based sizing design-tokens

  • f8eeb6c: outDir option was required, but it should have a default value

  • 957d418: Removed global yellow color.

  • 2f94b73: Changed -w, --write to -o, --out-dir on tokens create & tokens build for defining output dir

  • f8986b8: chore: change default tokens build output folder

  • 5fe5050: Make sure the internal order of sections in the CSS generated by the CLI is deterministic, to avoid unnecessary git diffs

@digdir/designsystemet-theme@0.100.52

26 Feb 12:57
22a544d
Compare
Choose a tag to compare
@digdir/designsystemet-theme@0.100.52

@digdir/designsystemet-theme@0.100.51

26 Feb 12:19
0860f99
Compare
Choose a tag to compare
  • 2d1da9a: Testing snapshot release

  • bbcd95e: tokens: Removed validationmessage and label typography styles

  • 0f7418e: Added token border-width-focus

  • 482f765: Renamed background, surface and contrast color tokens and CSS variables

  • a9f0528: refactor: single CSS file for theme

  • 957d418: Increased lightness of global orange color

  • 2cfd56e: docs: 📝 Fix some outdated information in readme

  • 0f7418e: Removed token border-width-highlight

  • 8277775: Body/Paragraph

    • Add body-xl token
    • Add xl paragraph
    • Remove ingress tokens
  • 188bd19: CLI: tokens build command now generates a colors.d.ts file which enables type safety for the data-color attribute when included in your tsconfig.json. The @digdir/designsystemet-theme package has been updated to include types for those themes.

  • 2a3c4d3: Removed CSS variables --ds-spacing-* & --ds-sizing-*, use --ds-size-*.

  • 58724b7: Changed focus color to use neutral instead of accent color

  • df037aa: Changed alias for type declaration exports

    • React: export alias ./react-types.d.ts was changed to ./react-types
    • Theme: added types field to default export in package.json, so now it should be posssible to use "@digdir/designsystemet-theme"
  • dc6ab52: Rename data-ds-typography to data-typography

  • 1a37354: Renamed color step contrast-1 to 16

  • 0f7418e: Reduced font-size scale by one, from 11 to 10. All sizes above and including font-size-2 have shifted down size by one

  • 1a37354: Added new step to color scale, now with a total of 16

  • 1767724: React components and css now support custom colors through the data-color attribute.

    BREAKING CHANGE: All React components that had a color prop have been changed to use data-color.

    All1 css targeting data-color has been changed to work with all custom colors generated by the CLI.

    Avatar, Badge, Button, and Link use --ds-color-accent-*2, unless data-color is set directly on the element.

    For components that had a color prop, but defaulted to something other than "accent", data-color must also be set directly on the element.

    All other components that defaulted to "accent", or previously only existed in "accent" color, now support data-color. They will also inherit their color from the closest data-color attribute. If none is found, they use --ds-color-accent-*2.

    1: ...except Alert, which only supports info, warning, danger and success colors.
    2: If an "accent" color is not defined in the theme, the --ds-color-accent-* variables will point to the first main-color.

  • 6998d4b: BREAKING CHANGE: The attribute / prop data-ds-color-mode has been renamed to data-color-scheme

  • f2b9922: chore: Reset data-color to degfault color when setting data-color-scheme

  • 83e083b: Increased the luminance of the Surface Tinted color in light mode and made Surface Tinted stand out more against Surface Default in dark mode.

  • 1a37354: Changed order for semantic color tokens in design-tokens

  • a452813: CSS variables: --ds-color-*-{1,2,...,13,contrast-1,contrast-2}, which were generated from the primitives layer of design tokens, have been removed since they are always 1-to-1 with the semantic layer. Use the equivalent variables from the semantic layer instead

    Example, for the neutral scale:

      var(--ds-color-neutral-background-default); /* instead of: var(--ds-color-neutral-1) */
      var(--ds-color-neutral-background-subtle);  /* instead of: var(--ds-color-neutral-2) */
      var(--ds-color-neutral-surface-default);    /* instead of: var(--ds-color-neutral-3) */
      var(--ds-color-neutral-surface-hover);      /* instead of: var(--ds-color-neutral-4) */
      var(--ds-color-neutral-surface-active);     /* instead of: var(--ds-color-neutral-5) */
      var(--ds-color-neutral-border-subtle);      /* instead of: var(--ds-color-neutral-6) */
      var(--ds-color-neutral-border-default);     /* instead of: var(--ds-color-neutral-7) */
      var(--ds-color-neutral-border-strong);      /* instead of: var(--ds-color-neutral-8) */
      var(--ds-color-neutral-base-default);       /* instead of: var(--ds-color-neutral-9) */
      var(--ds-color-neutral-base-hover);         /* instead of: var(--ds-color-neutral-10) */
      var(--ds-color-neutral-base-active);        /* instead of: var(--ds-color-neutral-11) */
      var(--ds-color-neutral-text-subtle);        /* instead of: var(--ds-color-neutral-12) */
      var(--ds-color-neutral-text-default);       /* instead of: var(--ds-color-neutral-13) */
      var(--ds-color-neutral-contrast-default);   /* instead of: var(--ds-color-neutral-contrast-1) */
      var(--ds-color-neutral-contrast-subtle);    /* instead of: var(--ds-color-neutral-contrast-2) */

    ...and similarly for accent, brand1, brand2 and brand3.

  • 829ec13: Update global colors

  • 171eba9: Tweaked color codes. Visually remains the same

  • 957d418: Changed warning colors to use global orange

  • 1a37354: Renamed color step contrast-2 to 15

  • 9d54191: Moved typography based sizing formula to design-tokens

  • 5f51c95: Implemented a more flexible system of semantic border-radius tokens.

  • 2a3c4d3: Removed design-tokens sizing & spacing, use size.

  • 957d418: Removed global yellow color.

@digdir/designsystemet-react@0.100.52

26 Feb 12:57
22a544d
Compare
Choose a tag to compare
@digdir/designsystemet-react@0.100.52