Skip to content

Conversation

@mimarz
Copy link
Collaborator

@mimarz mimarz commented Jan 7, 2026

resolves #4295

This PR prepares for deprecation of @digdir/designsystemet-theme and cleans up how tokens and themes are maintained.

  • Removed all references and use of @digdir/designsystemet-theme internally.
  • Moved designsystemet theme config to root and added approprate scripts.
  • Moved all tokens and resources related to Digdir themes to internal/digdir (@internal/digdir)
  • Cleaned up redundant scripts from cli related to Digdir tokens
  • Removed use of Digdir theme in Storybook, now uses Designsystemet theme.
  • Cleaned up use of color constants in react stories
  • Added deprecation for @digdir/designsystemet-theme
  • updated preview tokens

Will do a follow up PR with moving internal/design-tokens to internal/digdir/design-tokens as these are tokens for Digdir themes. Need to update some scripts for this also so best to do it in a separate PR.

@changeset-bot
Copy link

changeset-bot bot commented Jan 7, 2026

🦋 Changeset detected

Latest commit: f77a8d8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@digdir/designsystemet-theme Minor
@digdir/designsystemet Minor
@digdir/designsystemet-css Minor
@digdir/designsystemet-types Minor
@digdir/designsystemet-react Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

Preview deployments for this pull request:

storybook - 8. Jan 2026 - 11:47

themebuilder - 8. Jan 2026 - 11:48

www - 8. Jan 2026 - 11:53

@mimarz mimarz marked this pull request as ready for review January 7, 2026 13:12
@mimarz mimarz force-pushed the move-default-theme-setup branch from 84091a1 to 08c36fe Compare January 7, 2026 13:13
Copy link
Member

@Barsnes Barsnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick review to begin with, so we can discuss the placement of the root config file.
You might also need to update the version-packages packages command so it works in the release PR

"@digdir/designsystemet-theme": patch
---

Deprecated: Use `@digdir/designsystemet-css/theme` for default theme or make your own using the [Theme builder](https://theme.designsystemet.no/)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Deprecated: Use `@digdir/designsystemet-css/theme` for default theme or make your own using the [Theme builder](https://theme.designsystemet.no/)
**DEPRECRATION: This is the last release for this package**
- Use `@digdir/designsystemet-css/theme` for default theme or make your own using the [Theme builder](https://theme.designsystemet.no/)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest using deprecated as its the term widely used and on npmjs. Depreciation is when something loses value over time. Will update with bold statement

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, but I did not write "depriciation"? I wrote "deprecation"
You updated message looks fine though

@mimarz mimarz requested a review from Barsnes January 7, 2026 14:52
@Barsnes
Copy link
Member

Barsnes commented Jan 8, 2026

I think we should also add a blogpost about this

Copy link
Member

@Barsnes Barsnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good.
Lets get a review from @oddvernes as well, since this is quite a big change

mimarz and others added 3 commits January 8, 2026 10:07
Co-authored-by: Tobias Barsnes <tobias.barsnes@digdir.no>
@mimarz mimarz force-pushed the move-default-theme-setup branch from 45e1d95 to b2f1c51 Compare January 8, 2026 09:08
Copy link
Collaborator

@oddvernes oddvernes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approved the chromatic changes 👍
I don't see any issues whith this, well done! 👍

@mimarz mimarz requested a review from oddvernes January 8, 2026 10:55
@mimarz mimarz merged commit a8d3824 into main Jan 8, 2026
26 checks passed
@mimarz mimarz deleted the move-default-theme-setup branch January 8, 2026 11:12
@github-actions github-actions bot mentioned this pull request Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate the theme package

4 participants