@dictu/design-tokens 1.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dictu/design-tokens",
3
- "version": "1.5.0",
3
+ "version": "2.0.0",
4
4
  "author": "Dienst ICT Uitvoering",
5
5
  "description": "Design Tokens for DICTU Design system, based on the NL Design System architecture",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -23,11 +23,14 @@
23
23
  "watch:style-dictionary": "chokidar --follow-symlinks --initial --command 'npm run build' 'src/**/*.tokens.json'"
24
24
  },
25
25
  "devDependencies": {
26
- "@tokens-studio/sd-transforms": "1.2.3",
26
+ "@tokens-studio/sd-transforms": "2.0.1",
27
27
  "chokidar-cli": "3.0.0",
28
28
  "glob": "^11.0.2",
29
29
  "npm-run-all": "4.1.5",
30
30
  "rimraf": "6.0.1",
31
- "style-dictionary": "^4.4.0"
31
+ "style-dictionary": "^5.1.1"
32
+ },
33
+ "overrides": {
34
+ "expr-eval-fork": "3.0.0"
32
35
  }
33
36
  }
@@ -14,13 +14,16 @@
14
14
  "components/icon.tokens",
15
15
  "components/link-list.tokens",
16
16
  "components/link.tokens",
17
+ "components/list.tokens",
17
18
  "components/logo.tokens",
18
19
  "components/navigation-bar.tokens",
19
20
  "components/page-footer.tokens",
20
21
  "components/page-header.tokens",
21
22
  "components/paragraph.tokens",
23
+ "components/searchbar.tokens.wip",
22
24
  "components/section.tokens",
23
25
  "components/skip-link.tokens",
26
+ "components/table.tokens",
24
27
  "components/timeline.tokens"
25
28
  ]
26
29
  }
package/src/$themes.json CHANGED
@@ -25,7 +25,8 @@
25
25
  "components/hero.tokens": "enabled",
26
26
  "components/grid.tokens": "enabled",
27
27
  "components/card.tokens": "enabled",
28
- "components/timeline.tokens": "enabled"
28
+ "components/timeline.tokens": "enabled",
29
+ "components/table.tokens": "enabled"
29
30
  },
30
31
  "$figmaVariableReferences": {},
31
32
  "group": "GovNL"
@@ -7,7 +7,7 @@
7
7
  }
8
8
  },
