@noix-dev/brix-tokens 0.0.0-stage → 0.2.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.
@@ -0,0 +1,565 @@
1
+ /* ---------------------------------------------------------------------------
2
+ Density. A user preference, never part of a theme: a theme says what the
3
+ application looks like, density says how much of it fits on a screen.
4
+
5
+ Both axes are attributes on the document root, written by the appearance
6
+ helpers. 'normal' writes no attribute at all, which is what keeps these rules
7
+ off an application that never offers the preference.
8
+ --------------------------------------------------------------------------- */
9
+
10
+ /* Table density, set as `data-brix-table-density` on the document root. 'normal' sets nothing, so
11
+ the table components' own classes stand. The other two shrink the row padding, the
12
+ header height and the cell text; columns, sorting and menus work as before.
13
+
14
+ Unlayered on purpose: a table cell's `py-1.5` and a table header's `h-8` are Tailwind
15
+ utilities, and the utilities layer outranks every layer a rule here could sit in.
16
+ Only an unlayered rule beats them, and it does so without `!important`.
17
+
18
+ These rules key on `[data-brix-table-density]` and NOT on `[data-brix-page-shape]`, on
19
+ purpose: the table axis is for every table in the application, and a list page is a table
20
+ that has no page shape. Putting the marker on them would switch them off exactly where
21
+ they are wanted.
22
+ The page axis below is the one that needs the marker.
23
+
24
+ What each selector addresses, with the hooks `packages/vue/src/components/table/` draws:
25
+ - `[data-slot='table-cell']` is the `<td>` of `TableCell`: every cell of a body row, of a
26
+ footer row, and of the one a `TableEmpty` is drawn in. Nothing else carries
27
+ the hook, and the descendant combinator is deliberate: a cell is not always a child of
28
+ a row component a caller wrote (a custom row, a virtualised list's wrapper), so a child
29
+ combinator would stop at the first element a caller puts in between.
30
+ - `[data-slot='table-head']` is the `<th>` of `TableHead`, and only that. It sets
31
+ `height`, which a `<th>` takes as its minimum.
32
+ - `TableEmpty` draws a `TableCell`, so these rules reach it as well. They take the cell's
33
+ own vertical padding (`p-4`) and its font size, and leave the block inside it, which
34
+ carries its own `py-10`. Measured: the empty row is 132.5px at normal and 96.9px at dense.
35
+ - Measured on text-only rows: the body row is 31.8px at normal, 35px at `compact` and
36
+ 17.4px at `dense`, so `compact` is TALLER than normal until a `row-actions` menu is in
37
+ the row (see the next comment). These values come across from the application this was
38
+ ported from, where that menu sets the normal row height; they are left as they are.
39
+ The reach claims above are pinned (`tests/density-css.test.ts` over the text, and
40
+ `table/Table.test.ts` over the real components in a document). */
41
+ [data-brix-table-density='compact'] [data-slot='table-cell'] {
42
+ padding-block: 0.5rem;
43
+ font-size: 12px;
44
+ }
45
+ [data-brix-table-density='compact'] [data-slot='table-head'] {
46
+ height: 1.75rem;
47
+ }
48
+ [data-brix-table-density='dense'] [data-slot='table-cell'] {
49
+ padding-block: 0.0625rem;
50
+ font-size: 11.5px;
51
+ line-height: 1.25;
52
+ }
53
+ [data-brix-table-density='dense'] [data-slot='table-head'] {
54
+ height: 1.5rem;
55
+ }
56
+ /* The row-actions menu brings the vertical padding of a list row with it, because the same
57
+ control is used in lists that are not tables. In a table cell that padding, not the text,
58
+ sets the row height, so the two denser settings take it out there; 'normal' keeps the
59
+ rows as they are. */
60
+ [data-brix-table-density] [data-slot='table-cell'] [data-slot='row-actions'] {
61
+ padding-block: 0;
62
+ }
63
+ [data-brix-table-density='dense'] [data-slot='table-cell'] [data-slot='row-actions'] > button {
64
+ font-size: 0.9375rem;
65
+ }
66
+
67
+ /* Page density, set as `data-brix-page-density` on the document root. It shapes the record and
68
+ create/edit pages that opt in: the head, status band, tab bars, overview <dl>s, the
69
+ collaboration block, form sections and form fields.
70
+
71
+ Two guards keep every other page exactly as it is (density-css.test.ts checks both):
72
+ - 'normal' sets no attribute, and every rule below starts at `compact` or `dense`;
73
+ - every rule also needs `[data-brix-page-shape]`, the marker on the page's one card. Form
74
+ fields and the tab bar are shared with pages of other shapes, which never carry it.
75
+
76
+ The hooks are `data-slot`s on the elements (page-head, page-identity, record-avatar,
77
+ status-band, tabs-list/-trigger, record-fields, collab-block, form-section, form-field).
78
+ Only ever smaller than normal: where an element is already small it is left alone.
79
+
80
+ Unlayered for the same reason as the table rules above: the elements carry Tailwind
81
+ utilities (`px-4`, `h-8`, `text-sm` …), and an unlayered rule outranks every layer without
82
+ `!important`. No `!important` is used.
83
+
84
+ `[data-slot='search-select'] > button` addresses TWO buttons, not one. The slot element has
85
+ the trigger and the clear button as direct children — the clear button is `absolute`, and it
86
+ is a sibling of the trigger rather than inside it, because the trigger is a `button` and may
87
+ not contain one. So a rule on that combinator lands on both. For `height` that is harmless
88
+ and arguably right: the clear button gets the same hit area and a correctly sized focus ring
89
+ as the field shrinks. For a rule about the field's box — padding, width, a border — it is
90
+ not what the author means, and the clear button would be dragged along silently. Narrow such
91
+ a rule to `> button:not([aria-label])`, or give the trigger a slot of its own first. The
92
+ suite pins this selector's reach so the next person adding a rule here sees it.
93
+
94
+ Measured on a form section, with a value chosen, at all three settings: the trigger goes
95
+ 32px / 28px / 26px and the clear button's box goes 16px / 28px / 26px with it, while the
96
+ glyph inside stays 16x16 and does not move — centred on the trigger to the pixel and 32px in
97
+ from its right edge at every setting, never spilling outside the trigger's box. So the only
98
+ thing that changes is hit area, and on the denser settings there is more of it.
99
+
100
+ `dense` on forms: from 1280px up the label moves left of single-line controls only
101
+ (input, select, search-select, date fields) and the section heading gets a column of its
102
+ own. Every other control keeps its label above, and below 1280px so does every field and
103
+ heading (with the smaller sizes). The error <p> stays in the control's column. Field and
104
+ control rules sit under `form-section`, so inline sections in a tab panel keep the normal
105
+ size. Input text keeps its own size under 768px, where a smaller one would make iOS zoom
106
+ in on focus. */
107
+ [data-brix-page-density='compact'] [data-brix-page-shape] [data-slot='page-head'] {
108
+ gap: 0.625rem;
109
+ padding: 0.5rem 0.875rem;
110
+ }
111
+ [data-brix-page-density='compact'] [data-brix-page-shape] [data-slot='page-head'] > :is(button, a),
112
+ [data-brix-page-density='compact']
113
+ [data-brix-page-shape]
114
+ [data-slot='page-head']
115
+ > div:not([data-slot])
116
+ > :is(button, a),
117
+ [data-brix-page-density='compact']
118
+ [data-brix-page-shape]
119
+ [data-slot='page-head']
120
+ [data-slot='split-button']
121
+ button {
122
+ padding-block: 0.3125rem;
123
+ }
124
+ [data-brix-page-density='compact'] [data-brix-page-shape] [data-slot='record-avatar'] {
125
+ width: 2.125rem;
126
+ height: 2.125rem;
127
+ border-radius: 0.625rem;
128
+ font-size: 0.75rem;
129
+ }
130
+ [data-brix-page-density='compact'] [data-brix-page-shape] [data-slot='record-avatar'] svg {
131
+ width: 1rem;
132
+ height: 1rem;
133
+ }
134
+ [data-brix-page-density='compact'] [data-brix-page-shape] [data-slot='page-identity'] h1 {
135
+ margin-top: 0.0625rem;
136
+ font-size: 1rem;
137
+ }
138
+ [data-brix-page-density='compact']
139
+ [data-brix-page-shape]
140
+ [data-slot='page-identity']
141
+ > :first-child:not(h1) {
142
+ font-size: 0.6875rem;
143
+ }
144
+ [data-brix-page-density='compact'] [data-brix-page-shape] [data-slot='status-band'] {
145
+ padding-inline: 0.875rem;
146
+ padding-bottom: 0.5rem;
147
+ }
148
+ [data-brix-page-density='compact']
149
+ [data-brix-page-shape]
150
+ [data-slot='tabs-list'][data-variant='underline']
151
+ [data-slot='tabs-trigger'] {
152
+ padding-block: 0.3125rem;
153
+ line-height: 1.125rem;
154
+ }
155
+ [data-brix-page-density='compact']
156
+ [data-brix-page-shape]
157
+ [data-slot='tabs-list'][data-variant='pill']
158
+ [data-slot='tabs-trigger'] {
159
+ padding-block: 0.0625rem;
160
+ }
161
+ [data-brix-page-density='compact'] [data-brix-page-shape] [data-slot='record-fields']:has(> div) {
162
+ row-gap: 0.1875rem;
163
+ font-size: 0.8125rem;
164
+ }
165
+ [data-brix-page-density='compact']
166
+ [data-brix-page-shape]
167
+ [data-slot='record-fields']:has(> div)
168
+ dt {
169
+ font-size: 0.65625rem;
170
+ }
171
+ [data-brix-page-density='compact'] [data-brix-page-shape] [data-slot='collab-block'] {
172
+ border-top-width: 0.375rem;
173
+ padding: 0.625rem 0.875rem;
174
+ }
175
+ [data-brix-page-density='compact']
176
+ [data-brix-page-shape]
177
+ [data-slot='collab-block']
178
+ > :first-child {
179
+ margin-bottom: 0.375rem;
180
+ }
181
+ [data-brix-page-density='compact'] [data-brix-page-shape] [data-slot='form-section'] {
182
+ padding: 0.6875rem 0.875rem;
183
+ gap: 0.5rem;
184
+ }
185
+ /* The field grids under the heading (`grid gap-3` in the page); row-gap is inert elsewhere. */
186
+ [data-brix-page-density='compact']
187
+ [data-brix-page-shape]
188
+ [data-slot='form-section']
189
+ > :not(h2, [data-slot='form-field']) {
190
+ row-gap: 0.5rem;
191
+ }
192
+ [data-brix-page-density='compact']
193
+ [data-brix-page-shape]
194
+ [data-slot='form-section']
195
+ [data-slot='form-field'] {
196
+ gap: 0.25rem;
197
+ }
198
+ [data-brix-page-density='compact']
199
+ [data-brix-page-shape]
200
+ [data-slot='form-section']
201
+ [data-slot='form-field']
202
+ [data-slot='label'] {
203
+ font-size: 0.78125rem;
204
+ }
205
+ [data-brix-page-density='compact']
206
+ [data-brix-page-shape]
207
+ [data-slot='form-section']
208
+ [data-slot='form-field']
209
+ [data-slot='input'],
210
+ [data-brix-page-density='compact']
211
+ [data-brix-page-shape]
212
+ [data-slot='form-section']
213
+ [data-slot='form-field']
214
+ [data-slot='select-trigger'],
215
+ [data-brix-page-density='compact']
216
+ [data-brix-page-shape]
217
+ [data-slot='form-section']
218
+ [data-slot='form-field']
219
+ [data-slot='search-select']
220
+ > button,
221
+ [data-brix-page-density='compact']
222
+ [data-brix-page-shape]
223
+ [data-slot='form-section']
224
+ [data-slot='form-field']
225
+ :is([data-slot='date-picker'], [data-slot='date-time-picker'], [data-slot='date-range-picker'])
226
+ > div {
227
+ height: 1.75rem;
228
+ }
229
+ [data-brix-page-density='compact']
230
+ [data-brix-page-shape]
231
+ [data-slot='form-section']
232
+ [data-slot='form-field']
233
+ [data-slot='select-trigger'] {
234
+ padding-block: 0;
235
+ }
236
+ @media (min-width: 768px) {
237
+ [data-brix-page-density='compact']
238
+ [data-brix-page-shape]
239
+ [data-slot='form-section']
240
+ [data-slot='form-field']
241
+ [data-slot='input'],
242
+ [data-brix-page-density='compact']
243
+ [data-brix-page-shape]
244
+ [data-slot='form-section']
245
+ [data-slot='form-field']
246
+ [data-slot='select-trigger'],
247
+ [data-brix-page-density='compact']
248
+ [data-brix-page-shape]
249
+ [data-slot='form-section']
250
+ [data-slot='form-field']
251
+ [data-slot='search-select']
252
+ > button,
253
+ [data-brix-page-density='compact']
254
+ [data-brix-page-shape]
255
+ [data-slot='form-section']
256
+ [data-slot='form-field']
257
+ :is(
258
+ [data-slot='date-picker'],
259
+ [data-slot='date-time-picker'],
260
+ [data-slot='date-range-picker']
261
+ )
262
+ > div {
263
+ font-size: 0.8125rem;
264
+ }
265
+ [data-brix-page-density='compact']
266
+ [data-brix-page-shape]
267
+ [data-slot='form-section']
268
+ [data-slot='form-field']
269
+ :is(
270
+ [data-slot='date-picker'],
271
+ [data-slot='date-time-picker'],
272
+ [data-slot='date-range-picker']
273
+ )
274
+ input {
275
+ font-size: inherit;
276
+ }
277
+ }
278
+ [data-brix-page-density='compact']
279
+ [data-brix-page-shape]
280
+ [data-slot='form-section']
281
+ [data-slot='form-field']
282
+ [role='alert'] {
283
+ font-size: 0.75rem;
284
+ }
285
+
286
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='page-head'] {
287
+ gap: 0.625rem;
288
+ padding: 0.375rem 0.75rem;
289
+ align-items: center;
290
+ }
291
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='page-head'] > :is(button, a),
292
+ [data-brix-page-density='dense']
293
+ [data-brix-page-shape]
294
+ [data-slot='page-head']
295
+ > div:not([data-slot])
296
+ > :is(button, a),
297
+ [data-brix-page-density='dense']
298
+ [data-brix-page-shape]
299
+ [data-slot='page-head']
300
+ [data-slot='split-button']
301
+ button {
302
+ padding-block: 0.25rem;
303
+ }
304
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='record-avatar'] {
305
+ width: 1.625rem;
306
+ height: 1.625rem;
307
+ border-radius: 0.5rem;
308
+ font-size: 0.65625rem;
309
+ }
310
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='record-avatar'] svg {
311
+ width: 0.875rem;
312
+ height: 0.875rem;
313
+ }
314
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='page-identity'] {
315
+ display: flex;
316
+ flex-wrap: wrap;
317
+ align-items: baseline;
318
+ gap: 0 0.5rem;
319
+ }
320
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='page-identity'] h1 {
321
+ margin-top: 0;
322
+ font-size: 0.9375rem;
323
+ }
324
+ [data-brix-page-density='dense']
325
+ [data-brix-page-shape]
326
+ [data-slot='page-identity']
327
+ > :first-child:not(h1) {
328
+ font-size: 0.6875rem;
329
+ }
330
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='status-band'] {
331
+ padding-inline: 0.75rem;
332
+ padding-bottom: 0.375rem;
333
+ }
334
+ [data-brix-page-density='dense']
335
+ [data-brix-page-shape]
336
+ [data-slot='tabs-list'][data-variant='underline']
337
+ [data-slot='tabs-trigger'] {
338
+ padding-block: 0.25rem;
339
+ line-height: 1rem;
340
+ font-size: 0.75rem;
341
+ }
342
+ [data-brix-page-density='dense']
343
+ [data-brix-page-shape]
344
+ [data-slot='tabs-list'][data-variant='pill']
345
+ [data-slot='tabs-trigger'] {
346
+ padding-block: 0;
347
+ }
348
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='record-fields']:has(> div) {
349
+ row-gap: 0.0625rem;
350
+ font-size: 0.78125rem;
351
+ }
352
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='record-fields']:has(> div) dt {
353
+ flex: 0 0 6.5rem;
354
+ font-size: 0.6875rem;
355
+ text-align: right;
356
+ }
357
+ [data-brix-page-density='dense']
358
+ [data-brix-page-shape]
359
+ [data-slot='record-fields']:has(> div)
360
+ > div {
361
+ display: flex;
362
+ align-items: baseline;
363
+ gap: 0.5rem;
364
+ }
365
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='record-fields']:has(> div) dd {
366
+ flex: 1 1 0;
367
+ min-width: 0;
368
+ overflow-wrap: anywhere;
369
+ }
370
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='record-fields']:has(> div) {
371
+ grid-template-columns: minmax(0, 1fr);
372
+ }
373
+ @media (min-width: 640px) {
374
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='record-fields']:has(> div) {
375
+ grid-template-columns: repeat(2, minmax(0, 1fr));
376
+ }
377
+ }
378
+ /* A pair the page spans over several columns (`col-span-2/3`) takes the whole dense row;
379
+ left alone it would open an extra track and squeeze every value beside it. */
380
+ [data-brix-page-density='dense']
381
+ [data-brix-page-shape]
382
+ [data-slot='record-fields']:has(> div)
383
+ > [class*='col-span-'] {
384
+ grid-column: 1 / -1;
385
+ }
386
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='collab-block'] {
387
+ border-top-width: 0.25rem;
388
+ padding: 0.5rem 0.75rem;
389
+ }
390
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='collab-block'] > :first-child {
391
+ margin-bottom: 0.25rem;
392
+ }
393
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='form-section'] {
394
+ padding: 0.5rem 0.75rem;
395
+ gap: 0.375rem;
396
+ }
397
+ [data-brix-page-density='dense']
398
+ [data-brix-page-shape]
399
+ [data-slot='form-section']
400
+ > :not(h2, [data-slot='form-field']) {
401
+ row-gap: 0.375rem;
402
+ }
403
+ [data-brix-page-density='dense']
404
+ [data-brix-page-shape]
405
+ [data-slot='form-section']
406
+ [data-slot='form-field'] {
407
+ gap: 0.1875rem;
408
+ }
409
+ [data-brix-page-density='dense']
410
+ [data-brix-page-shape]
411
+ [data-slot='form-section']
412
+ [data-slot='form-field']
413
+ [data-slot='label'] {
414
+ font-size: 0.71875rem;
415
+ }
416
+ [data-brix-page-density='dense']
417
+ [data-brix-page-shape]
418
+ [data-slot='form-section']
419
+ [data-slot='form-field']
420
+ [data-slot='input'],
421
+ [data-brix-page-density='dense']
422
+ [data-brix-page-shape]
423
+ [data-slot='form-section']
424
+ [data-slot='form-field']
425
+ [data-slot='select-trigger'],
426
+ [data-brix-page-density='dense']
427
+ [data-brix-page-shape]
428
+ [data-slot='form-section']
429
+ [data-slot='form-field']
430
+ [data-slot='search-select']
431
+ > button,
432
+ [data-brix-page-density='dense']
433
+ [data-brix-page-shape]
434
+ [data-slot='form-section']
435
+ [data-slot='form-field']
436
+ :is([data-slot='date-picker'], [data-slot='date-time-picker'], [data-slot='date-range-picker'])
437
+ > div {
438
+ height: 1.625rem;
439
+ }
440
+ [data-brix-page-density='dense']
441
+ [data-brix-page-shape]
442
+ [data-slot='form-section']
443
+ [data-slot='form-field']
444
+ [data-slot='select-trigger'] {
445
+ padding-block: 0;
446
+ }
447
+ @media (min-width: 768px) {
448
+ [data-brix-page-density='dense']
449
+ [data-brix-page-shape]
450
+ [data-slot='form-section']
451
+ [data-slot='form-field']
452
+ [data-slot='input'],
453
+ [data-brix-page-density='dense']
454
+ [data-brix-page-shape]
455
+ [data-slot='form-section']
456
+ [data-slot='form-field']
457
+ [data-slot='select-trigger'],
458
+ [data-brix-page-density='dense']
459
+ [data-brix-page-shape]
460
+ [data-slot='form-section']
461
+ [data-slot='form-field']
462
+ [data-slot='search-select']
463
+ > button,
464
+ [data-brix-page-density='dense']
465
+ [data-brix-page-shape]
466
+ [data-slot='form-section']
467
+ [data-slot='form-field']
468
+ :is(
469
+ [data-slot='date-picker'],
470
+ [data-slot='date-time-picker'],
471
+ [data-slot='date-range-picker']
472
+ )
473
+ > div {
474
+ font-size: 0.78125rem;
475
+ }
476
+ [data-brix-page-density='dense']
477
+ [data-brix-page-shape]
478
+ [data-slot='form-section']
479
+ [data-slot='form-field']
480
+ :is(
481
+ [data-slot='date-picker'],
482
+ [data-slot='date-time-picker'],
483
+ [data-slot='date-range-picker']
484
+ )
485
+ input {
486
+ font-size: inherit;
487
+ }
488
+ }
489
+ [data-brix-page-density='dense']
490
+ [data-brix-page-shape]
491
+ [data-slot='form-section']
492
+ [data-slot='form-field']
493
+ [role='alert'] {
494
+ font-size: 0.75rem;
495
+ }
496
+
497
+ @media (min-width: 1280px) {
498
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='form-section'] {
499
+ display: grid;
500
+ grid-template-columns: 6.875rem minmax(0, 1fr);
501
+ column-gap: 0.75rem;
502
+ align-items: start;
503
+ }
504
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='form-section'] > h2 {
505
+ padding-top: 0.4375rem;
506
+ }
507
+ [data-brix-page-density='dense'] [data-brix-page-shape] [data-slot='form-section'] > :not(h2) {
508
+ grid-column: 2;
509
+ }
510
+ [data-brix-page-density='dense']
511
+ [data-brix-page-shape]
512
+ [data-slot='form-section']
513
+ [data-slot='form-field']:has(
514
+ > :is(
515
+ [data-slot='input'],
516
+ [data-slot='select-trigger'],
517
+ [data-slot='search-select'],
518
+ [data-slot='date-picker'],
519
+ [data-slot='date-time-picker'],
520
+ [data-slot='date-range-picker']
521
+ )
522
+ ) {
523
+ grid-template-columns: 5.75rem minmax(0, 1fr);
524
+ column-gap: 0.375rem;
525
+ align-items: center;
526
+ }
527
+ [data-brix-page-density='dense']
528
+ [data-brix-page-shape]
529
+ [data-slot='form-section']
530
+ [data-slot='form-field']:has(
531
+ > :is(
532
+ [data-slot='input'],
533
+ [data-slot='select-trigger'],
534
+ [data-slot='search-select'],
535
+ [data-slot='date-picker'],
536
+ [data-slot='date-time-picker'],
537
+ [data-slot='date-range-picker']
538
+ )
539
+ )
540
+ > [data-slot='label'] {
541
+ grid-column: 1;
542
+ justify-content: flex-end;
543
+ min-width: 0;
544
+ overflow-wrap: anywhere;
545
+ text-align: right;
546
+ line-height: 1.2;
547
+ color: var(--muted-foreground);
548
+ }
549
+ [data-brix-page-density='dense']
550
+ [data-brix-page-shape]
551
+ [data-slot='form-section']
552
+ [data-slot='form-field']:has(
553
+ > :is(
554
+ [data-slot='input'],
555
+ [data-slot='select-trigger'],
556
+ [data-slot='search-select'],
557
+ [data-slot='date-picker'],
558
+ [data-slot='date-time-picker'],
559
+ [data-slot='date-range-picker']
560
+ )
561
+ )
562
+ > :not([data-slot='label']) {
563
+ grid-column: 2;
564
+ }
565
+ }
package/src/fonts.css ADDED
@@ -0,0 +1,10 @@
1
+ /* Figtree, the family `kingfisher` names in --font-sans, in the weights the theme uses.
2
+ A convenience, not part of the contract: a theme only names a family, and delivering it
3
+ stays the application's choice — a <link rel="preconnect"> plus a stylesheet in the
4
+ document head is faster than an @import, and a self-hosted @font-face set avoids the
5
+ third party altogether.
6
+
7
+ index.css does not import this. A design-system stylesheet that reaches the network the
8
+ moment it is imported is a surprise, so an application that wants the shortcut asks for
9
+ it by name: @import '@noix-dev/brix-tokens/fonts.css'. */
10
+ @import url('https://fonts.bunny.net/css?family=figtree:300,400,500,600,700,800');