@rijkshuisstijl-community/design-tokens 1.1.0 → 2.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 +34 -0
  2. package/README.md +153 -12
  3. package/dist/_variables.scss +772 -743
  4. package/dist/index.css +772 -743
  5. package/dist/index.d.ts +545 -516
  6. package/dist/index.js +609 -580
  7. package/dist/index.json +608 -579
  8. package/dist/index.tokens.json +1664 -1613
  9. package/dist/root.css +772 -743
  10. package/dist/tokens.d.ts +1569 -1518
  11. package/dist/tokens.js +22875 -22078
  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 +442 -418
  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 +2049 -0
  18. package/dist/uitvoerend-groen/root.css +1340 -0
  19. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-groen}/tokens.d.ts +646 -628
  20. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-groen}/tokens.js +14276 -13624
  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 +2049 -0
  27. package/dist/uitvoerend-hemelblauw/root.css +1340 -0
  28. package/dist/uitvoerend-hemelblauw/tokens.d.ts +2072 -0
  29. package/dist/uitvoerend-hemelblauw/tokens.js +31258 -0
  30. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-mintgroen}/_variables.scss +533 -509
  31. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-mintgroen}/index.css +534 -510
  32. package/dist/uitvoerend-mintgroen/index.d.ts +1338 -0
  33. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-mintgroen}/index.js +507 -483
  34. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-mintgroen}/index.json +506 -482
  35. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-mintgroen}/index.tokens.json +734 -716
  36. package/dist/{uitvoerend-mintgroen-focus → uitvoerend-mintgroen}/root.css +533 -509
  37. package/dist/uitvoerend-mintgroen/tokens.d.ts +2072 -0
  38. package/dist/uitvoerend-mintgroen/tokens.js +31258 -0
  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 +2049 -0
  45. package/dist/uitvoerend-oranje/root.css +1340 -0
  46. package/dist/uitvoerend-oranje/tokens.d.ts +2072 -0
  47. package/dist/uitvoerend-oranje/tokens.js +31258 -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 +2049 -0
  54. package/dist/uitvoerend-paars/root.css +1340 -0
  55. package/dist/uitvoerend-paars/tokens.d.ts +2072 -0
  56. package/dist/uitvoerend-paars/tokens.js +31258 -0
  57. package/dist/uitvoerend-violet/_variables.scss +231 -202
  58. package/dist/uitvoerend-violet/index.css +231 -202
  59. package/dist/uitvoerend-violet/index.d.ts +102 -73
  60. package/dist/uitvoerend-violet/index.js +231 -202
  61. package/dist/uitvoerend-violet/index.json +230 -201
  62. package/dist/uitvoerend-violet/index.tokens.json +281 -230
  63. package/dist/uitvoerend-violet/root.css +231 -202
  64. package/dist/uitvoerend-violet/tokens.d.ts +151 -100
  65. package/dist/uitvoerend-violet/tokens.js +16369 -15572
  66. package/dist/uitvoerend-violet-oud/_variables.scss +231 -201
  67. package/dist/uitvoerend-violet-oud/index.css +231 -201
  68. package/dist/uitvoerend-violet-oud/index.d.ts +102 -72
  69. package/dist/uitvoerend-violet-oud/index.js +231 -201
  70. package/dist/uitvoerend-violet-oud/index.json +230 -200
  71. package/dist/uitvoerend-violet-oud/index.tokens.json +281 -229
  72. package/dist/uitvoerend-violet-oud/root.css +231 -201
  73. package/dist/uitvoerend-violet-oud/tokens.d.ts +151 -99
  74. package/dist/uitvoerend-violet-oud/tokens.js +12621 -11803
  75. package/dist/wetgevend/_variables.scss +171 -142
  76. package/dist/wetgevend/index.css +171 -142
  77. package/dist/wetgevend/index.d.ts +102 -73
  78. package/dist/wetgevend/index.js +171 -142
  79. package/dist/wetgevend/index.json +170 -141
  80. package/dist/wetgevend/index.tokens.json +221 -170
  81. package/dist/wetgevend/root.css +171 -142
  82. package/dist/wetgevend/tokens.d.ts +151 -100
  83. package/dist/wetgevend/tokens.js +12217 -11420
  84. package/figma/figma.tokens.json +2428 -556
  85. package/package.json +1 -1
  86. package/src/generated/base.tokens.json +4520 -4338
  87. package/src/generated/themes.json +28993 -3285
  88. package/src/generated/uitvoerend-groen/tokens.json +6252 -0
  89. package/src/generated/uitvoerend-hemelblauw/tokens.json +6252 -0
  90. package/src/generated/{uitvoerend-mintgroen-focus → uitvoerend-mintgroen}/tokens.json +2374 -2240
  91. package/src/generated/uitvoerend-oranje/tokens.json +6252 -0
  92. package/src/generated/uitvoerend-paars/tokens.json +6252 -0
  93. package/src/generated/uitvoerend-violet/tokens.json +640 -458
  94. package/src/generated/uitvoerend-violet-oud/tokens.json +643 -457
  95. package/src/generated/wetgevend/tokens.json +602 -420
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @rijkshuisstijl-community/design-tokens
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 158d711: Added 'Uitvoerend - Paars' Theme
8
+ Deprecated @rijkshuisstijl-community/mijnoverheid-design-tokens
9
+ Deprecated @rijkshuisstijl-community/logius-design-tokens
10
+ Deprecated @rijkshuisstijl-community/digid-design-tokens
11
+ Deprecated @rijkshuisstijl-community/rivm-design-tokens
12
+ These themes are now found in: @rijkshuisstijl-community/design-tokens
13
+ - 5209b0c: ### Nieuwe tokens
14
+
15
+ - `rhc.color.foreground.on-light-color` toegevoegd
16
+ - Rounded corner tokens toegevoegd
17
+ - Nieuwe tokenset `components/blockquote` toegevoegd
18
+
19
+ ### Hernoemingen en refactor
20
+
21
+ - `rhc.color.foregrond.onEmphisis` hernoemd naar `rhc.color.foreground.on-dark-color`. (oude naam blijft tijdelijk beschikbaar om bugs te voorkomen)
22
+ - `rhc.border-radius.keep` vervangen door de nieuwe rounded corner tokens
23
+ - Tokenset `common/keep` hernoemd naar `common/keep-oud`
24
+ - Tokenset `components/blockquote` verplaatst naar `components/blockquote-oud` (legacy totdat het component is geüpdatet)
25
+
26
+ ### Overige
27
+
28
+ - Stijl en design tokens voor het `blockquote` component geüpdatet
29
+
30
+ ## 1.2.0
31
+
32
+ ### Minor Changes
33
+
34
+ - 86c37f5: - Overwrites toegevoegd om thema’s te kunnen variëren. Toegevoegd is: responsiveness, extra primaire kleuren en de optie om niet af te wijken van de Rijkshuisstijl voorbeelden.
35
+ - Default button stijling aangepast.
36
+
3
37
  ## 1.1.0
4
38
 
5
39
  ### 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
+ ```