9
9
  "brand": {
10
- "primary": {
10
+ "primary-1": {
11
11
  "50": {
12
12
  "$type": "color",
13
13
  "$value": "{govnl.color.lintblauw.50}"
@@ -31,32 +31,32 @@
31
31
  "500": {
32
32
  "$type": "color",
33
33
  "$value": "{govnl.color.lintblauw.500}"
34
+ }
35
+ },
36
+ "primary-2": {
37
+ "50": {
38
+ "$type": "color",
39
+ "$value": "{govnl.color.groen.50}"
34
40
  },
35
- "active": {
36
- "$extensions": {
37
- "studio.tokens": {
38
- "modify": {
39
- "type": "darken",
40
- "value": "0.4",
41
- "space": "srgb"
42
- }
43
- }
44
- },
41
+ "100": {
45
42
  "$type": "color",
46
- "$value": "{govnl.color.lintblauw.500}"
43
+ "$value": "{govnl.color.groen.100}"
47
44
  },
48
- "hover": {
49
- "$extensions": {
50
- "studio.tokens": {
51
- "modify": {
52
- "type": "darken",
53
- "value": "0.2",
54
- "space": "srgb"
55
- }
56
- }
57
- },
45
+ "200": {
58
46
  "$type": "color",
59
- "$value": "{govnl.color.lintblauw.500}"
47
+ "$value": "{govnl.color.groen.200}"
48
+ },
49
+ "300": {
50
+ "$type": "color",
51
+ "$value": "{govnl.color.groen.300}"
52
+ },
53
+ "400": {
54
+ "$type": "color",
55
+ "$value": "{govnl.color.groen.400}"
56
+ },
57
+ "500": {
58
+ "$type": "color",
59
+ "$value": "{govnl.color.groen.500}"
60
60
  }
61
61
  },
62
62
  "accent-1": {
@@ -70,6 +70,12 @@
70
70
  "$type": "color",
71
71
  "$value": "{govnl.color.oranje.500}"
72
72
  }
73
+ },
74
+ "accent-3": {
75
+ "color": {
76
+ "$type": "color",
77
+ "$value": "{govnl.color.robijnrood.500}"
78
+ }
73
79
  }
74
80
  },
75
81
  "document": {
@@ -141,7 +147,7 @@
141
147
  "heading": {
142
148
  "color": {
143
149
  "$type": "color",
144
- "$value": "{govnl.color.lintblauw.500}"
150
+ "$value": "{govnl.brand.primary-1.500}"
145
151
  },
146
152
  "font-family": {
147
153
  "$type": "fontFamilies",
@@ -323,7 +329,7 @@
323
329
  "interaction": {
324
330
  "color": {
325
331
  "$type": "color",
326
- "$value": "{govnl.brand.primary.500}"
332
+ "$value": "{govnl.color.lintblauw.500}"
327
333
  },
328
334
  "active": {
329
335
  "color": {
@@ -337,7 +343,7 @@
337
343
  }
338
344
  },
339
345
  "$type": "color",
340
- "$value": "{govnl.brand.primary.500}"
346
+ "$value": "{govnl.brand.primary-1.500}"
341
347
  }
342
348
  },
343
349
  "hover": {
@@ -352,7 +358,7 @@
352
358
  }
353
359
  },
354
360
  "$type": "color",
355
- "$value": "{govnl.brand.primary.500}"
361
+ "$value": "{govnl.brand.primary-1.500}"
356
362
  }
357
363
  }
358
364
  },
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "padding-inline-start": {
34
34
  "$type": "dimension",
35
- "$value": "0px {govnl.space.xs}"
35
+ "$value": "{govnl.space.xs}"
36
36
  },
37
37
  "color": {
38
38
  "$type": "color",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "text-decoration": {
47
47
  "$type": "textDecoration",
48
- "$value": "None"
48
+ "$value": "underline"
49
49
  }
50
50
  },
51
51
  "focus-visible": {
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "text-decoration": {
61
61
  "$type": "textDecoration",
62
- "$value": "None"
62
+ "$value": "underline"
63
63
  }
64
64
  },
65
65
  "hover": {
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "text-decoration": {
71
71
  "$type": "textDecoration",
72
- "$value": "None"
72
+ "$value": "underline"
73
73
  }
74
74
  },
75
75
  "current": {
@@ -83,6 +83,28 @@
83
83
  "$value": "underline"
84
84
  }
85
85
  },
86
+ "current": {
87
+ "padding-block-end": {
88
+ "$type": "dimension",
89
+ "$value": "{govnl.space.xs}"
90
+ },
91
+ "padding-block-start": {
92
+ "$type": "dimension",
93
+ "$value": "{govnl.space.xs}"
94
+ },
95
+ "padding-inline-end": {
96
+ "$type": "dimension",
97
+ "$value": "{govnl.space.xs}"
98
+ },
99
+ "padding-inline-start": {
100
+ "$type": "dimension",
101
+ "$value": "{govnl.space.xs}"
102
+ },
103
+ "text-decoration": {
104
+ "$type": "textDecoration",
105
+ "$value": "none"
106
+ }
107
+ },
86
108
  "separator": {
87
109
  "color": {
88
110
  "$type": "color",
@@ -93,6 +115,26 @@
93
115
  "$value": "{govnl.dimension.size.300}"
94
116
  }
95
117
  }
118
+ },
119
+ "link": {
120
+ "active": {
121
+ "text-decoration-thickness": {
122
+ "$type": "other",
123
+ "$value": "max(3px, .1875rem, .12em)"
124
+ }
125
+ },
126
+ "hover": {
127
+ "text-decoration-thickness": {
128
+ "$type": "other",
129
+ "$value": "max(3px, .1875rem, .12em)"
130
+ }
131
+ },
132
+ "focus-visible": {
133
+ "text-decoration-thickness": {
134
+ "$type": "other",
135
+ "$value": "max(3px, .1875rem, .12em)"
136
+ }
137
+ }
96
138
  }
97
139
  }
98
140
  }
@@ -122,7 +122,7 @@
122
122
  "accent": {
123
123
  "background-color": {
124
124
  "$type": "color",
125
- "$value": "{govnl.brand.primary.500}"
125
+ "$value": "{govnl.brand.primary-1.500}"
126
126
  },
127
127
  "border-color": {
128
128
  "$type": "color",
@@ -144,7 +144,7 @@
144
144
  }
145
145
  },
