@rijkshuisstijl-community/design-tokens 1.2.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/README.md +153 -12
  3. package/dist/_variables.scss +155 -100
  4. package/dist/index.css +155 -100
  5. package/dist/index.d.ts +98 -43
  6. package/dist/index.js +155 -100
  7. package/dist/index.json +154 -99
  8. package/dist/index.tokens.json +214 -125
  9. package/dist/root.css +155 -100
  10. package/dist/tokens.d.ts +157 -68
  11. package/dist/tokens.js +7489 -6212
  12. package/dist/uitvoerend-groen/_variables.scss +1337 -0
  13. package/dist/uitvoerend-groen/index.css +1340 -0
  14. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-groen}/index.d.ts +468 -457
  15. package/dist/uitvoerend-groen/index.js +1338 -0
  16. package/dist/uitvoerend-groen/index.json +1335 -0
  17. package/dist/uitvoerend-groen/index.tokens.json +2045 -0
  18. package/dist/uitvoerend-groen/root.css +1340 -0
  19. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-groen}/tokens.d.ts +723 -732
  20. package/dist/uitvoerend-groen/tokens.js +31224 -0
  21. package/dist/uitvoerend-hemelblauw/_variables.scss +1337 -0
  22. package/dist/uitvoerend-hemelblauw/index.css +1340 -0
  23. package/dist/uitvoerend-hemelblauw/index.d.ts +1338 -0
  24. package/dist/uitvoerend-hemelblauw/index.js +1338 -0
  25. package/dist/uitvoerend-hemelblauw/index.json +1335 -0
  26. package/dist/uitvoerend-hemelblauw/index.tokens.json +2045 -0
  27. package/dist/uitvoerend-hemelblauw/root.css +1340 -0
  28. package/dist/uitvoerend-hemelblauw/tokens.d.ts +2068 -0
  29. package/dist/uitvoerend-hemelblauw/tokens.js +31224 -0
  30. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-mintgroen}/_variables.scss +589 -578
  31. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-mintgroen}/index.css +590 -579
  32. package/dist/uitvoerend-mintgroen/index.d.ts +1338 -0
  33. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-mintgroen}/index.js +533 -522
  34. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-mintgroen}/index.json +532 -521
  35. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-mintgroen}/index.tokens.json +773 -782
  36. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-mintgroen}/root.css +589 -578
  37. package/dist/uitvoerend-mintgroen/tokens.d.ts +2068 -0
  38. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-mintgroen}/tokens.js +18125 -17940
  39. package/dist/uitvoerend-oranje/_variables.scss +1337 -0
  40. package/dist/uitvoerend-oranje/index.css +1340 -0
  41. package/dist/uitvoerend-oranje/index.d.ts +1338 -0
  42. package/dist/uitvoerend-oranje/index.js +1338 -0
  43. package/dist/uitvoerend-oranje/index.json +1335 -0
  44. package/dist/uitvoerend-oranje/index.tokens.json +2045 -0
  45. package/dist/uitvoerend-oranje/root.css +1340 -0
  46. package/dist/uitvoerend-oranje/tokens.d.ts +2068 -0
  47. package/dist/uitvoerend-oranje/tokens.js +31224 -0
  48. package/dist/uitvoerend-paars/_variables.scss +1337 -0
  49. package/dist/uitvoerend-paars/index.css +1340 -0
  50. package/dist/uitvoerend-paars/index.d.ts +1338 -0
  51. package/dist/uitvoerend-paars/index.js +1338 -0
  52. package/dist/uitvoerend-paars/index.json +1335 -0
  53. package/dist/uitvoerend-paars/index.tokens.json +2045 -0
  54. package/dist/uitvoerend-paars/root.css +1340 -0
  55. package/dist/uitvoerend-paars/tokens.d.ts +2068 -0
  56. package/dist/uitvoerend-paars/tokens.js +31224 -0
  57. package/dist/uitvoerend-violet/_variables.scss +680 -664
  58. package/dist/uitvoerend-violet/index.css +680 -664
  59. package/dist/uitvoerend-violet/index.d.ts +771 -755
  60. package/dist/uitvoerend-violet/index.js +803 -787
  61. package/dist/uitvoerend-violet/index.json +802 -786
  62. package/dist/uitvoerend-violet/index.tokens.json +1644 -1620
  63. package/dist/uitvoerend-violet/root.css +680 -664
  64. package/dist/uitvoerend-violet/tokens.d.ts +1539 -1515
  65. package/dist/uitvoerend-violet/tokens.js +21711 -21381
  66. package/dist/uitvoerend-violet-oud/_variables.scss +687 -670
  67. package/dist/uitvoerend-violet-oud/index.css +687 -670
  68. package/dist/uitvoerend-violet-oud/index.d.ts +771 -754
  69. package/dist/uitvoerend-violet-oud/index.js +803 -786
  70. package/dist/uitvoerend-violet-oud/index.json +802 -785
  71. package/dist/uitvoerend-violet-oud/index.tokens.json +1678 -1653
  72. package/dist/uitvoerend-violet-oud/root.css +687 -670
  73. package/dist/uitvoerend-violet-oud/tokens.d.ts +1536 -1511
  74. package/dist/uitvoerend-violet-oud/tokens.js +21594 -21243
  75. package/dist/wetgevend/_variables.scss +636 -620
  76. package/dist/wetgevend/index.css +636 -620
  77. package/dist/wetgevend/index.d.ts +771 -755
  78. package/dist/wetgevend/index.js +791 -775
  79. package/dist/wetgevend/index.json +790 -774
  80. package/dist/wetgevend/index.tokens.json +1643 -1619
  81. package/dist/wetgevend/root.css +636 -620
  82. package/dist/wetgevend/tokens.d.ts +1553 -1529
  83. package/dist/wetgevend/tokens.js +21924 -21594
  84. package/figma/figma.tokens.json +1575 -666
  85. package/package.json +1 -1
  86. package/src/generated/base.tokens.json +528 -273
  87. package/src/generated/themes.json +40651 -15395
  88. package/src/generated/uitvoerend-groen/tokens.json +6248 -0
  89. package/src/generated/uitvoerend-hemelblauw/tokens.json +6248 -0
  90. package/src/generated/{uitvoerend-mintgroen-focus → uitvoerend-mintgroen}/tokens.json +2598 -2573
  91. package/src/generated/uitvoerend-oranje/tokens.json +6248 -0
  92. package/src/generated/uitvoerend-paars/tokens.json +6248 -0
  93. package/src/generated/uitvoerend-violet/tokens.json +4538 -4465
  94. package/src/generated/uitvoerend-violet-oud/tokens.json +4525 -4448
  95. package/src/generated/wetgevend/tokens.json +4547 -4474
