@juwel-development/design-system 3.5.0 → 3.7.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/src/tokens.css CHANGED
@@ -17,6 +17,7 @@
17
17
  --color-control-border: #64748b;
18
18
  --color-rule: #808fa3;
19
19
  --color-backing: #f1f5f9;
20
+ --color-scrim: rgb(15 23 42 / 0.5);
20
21
  --color-meter-fill: #0f172a;
21
22
  --color-meter-track: #e2e8f0;
22
23
  --color-primary: #7c3aed;
@@ -43,6 +44,7 @@
43
44
  --color-control-border: #94a3b8;
44
45
  --color-rule: #5b6a80;
45
46
  --color-backing: #1e293b;
47
+ --color-scrim: rgb(15 23 42 / 0.5);
46
48
  --color-meter-fill: #f8fafc;
47
49
  --color-meter-track: #334155;
48
50
  --color-primary: #8b5cf6;
@@ -69,6 +71,7 @@
69
71
  --color-control-border: var(--color-control-border);
70
72
  --color-rule: var(--color-rule);
71
73
  --color-backing: var(--color-backing);
74
+ --color-scrim: var(--color-scrim);
72
75
  --color-meter-fill: var(--color-meter-fill);
73
76
  --color-meter-track: var(--color-meter-track);
74
77
  --color-primary: var(--color-primary);
@@ -109,6 +112,7 @@
109
112
  /* Radius is not a colour either: one token for the corner every control reads, beside the others. */
110
113
  :root {
111
114
  --radius-control: 0.5rem;
115
+ --radius-dialog: 0.375rem;
112
116
  }
113
117
 
114
118
  /* The control minimum width is not a colour either, and sits in :root beside radius. */
@@ -166,6 +170,12 @@
166
170
  is the line height SC 1.4.12 expects text to survive, so a user stylesheet applying it moves nothing. */
167
171
  --leading-label: 1.5;
168
172
 
173
+ /* The Dialog title role: the top heading of an independent transitory task, deliberately outside
174
+ the page heading ladder (docs/adr/0005). Ships subtitle's values while staying an independent
175
+ role, so a consumer re-points Dialog titles without moving every H3 (docs/adr/0004, Amendments). */
176
+ --text-dialog-title: clamp(1.5rem, 3vw, 2.25rem);
177
+ --leading-dialog-title: 1.2;
178
+
169
179
  /* Two quantities on one property that must not collapse: --tracking-label is a fixed letter-spaced
170
180
  style, --tracking-optical a correction that varies with size. The names say which is which, so the
171
181
  distinction survives without the ADR in hand. Scope: the title role and above - H1, H2 and the page
@@ -242,7 +252,23 @@
242
252
  --slider-thumb-size: 1.5rem;
243
253
  }
244
254
 
255
+ /* The choice marker's dimensions are not colours either, and sit in :root beside the slider block. */
256
+ :root {
257
+ --choice-marker-size: 1.125rem;
258
+ --choice-marker-dot-size: 0.5rem;
259
+ }
260
+
245
261
  /* The meter track's thickness is not a colour either, and sits in :root beside the tab blocks. */
246
262
  :root {
247
263
  --meter-track-thickness: 0.5rem;
248
264
  }
265
+
266
+ /* The scrim's blur is not a colour either, and sits in :root beside the meter track. */
267
+ :root {
268
+ --scrim-blur: 0;
269
+ }
270
+
271
+ /* The floating elevation is not a colour either, and sits in :root at the end of the non-colour blocks. */
272
+ :root {
273
+ --elevation-floating: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
274
+ }
@@ -12,6 +12,7 @@
12
12
  --color-control-border: #94a3b8;
13
13
  --color-rule: #5b6a80;
14
14
  --color-backing: #1e293b;
15
+ --color-scrim: rgb(15 23 42 / 0.5);
15
16
  --color-meter-fill: #f8fafc;
16
17
  --color-meter-track: #334155;
17
18
  --color-primary: #8b5cf6;
@@ -38,6 +39,7 @@
38
39
  --color-control-border: var(--color-control-border);
39
40
  --color-rule: var(--color-rule);
40
41
  --color-backing: var(--color-backing);
42
+ --color-scrim: var(--color-scrim);
41
43
  --color-meter-fill: var(--color-meter-fill);
42
44
  --color-meter-track: var(--color-meter-track);
43
45
  --color-primary: var(--color-primary);
@@ -78,6 +80,7 @@
78
80
  /* Radius is not a colour either: one token for the corner every control reads, beside the others. */
79
81
  :root {
80
82
  --radius-control: 0.5rem;
83
+ --radius-dialog: 0.375rem;
81
84
  }
82
85
 
83
86
  /* The control minimum width is not a colour either, and sits in :root beside radius. */
@@ -135,6 +138,12 @@
135
138
  is the line height SC 1.4.12 expects text to survive, so a user stylesheet applying it moves nothing. */