146
146
  "$type": "color",
147
- "$value": "{govnl.brand.primary.500}"
147
+ "$value": "{govnl.brand.primary-1.500}"
148
148
  },
149
149
  "border-color": {
150
150
  "$type": "color",
@@ -167,7 +167,7 @@
167
167
  }
168
168
  },
169
169
  "$type": "color",
170
- "$value": "{govnl.brand.primary.500}"
170
+ "$value": "{govnl.brand.primary-1.500}"
171
171
  },
172
172
  "border-color": {
173
173
  "$type": "color",
@@ -195,7 +195,7 @@
195
195
  "heading": {
196
196
  "color": {
197
197
  "$type": "color",
198
- "$value": "{govnl.document.inverse.color}"
198
+ "$value": "{govnl.color.white}"
199
199
  },
200
200
  "hover": {
201
201
  "color": {
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "background-color": {
26
26
  "$type": "color",
27
- "$value": "{govnl.brand.primary.500}"
27
+ "$value": "{govnl.brand.primary-1.500}"
28
28
  },
29
29
  "color": {
30
30
  "$type": "color",
@@ -0,0 +1,32 @@
1
+ {
2
+ "govnl": {
3
+ "list": {
4
+ "list-item": {
5
+ "gap": {
6
+ "$type": "dimension",
7
+ "$value": "{govnl.dimension.size.50}"
8
+ },
9
+ "level2": {
10
+ "indent": {
11
+ "$type": "spacing",
12
+ "$value": "{govnl.dimension.size.300}"
13
+ }
14
+ },
15
+ "level3": {
16
+ "indent": {
17
+ "$type": "spacing",
18
+ "$value": "{govnl.dimension.size.600}"
19
+ }
20
+ }
21
+ },
22
+ "gap": {
23
+ "$type": "dimension",
24
+ "$value": "{govnl.dimension.size.100}"
25
+ },
26
+ "prefix": {
27
+ "$type": "sizing",
28
+ "$value": "{govnl.dimension.size.300}"
29
+ }
30
+ }
31
+ }
32
+ }
@@ -28,12 +28,12 @@
28
28
  "icon": {
29
29
  "color": {
30
30
  "$type": "color",
31
- "$value": "{govnl.brand.primary.500}"
31
+ "$value": "{govnl.brand.primary-1.500}"
32
32
  },
33
33
  "active": {
34
34
  "color": {
35
35
  "$type": "color",
36
- "$value": "{govnl.brand.primary.500}"
36
+ "$value": "{govnl.brand.primary-1.500}"
37
37
  }
38
38
  },
39
39
  "size": {
@@ -45,7 +45,7 @@
45
45
  "active": {
46
46
  "background-color": {
47
47
  "$type": "color",
48
- "$value": "{govnl.brand.primary.500}"
48
+ "$value": "{govnl.brand.primary-1.500}"
49
49
  },
50
50
  "color": {
51
51
  "$type": "color",
@@ -58,26 +58,26 @@
58
58
  },
59
59
  "color": {
60
60
  "$type": "color",
61
- "$value": "{govnl.brand.primary.500}"
61
+ "$value": "{govnl.brand.primary-1.500}"
62
62
  },
63
63
  "focus": {
64
64
  "background-color": {
65
65
  "$type": "color",
66
- "$value": "{govnl.brand.primary.50}"
66
+ "$value": "{govnl.brand.primary-1.50}"
67
67
  },
68
68
  "color": {
69
69
  "$type": "color",
70
- "$value": "{govnl.brand.primary.500}"
70
+ "$value": "{govnl.brand.primary-1.500}"
71
71
  }
72
72
  },
73
73
  "hover": {
74
74
  "background-color": {
75
75
  "$type": "color",
76
- "$value": "{govnl.brand.primary.50}"
76
+ "$value": "{govnl.brand.primary-1.50}"
77
77
  },
78
78
  "color": {
79
79
  "$type": "color",
80
- "$value": "{govnl.brand.primary.500}"
80
+ "$value": "{govnl.brand.primary-1.500}"
81
81
  }
82
82
  },
83
83
  "padding-block": {
@@ -103,11 +103,11 @@
103
103
  },
104
104
  "color": {
105
105
  "$type": "color",
106
- "$value": "{govnl.brand.primary.500}"
106
+ "$value": "{govnl.brand.primary-1.500}"
107
107
  },
108
108
  "border-color": {
109
109
  "$type": "color",
110
- "$value": "{govnl.brand.primary.400}"
110
+ "$value": "{govnl.brand.primary-1.400}"
111
111
  },
112
112
  "search": {
113
113
  "padding-block": {
@@ -134,7 +134,7 @@
134
134
  },
135
135
  "color": {
136
136
  "$type": "color",
137
- "$value": "{govnl.brand.primary.500}"
137
+ "$value": "{govnl.brand.primary-1.500}"
138
138
  },
139
139
  "background-color": {
140
140
  "$type": "color",
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "color": {
9
9
  "$type": "color",
10
- "$value": "{govnl.brand.primary.500}"
10
+ "$value": "{govnl.brand.primary-1.500}"
11
11
  },
12
12
  "padding-block-start": {
13
13
  "$type": "dimension",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "border-color": {
35
35
  "$type": "color",
36
- "$value": "{govnl.brand.primary.200}"
36
+ "$value": "{govnl.brand.primary-1.200}"
37
37
  }
38
38
  }
39
39
  }
@@ -24,11 +24,11 @@
24
24
  "lead": {
25
25
  "font-size": {
26
26
  "$type": "fontSizes",
27
- "$value": "{govnl.document.font-size}"
27
+ "$value": "{govnl.typography.font-size.xl}"
28
28
  },
29
29
  "font-weight": {
30
30
  "$type": "fontWeights",
31
- "$value": "{govnl.document.strong.font-weight}"
31
+ "$value": "{govnl.document.font-weight}"
32
32
  },
33
33
  "line-height": {
34
34
  "$type": "lineHeights",
@@ -0,0 +1,66 @@
1
+ {
2
+ "govnl": {
3
+ "searchbar": {
4
+ "input": {
5
+ "border": {
6
+ "border-radius": {
7
+ "$type": "borderRadius",
8
+ "$value": "{govnl.border.border-radius.sm}"
9
+ },
10
+ "border-color": {
11
+ "$type": "color",
12
+ "$value": "{govnl.form-control.border-color}"
13
+ },
14
+ "border-width": {
15
+ "$type": "borderWidth",
16
+ "$value": "{govnl.border.border-width.sm}"
17
+ }
18
+ },
19
+ "padding-block-start": {
20
+ "$type": "dimension",
21
+ "$value": "{govnl.space.xs}"
22
+ },
23
+ "padding-block-end": {
24
+ "$type": "dimension",
25
+ "$value": "{govnl.space.xs}"
26
+ },
27
+ "padding-inline-start": {
28
+ "$type": "dimension",
29
+ "$value": "{govnl.space.sm}"
30
+ },
31
+ "padding-inline-end": {
32
+ "$type": "dimension",
33
+ "$value": "{govnl.space.sm}"
34
+ },
35
+ "placeholder": {
36
+ "color": {
37
+ "$type": "color",
38
+ "$value": "{govnl.form-control.placeholder.color}"
39
+ }
40
+ }
41
+ },
42
+ "gap": {
43
+ "$type": "dimension",
44
+ "$value": "{govnl.dimension.size.50}"
45
+ }
46
+ },
47
+ "input": {
48
+ "placeholder": {
49
+ "font-size": {
50
+ "$type": "fontSizes",
51
+ "$value": "{govnl.document.font-size}"
52
+ }
53
+ }
54
+ }
55
+ },
56
+ "searchbar": {
57
+ "input": {
58
+ "placeholder": {
59
+ "font-family": {
60
+ "$type": "fontFamilies",
61
+ "$value": "{govnl.document.font-family}"
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,162 @@
1
+ {
2
+ "govnl": {
3
+ "table": {
4
+ "margin-block-start": {
5
+ "$type": "dimension",
6
+ "$value": "{govnl.space.sm}"
7
+ },
8
+ "margin-block-end": {
9
+ "$type": "dimension",
10
+ "$value": "0"
11
+ },
12
+ "caption": {
13
+ "font-size": {
14
+ "$type": "fontSizes",
15
+ "$value": "{govnl.typography.font-size.xl}"
16
+ },
17
+ "font-weight": {
18
+ "$type": "fontWeights",
19
+ "$value": "{govnl.document.font-weight}"
20
+ },
21
+ "text-align": {
22
+ "$type": "other",
23
+ "$value": "start"
24
+ },
25
+ "margin-block-end": {
26
+ "$type": "dimension",
27
+ "$value": "{govnl.space.sm}"
28
+ },
29
+ "color": {
30
+ "$type": "color",
31
+ "$value": "{govnl.document.color}"
32
+ }
33
+ },
34
+ "header": {
35
+ "font-weight": {
36
+ "$type": "fontWeights",
37
+ "$value": "{govnl.heading.font-weight}"
38
+ },
39
+ "color": {
40
+ "$type": "color",
41
+ "$value": "{govnl.heading.color}"
42
+ },
43
+ "border-block-end-color": {
44
+ "$type": "color",
45
+ "$value": "{govnl.line.strong.border-color}"
46
+ },
47
+ "border-block-end-width": {
48
+ "$type": "border",
49
+ "$value": "{govnl.border.border-width.md}"
50
+ },
51
+ "sticky": {
52
+ "background-color": {
53
+ "$type": "color",
54
+ "$value": "{govnl.color.white}"
55
+ },
56
+ "color": {
57
+ "$type": "color",
58
+ "$value": "{govnl.color.black}"
59
+ },
60
+ "border-block-end-color": {
61
+ "$type": "color",
62
+ "$value": "{govnl.line.strong.border-color}"
63
+ },
64
+ "border-block-end-width": {
65
+ "$type": "border",
66
+ "$value": "2px"
67
+ }
68
+ },
69
+ "icon": {
70
+ "color": {
71
+ "$type": "color",
72
+ "$value": "{govnl.interaction.color}"
73
+ }
74
+ }
75
+ },
76
+ "footer": {
77
+ "sticky": {
78
+ "background-color": {
79
+ "$type": "color",
80
+ "$value": "{govnl.color.white}"
81
+ },
82
+ "color": {
83
+ "$type": "color",
84
+ "$value": "{govnl.color.black}"
85
+ },
86
+ "border-block-start-color": {
87
+ "$type": "color",
88
+ "$value": "{govnl.line.strong.border-color}"
89
+ },
90
+ "border-block-start-width": {
91
+ "$type": "border",
92
+ "$value": "2px"
93
+ }
94
+ }
95
+ },
96
+ "cell": {
97
+ "padding-block-end": {
98
+ "$type": "dimension",
99
+ "$value": "0.5em"
100
+ },
101
+ "padding-block-start": {
102
+ "$type": "dimension",
103
+ "$value": "0.5em"
104
+ },
105
+ "padding-inline-end": {
106
+ "$type": "dimension",
107
+ "$value": "0.4em"
108
+ },
109
+ "padding-inline-start": {
110
+ "$type": "dimension",
111
+ "$value": "0.4em"
112
+ },
113
+ "selected": {
114
+ "background-color": {
115
+ "$type": "color",
116
+ "$value": "{govnl.brand.primary-1.50}"
117
+ },
118
+ "color": {
119
+ "$type": "color",
120
+ "$value": "{govnl.color.black}"
121
+ }
122
+ },
123
+ "icon": {
124
+ "size": {
125
+ "$type": "sizing",
126
+ "$value": "1em"
127
+ }
128
+ }
129
+ },
130
+ "row": {
131
+ "border-block-end-width": {
132
+ "$type": "border",
133
+ "$value": "{govnl.border.border-width.sm}"
134
+ },
135
+ "border-block-end-color": {
136
+ "$type": "color",
137
+ "$value": "{govnl.line.border-color}"
138
+ },
139
+ "alternate-odd": {
140
+ "background-color": {
141
+ "$type": "color",
142
+ "$value": "{govnl.color.white}"
143
+ },
144
+ "color": {
145
+ "$type": "color",
146
+ "$value": "{govnl.color.black}"
147
+ }
148
+ },
149
+ "alternate-even": {
150
+ "color": {
151
+ "$type": "color",
152
+ "$value": "{govnl.color.black}"
153
+ },
154
+ "background-color": {
155
+ "$type": "color",
156
+ "$value": "{govnl.color.grijs.100}"
157
+ }
158
+ }
159
+ }
160
+ }
161
+ }
162
+ }
@@ -60,7 +60,7 @@
60
60
  "connector": {
61
61
  "color": {
62
62
  "$type": "color",
63
- "$value": "{govnl.brand.primary.500}"
63
+ "$value": "{govnl.brand.primary-1.500}"
64
64
  },
65
65
  "padding-inline-start": {
66
66
  "$type": "dimension",