package/CHANGELOG.md CHANGED
@@ -1,5 +1,69 @@
1
1
  # @rijkshuisstijl-community/design-tokens
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 04beca8: Breaking changes: toevoeging en aanpassing van font-weight tokens op de common laag.
8
+
9
+ - De paragraph font tokens op de common-laag zijn hernoemd naar `body`, zodat ze breder toepasbaar zijn.
10
+ - De token `rhc.paragraph.small` is verwijderd.
11
+ - Verwijzingen naar `rhc.paragraph.small` zijn vervangen door `rhc.body.default`, wat betekent dat de `font-size` van componenten als `counterbadge`, `navigation-list` en `message-list` is gewijzigd van 18px naar 20px.
12
+ - `rhc.font-family.primary` value is aangepast, het font RijksoverheidSansWeb is eruit gehaald omdat dit een closed-source font is en wij Fira Sans gebruiken ter illustratie.
13
+ - `rhc.alert.color` value aangepast van `rhc.foreground.default` naar `rhc.foreground.on-light-color`
14
+
15
+ #### Wat betekent dit voor jou?
16
+
17
+ Gebruik je `rhc.paragraph.small` of een van de hernoemde paragraph-tokens direct in je code? Dan moet je deze vervangen door de nieuwe `rhc.body.*` tokens.
18
+
19
+ Gebruik je alleen de componenten uit de component library, zonder custom tokens toe te passen? Dan hoef je niets aan te passen, maar let op: de `font-size` van sommige onderdelen is iets groter geworden.
20
+
21
+ ### Minor Changes
22
+
23
+ - 14334a4: Tokenset `components/summary-list` hernoemd naar `component/data-summary`.
24
+ - 76ebb9f: - Heading kleur aangepast van primary naar lintblauw.
25
+ - Nieuwe overwrites toegevoegd voor footer- en navbar-stijlen, met de volgende opties:
26
+ - Full color met lintblauwe achtergrond
27
+ - Full color met primary achtergrond
28
+ - Witte achtergrond met border in primary kleur
29
+ - Witte achtergrond met border in lintblauwe kleur
30
+ - 04beca8: - Toegevoegd: `rhc.font-weight.default` en `rhc.font-weight.strong` op de common-laag, zodat deelidentiteiten eenvoudiger hun font-weight kunnen instellen.
31
+ - Toegevoegd: tokenset met overwrites voor `rhc.font-family.primary` en `rhc.font-weight.semibold` om eenvoudig te kunnen wisselen van Fira Sans naar Rijks Sans.
32
+ - Aangepast: `rhc.font-weight.semibold` gewijzigd van 550 naar 600, zodat deze correct werkt met Fira Sans in Figma.
33
+ - Aangepast: paragraph-font-tokens op de common-laag hernoemd naar `body`, zodat ze breder toepasbaar zijn in componenten en content.
34
+ - c7034fd: Add "border-block-end-style" token to "data-summary" component.
35
+
36
+ ### Patch Changes
37
+
38
+ - 724897b: Voeg tokenset toe voor `cursor` op de Button component.
39
+
40
+ ## 2.0.0
41
+
42
+ ### Major Changes
43
+
44
+ - 158d711: Added 'Uitvoerend - Paars' Theme
45
+ Deprecated @rijkshuisstijl-community/mijnoverheid-design-tokens
46
+ Deprecated @rijkshuisstijl-community/logius-design-tokens
47
+ Deprecated @rijkshuisstijl-community/digid-design-tokens
48
+ Deprecated @rijkshuisstijl-community/rivm-design-tokens
49
+ These themes are now found in: @rijkshuisstijl-community/design-tokens
50
+ - 5209b0c: ### Nieuwe tokens
51
+
52
+ - `rhc.color.foreground.on-light-color` toegevoegd
53
+ - Rounded corner tokens toegevoegd
54
+ - Nieuwe tokenset `components/blockquote` toegevoegd
55
+
56
+ ### Hernoemingen en refactor
57
+
58
+ - `rhc.color.foregrond.onEmphisis` hernoemd naar `rhc.color.foreground.on-dark-color`. (oude naam blijft tijdelijk beschikbaar om bugs te voorkomen)
59
+ - `rhc.border-radius.keep` vervangen door de nieuwe rounded corner tokens
60
+ - Tokenset `common/keep` hernoemd naar `common/keep-oud`
61
+ - Tokenset `components/blockquote` verplaatst naar `components/blockquote-oud` (legacy totdat het component is geüpdatet)
62
+
63
+ ### Overige
64
+
65
+ - Stijl en design tokens voor het `blockquote` component geüpdatet
66
+
3
67
  ## 1.2.0