136
139
  --leading-label: 1.5;
137
140
 
141
+ /* The Dialog title role: the top heading of an independent transitory task, deliberately outside
142
+ the page heading ladder (docs/adr/0005). Ships subtitle's values while staying an independent
143
+ role, so a consumer re-points Dialog titles without moving every H3 (docs/adr/0004, Amendments). */
144
+ --text-dialog-title: clamp(1.5rem, 3vw, 2.25rem);
145
+ --leading-dialog-title: 1.2;
146
+
138
147
  /* Two quantities on one property that must not collapse: --tracking-label is a fixed letter-spaced
139
148
  style, --tracking-optical a correction that varies with size. The names say which is which, so the
140
149
  distinction survives without the ADR in hand. Scope: the title role and above - H1, H2 and the page
@@ -211,7 +220,23 @@
211
220
  --slider-thumb-size: 1.5rem;
212
221
  }
213
222
 
223
+ /* The choice marker's dimensions are not colours either, and sit in :root beside the slider block. */
224
+ :root {
225
+ --choice-marker-size: 1.125rem;
226
+ --choice-marker-dot-size: 0.5rem;
227
+ }
228
+
214
229
  /* The meter track's thickness is not a colour either, and sits in :root beside the tab blocks. */
215
230
  :root {
216
231
  --meter-track-thickness: 0.5rem;
217
232
  }
233
+
234
+ /* The scrim's blur is not a colour either, and sits in :root beside the meter track. */
235
+ :root {
236
+ --scrim-blur: 0;
237
+ }
238
+
239
+ /* The floating elevation is not a colour either, and sits in :root at the end of the non-colour blocks. */
240
+ :root {
241
+ --elevation-floating: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
242
+ }
@@ -12,6 +12,7 @@
12
12
  --color-control-border: #64748b;
13
13
  --color-rule: #808fa3;
14
14
  --color-backing: #f1f5f9;
15
+ --color-scrim: rgb(15 23 42 / 0.5);
15
16
  --color-meter-fill: #0f172a;
16
17
  --color-meter-track: #e2e8f0;
17
18
  --color-primary: #7c3aed;
@@ -38,6 +39,7 @@
38
39
  --color-control-border: var(--color-control-border);
39
40
  --color-rule: var(--color-rule);
40
41
  --color-backing: var(--color-backing);
42
+ --color-scrim: var(--color-scrim);
41
43
  --color-meter-fill: var(--color-meter-fill);
42
44
  --color-meter-track: var(--color-meter-track);
43
45
  --color-primary: var(--color-primary);
@@ -78,6 +80,7 @@
78
80
  /* Radius is not a colour either: one token for the corner every control reads, beside the others. */
79
81
  :root {
80
82
  --radius-control: 0.5rem;
83
+ --radius-dialog: 0.375rem;
81
84
  }
82
85
 
83
86
  /* The control minimum width is not a colour either, and sits in :root beside radius. */
@@ -135,6 +138,12 @@
135
138
  is the line height SC 1.4.12 expects text to survive, so a user stylesheet applying it moves nothing. */
136
139
  --leading-label: 1.5;
137
140
 
141
+ /* The Dialog title role: the top heading of an independent transitory task, deliberately outside
142
+ the page heading ladder (docs/adr/0005). Ships subtitle's values while staying an independent
143
+ role, so a consumer re-points Dialog titles without moving every H3 (docs/adr/0004, Amendments). */
144
+ --text-dialog-title: clamp(1.5rem, 3vw, 2.25rem);
145
+ --leading-dialog-title: 1.2;
146
+
138
147
  /* Two quantities on one property that must not collapse: --tracking-label is a fixed letter-spaced
139
148
  style, --tracking-optical a correction that varies with size. The names say which is which, so the
140
149
  distinction survives without the ADR in hand. Scope: the title role and above - H1, H2 and the page
@@ -211,7 +220,23 @@
211
220
  --slider-thumb-size: 1.5rem;
212
221
  }
213
222
 
223
+ /* The choice marker's dimensions are not colours either, and sit in :root beside the slider block. */
224
+ :root {
225
+ --choice-marker-size: 1.125rem;
226
+ --choice-marker-dot-size: 0.5rem;
227
+ }
228
+
214
229
  /* The meter track's thickness is not a colour either, and sits in :root beside the tab blocks. */
215
230
  :root {
216
231
  --meter-track-thickness: 0.5rem;
217
232
  }
233
+
234
+ /* The scrim's blur is not a colour either, and sits in :root beside the meter track. */
235
+ :root {
236
+ --scrim-blur: 0;
237
+ }
238
+
239
+ /* The floating elevation is not a colour either, and sits in :root at the end of the non-colour blocks. */
240
+ :root {
241
+ --elevation-floating: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
242
+ }