If you answer yes, we store and analyse information that helps us improve the website. You can change your choice at any time at the bottom of the page. More about what we store and why.

We also store necessary information that cannot be opted out of. This makes the website work and keeps it secure.

Skip to main content

What are you looking for?

Try searching for…

V2 is on its way – here is how to prepare

In v2, we extend the color system and build even more on web standards.

designsystemet.noNovember 18, 2026
Illustration of two people placing a large blue ball on top of a blue block.
Illustration of two people placing a large blue ball on top of a blue block.
Click the image or press Escape to close

When @digdir/designsystemet-web was released in February, designsystemet.no took an important step towards our vision: to offer small, robust building blocks based on web standards, that are easy for everyone to use and build on. V2 continues in the same direction. We extend the color system and remove old solutions in favour of web standards.

What's new in v2

New Figma plugin

For a long time we have relied on a third-party solution to import themes into Figma. Now we are making our own plugin, which simplifies the process and gives us full control over the import. This makes it easier for you to manage your theme in Figma.

New colors

It has long been a small challenge to make neutral colors harmonize with the base color of a color scale. Input, for example, takes colors from neutral when the field is read-only.

That is why every color scale gets three new colors: surface-muted, border-muted and text-muted. This makes it easier to get a neutral look that harmonizes with the color scale, without components having to take colors from another scale.

And much more

On top of this come many improvements to the theme builder and the CLI.

How to prepare your code

We know that breaking changes take time to handle, and a smooth transition matters to us. This is how you can get ready now:

  1. Upgrade to the latest 1.x version of all @digdir/designsystemet* packages.
  2. Look for warnings: TypeScript marks deprecated props and exports in your editor, the React and web packages log warnings in the console, and the CLI prints warnings in the terminal.
  3. Replace deprecated code: Everything in the lists below is already marked as @deprecated in v1, and the replacements already work. So you can switch now, without waiting for v2.
Changes for everyone
ComponentDon't useUse (works in v1 too)Note
ToggleGroupdata-toggle-group="LABEL"focusgroup="radiogroup" aria-label="LABEL"Also works without changes, but screen readers will not announce the name of the group
Spinner<svg class="ds-spinner"><progress class="ds-spinner">
and <button aria-busy="true">
CSS draws the spinner automatically
Individual CSS filesThe old names togglegroup.css and skiplink.cssThe new names toggle-group.css and skip-link.cssThe new file names have been available and recommended for a long time
SearchRemovedRead the blog post about why Search is being removed, and what to use instead
Changes for React only
ComponentDon't useUse (works in v1 too)Note
TypesThe old import @digdir/designsystemet-react/colorsThe new import @digdir/designsystemet-typesThe new import has been available and recommended for a long time
ToggleGroup.Itemdata-variant and iconDon't style based on data-variant, and put the icon directly in ToggleGroup.Item
RovingFocusRovingFocusRoot and RovingFocusItemfocusgroup
UtilitiesuseDebounceCallback, useSynchronizedAnimation, useIsomorphicLayoutEffect, useMediaQuery, omit, MergeRightCopy the code into your project if you need it. Select a function to see its code.

useDebounceCallback

useSynchronizedAnimation

useIsomorphicLayoutEffect

useMediaQuery

omit

MergeRight

Changes in the CLI
  • Use a config file instead of the options --main-colors, --support-colors, --neutral-color, --font-family, --border-radius and --theme.
  • Import types from @digdir/designsystemet-types instead of @digdir/designsystemet/types.

What about Suggestion?

Suggestion has been marked as experimental for a long time. It is the most complex component in designsystemet.no, and the many ways you use it have given us a lot of good feedback on what it should support, and what it can solve better. We are now working on improving the component before we make it stable.

Questions?

Reach out to us on Slack or open an issue on GitHub (github.com) if you get stuck or think we have missed something.

Designsystemet logo

Contributors

  • Michael Marszalek
  • Eirik Backer
  • Tobias Barsnes

Want to write for the blog?

Do you have something you want to share with others in the community? Contact us on Slack or by email