4
68
 
5
69
  ### Minor Changes
package/README.md CHANGED
@@ -2,26 +2,167 @@
2
2
 
3
3
  # Rijkshuisstijl design tokens
4
4
 
5
- _This project is **not** endorsed by the Dutch Ministry of General Affairs._
5
+ _Dit project wordt **niet** gesteund door het Ministerie van Algemene Zaken._
6
6
 
7
- **Applying design elements from this project is strictly prohibited for organisations that are not part of the central Government of The Netherlands.**
7
+ **Het toepassen van design-elementen uit dit project is strikt verboden voor organisaties die geen deel uitmaken van de
8
+ centrale overheid van Nederland.**
8
9
 
9
- This project is part of a community iniative to use [NL Design System](https://nldesignsystem.nl) components for projects that need to adhere to Rijkshuisstijl. Organisations from the central Government of the Netherlands (for example: [Belastingdienst](https://www.belastingdienst.nl/), [DUO](https://www.duo.nl), [Logius](http://logius.nl), [SVB](https://www.svb.nl/)), as well as those who are contracted by them to develop websites and apps, are able to collaborate via this project.
10
+ Dit project maakt deel uit van een samenwerkingsverband om [NL Design System](https://nldesignsystem.nl)-componenten te gebruiken voor projecten die moeten voldoen aan de Rijkshuisstijl. Organisaties van de centrale overheid van
11
+ Nederland (bijvoorbeeld: [Belastingdienst](https://www.belastingdienst.nl/), [DUO](https://www.duo.nl), [Logius](http://logius.nl), [SVB](https://www.svb.nl/))
12
+ en degenen die door hen zijn ingehuurd voor het ontwikkelen van websites en apps, kunnen via dit project samenwerken.
10
13
 
11
- ## License
14
+ # Tokens gebruiken in eigen project
12
15
 
13
- This project contains both proprietary and free and open-source software licensed under the [European Union Public License (EUPL) v1.2](LICENSE.md).
16
+ Hieronder vind je instructies hoe je de standaard Rijkshuisstijl-community tokens in je project kan toepassen.
14
17
 
15
- For information about proprietary assets in this repository, please carefully read the [NOTICE file](NOTICE.md).
18
+ 1. Installeer je het [design-tokens npm package](https://www.npmjs.com/package/@rijkshuisstijl-community/design-tokens).
16
19
 
17
- ### Logo and style guide
20
+ ```bash
21
+ npm install --save-dev @rijkshuisstijl-community/design-tokens
18
22
 
19
- Copyright applies to the Rijkshuisstijl logo and Rijkhuisstijl brand identity. Use of logo and brand identity is strictly prohibited for any other use than developing websites and apps for the central Government of The Netherlands.
23
+ # En als je CSS classes wilt importeren
24
+ npm install --save-dev @rijkshuisstijl-community/components-css
25
+ ```
20
26
 
21
- ### Fonts
27
+ Dit pakket bevat de CSS-variabelen van het design systeem. Importeer het `index.css`-bestand uit de `dist` map van het pakket, en omring het deel van je applicatie waar je het thema wilt toepassen. Het Rijkshuisstijl-thema is bijvoorbeeld: `rhc-theme`.
22
28
 
23
- [Fonts used for the Rijkshuisstijl](https://www.rijkshuisstijl.nl/basiselementen/basiselementen-online/webfonts) are [designed specifcally for the central Government of The Netherlands](https://www.rijkshuisstijl.nl/basiselementen/documenten/verzamelingen-afbeeldingen/2014/06/01/achtergrondartikel-rijkshuisstijl-webfonts) and are not open source. Before applying the web fonts to your project, ensure you have permission from the Rijkshuisstijl. Until you have permission, use fallback fonts instead, such as the system fonts Arial, Verdana or Times New Roman.
29
+ 2. Pas het thema toe in je project, hieronder een voorbeeld in HTML
24
30
 
25
- ## Permission
31
+ ```html
32
+ <!-- Als je het default Rijkshuisstijl community thema wilt gebruiken, gebruik .rhc-theme -->
33
+ <link rel="stylesheet" href="node_modules/@rijkshuisstijl-community/design-tokens/dist/index.css" />
34
+ <!-- Of als je een eigen thema wilt importeren, gebruik het thema naam als class name -->
35
+ <link rel="stylesheet" href="@rijkshuisstijl-community/design-tokens/dist/<thema naam>/index.css" />
36
+ <!-- Mogelijk wil je ook de CSS classes importeren als je Rijkshuijsstijl-community componenten gebruikt -->
37
+ <link rel="stylesheet" href="node_modules/@rijkshuisstijl-community/components-css/dist/index.css" />
26
38
 
27
- When you are developing a website for the central Government of the Netherlands, you request permission by [contacting the Ministry of General Affairs](https://www.rijkshuisstijl.nl/contact).
39
+ <body class="rhc-theme">
40
+ <button class="rhc-button">Click Here!</button>
41
+ </div>
42
+ </body>
43
+ ```
44
+
45
+ # Nieuw thema toevoegen
46
+
47
+ Er zijn al verschillende bedrijfsthema's in de @rijkshuisstijl-community/design-tokens package waarvoor (gedeeltelijke) support is vanuit de Rijkshuisstijl-community. Hieronder volgt een uitleg hoe nog meer thema's kunnen worden toegevoegd
48
+
49
+ ## Nieuwe thema tokens
50
+
51
+ 1. Voeg de nieuwe tokens toe aan het [design tokens bestand](https://github.com/nl-design-system/rijkshuisstijl-community/blob/main/proprietary/design-tokens/figma/figma.tokens.json). Mogelijk is het voor designers handiger om dit direct in Figma te doen. Zie hieronder in hoe je een thema direct in JSON toe kan voegen:
52
+
53
+ ```json
54
+ {
55
+ // ...
56
+
57
+ // Definieer specifieke set tokens die je wilt overschrijven met een duidelijke naam. Voeg indien nodig meerdere overwrites sets toe.
58
+ "overwrites/primaire kleur/mintgroen": {
59
+ // Geef aan welke tokens overschreven moeten worden
60
+ "rhc": {
61
+ "color": {
62
+ "primary": {
63
+ "50": {
64
+ "value": "{rhc.color.mintgroen.50}",
65
+ "type": "color"
66
+ },
67
+ "100": {
68
+ "value": "{rhc.color.mintgroen.100}",
69
+ "type": "color"
70
+ },
71
+ "200": {
72
+ "value": "{rhc.color.mintgroen.200}",
73
+ "type": "color"
74
+ },
75
+ "300": {
76
+ "value": "{rhc.color.mintgroen.300}",
77
+ "type": "color"
78
+ },
79
+ "400": {
80
+ "value": "{rhc.color.mintgroen.400}",
81
+ "type": "color"
82
+ },
83
+ "500": {
84
+ "value": "{rhc.color.mintgroen.500}",
85
+ "type": "color"
86
+ },
87
+ "hover": {
88
+ "value": "{rhc.color.primary.500}",
89
+ "type": "color",
90
+ "$extensions": {
91
+ "studio.tokens": {
92
+ "modify": {
93
+ "type": "darken",
94
+ "value": "0.3",
95
+ "space": "lch"
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
103
+ },
104
+ // Nog een overwrite
105
+ "overwrites/border/geen border radius": {
106
+ "rhc": {
107
+ "border-radius": {
108
+ "sm": {
109
+ "value": "0",
110
+ "type": "borderRadius"
111
+ },
112
+ "md": {
113
+ "value": "0",
114
+ "type": "borderRadius"
115
+ },
116
+ "lg": {
117
+ "value": "0",
118
+ "type": "borderRadius"
119
+ }
120
+ }
121
+ }
122
+ },
123
+ // ...
124
+
125
+ "$themes": [
126
+ // ...
127
+ {
128
+ "id": "<thema ID>", // Wordt niet gebruikt door een build step, maar wel voor Figma
129
+ "name": "<thema naam>", // Dit wordt ook de class name voor het thema
130
+ "$figmaStyleReferences": {},
131
+ "selectedTokenSets": {
132
+ // Voeg eerst de sets toe die dit thema support
133
+ "<token set 1>": "enabled",
134
+ "<token set 2>": "enabled",
135
+ "<etcetera...>": "enabled",
136
+ // Voeg daarna de overwrites toe die je wilt toevoegen aan je thema
137
+ "overwrites/primaire kleur/mintgroen": "enabled",
138
+ "overwrites/border/geen border radius": "enabled"
139
+ }
140
+ }
141
+ ]
142
+ }
143
+ ```
144
+
145
+ 2. Voeg het nieuwe thema toe in de [storybook preview.tsx](https://github.com/nl-design-system/rijkshuisstijl-community/blob/main/packages/storybook/config/preview.tsx)
146
+
147
+ ```tsx
148
+ // ...
149
+ // Voeg import toe
150
+ import '@rijkshuisstijl-community/design-tokens/dist/<thema naam>/index.css';
151
+ // ...
152
+
153
+ const preview: Preview = {
154
+ decorators: [
155
+ withThemeByClassName({
156
+ themes: {
157
+ // Voeg thema toe in storybook thema dropdown
158
+ '<Thema naam in dropdown>': '<thema naam>',
159
+ // ...
160
+ },
161
+ // ...
162
+ }),
163
+ // ...
164
+ ],
165
+ // ...
166
+ };
167
+ export default preview;
168
+ ```