@frontile/theme 0.18.0-beta.5 → 0.18.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.
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
import { type VariantProps } from '../../tw';
|
|
2
|
+
/**
|
|
3
|
+
* A note on the colour levels used for text and borders below.
|
|
4
|
+
*
|
|
5
|
+
* The `soft` level is a *translucent* fill (10-25% alpha) -- it exists to tint
|
|
6
|
+
* a surface, and composites to ~1.1-1.5:1 against whatever is behind it. Used
|
|
7
|
+
* as a border or a text colour it is effectively invisible, which is what the
|
|
8
|
+
* invalid field state used to be in dark mode. Borders and rings here take an
|
|
9
|
+
* opaque level instead, and the translucent-halo job is left to `muted`, which
|
|
10
|
+
* is what `ring-focus` (`--color-primary-muted`) already resolves to.
|
|
11
|
+
*
|
|
12
|
+
* For text, the `DEFAULT` level of the tint-shaped categories (`secondary`,
|
|
13
|
+
* `tertiary`, `success`, `warning`) is a light fill colour, not an ink: in
|
|
14
|
+
* light mode it lands at 1.3-2.6:1, well under AA. `alert.ts` hit the same
|
|
15
|
+
* thing first and settled on `bolder` for success/warning, `firm` for danger
|
|
16
|
+
* and `neutral`, and plain `DEFAULT` for primary; the levels below match it so
|
|
17
|
+
* that the same status reads the same weight in an Alert and in form feedback.
|
|
18
|
+
*
|
|
19
|
+
* Two known failures are deliberately left alone, because changing either one
|
|
20
|
+
* restyles every field in the library and is a design decision rather than a
|
|
21
|
+
* bug:
|
|
22
|
+
* - the resting `border-neutral-soft` is 1.37:1 in light mode, against the
|
|
23
|
+
* 3:1 WCAG 1.4.11 asks of a control's visual boundary (and in light mode
|
|
24
|
+
* `surface-input` equals `surface-app`, so the border is the only boundary);
|
|
25
|
+
* - `placeholder-neutral` is 3.13:1 in light mode, against AA's 4.5:1.
|
|
26
|
+
* `tests/unit/forms/forms-contrast-test.ts` in test-app asserts everything
|
|
27
|
+
* else, and documents these two as the deliberate gaps.
|
|
28
|
+
*/
|
|
2
29
|
declare const label: import("tailwind-variants").TVReturnType<{
|
|
3
30
|
size: {
|
|
4
31
|
sm: {
|
|
@@ -45,7 +72,7 @@ declare const formDescription: import("tailwind-variants").TVReturnType<{
|
|
|
45
72
|
md: "";
|
|
46
73
|
lg: "text-body-sm";
|
|
47
74
|
};
|
|
48
|
-
}, undefined, "text-neutral font-body text-body-2xs pb-1 last:pb-0", {
|
|
75
|
+
}, undefined, "text-neutral-firm font-body text-body-2xs pb-1 last:pb-0", {
|
|
49
76
|
size: {
|
|
50
77
|
sm: "text-body-2xs";
|
|
51
78
|
md: "";
|
|
@@ -61,11 +88,11 @@ declare const formDescription: import("tailwind-variants").TVReturnType<{
|
|
|
61
88
|
declare const formFeedback: import("tailwind-variants").TVReturnType<{
|
|
62
89
|
status: {
|
|
63
90
|
primary: "text-primary";
|
|
64
|
-
secondary: "text-secondary";
|
|
65
|
-
tertiary: "text-tertiary";
|
|
66
|
-
success: "text-success";
|
|
67
|
-
danger: "text-danger";
|
|
68
|
-
warning: "text-warning";
|
|
91
|
+
secondary: "text-secondary-bolder";
|
|
92
|
+
tertiary: "text-tertiary-strong";
|
|
93
|
+
success: "text-success-bolder";
|
|
94
|
+
danger: "text-danger-firm";
|
|
95
|
+
warning: "text-warning-bolder";
|
|
69
96
|
};
|
|
70
97
|
size: {
|
|
71
98
|
sm: "text-body-2xs";
|
|
@@ -75,11 +102,11 @@ declare const formFeedback: import("tailwind-variants").TVReturnType<{
|
|
|
75
102
|
}, undefined, "font-body text-body-2xs pt-1", {
|
|
76
103
|
status: {
|
|
77
104
|
primary: "text-primary";
|
|
78
|
-
secondary: "text-secondary";
|
|
79
|
-
tertiary: "text-tertiary";
|
|
80
|
-
success: "text-success";
|
|
81
|
-
danger: "text-danger";
|
|
82
|
-
warning: "text-warning";
|
|
105
|
+
secondary: "text-secondary-bolder";
|
|
106
|
+
tertiary: "text-tertiary-strong";
|
|
107
|
+
success: "text-success-bolder";
|
|
108
|
+
danger: "text-danger-firm";
|
|
109
|
+
warning: "text-warning-bolder";
|
|
83
110
|
};
|
|
84
111
|
size: {
|
|
85
112
|
sm: "text-body-2xs";
|
|
@@ -89,11 +116,11 @@ declare const formFeedback: import("tailwind-variants").TVReturnType<{
|
|
|
89
116
|
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
90
117
|
status: {
|
|
91
118
|
primary: "text-primary";
|
|
92
|
-
secondary: "text-secondary";
|
|
93
|
-
tertiary: "text-tertiary";
|
|
94
|
-
success: "text-success";
|
|
95
|
-
danger: "text-danger";
|
|
96
|
-
warning: "text-warning";
|
|
119
|
+
secondary: "text-secondary-bolder";
|
|
120
|
+
tertiary: "text-tertiary-strong";
|
|
121
|
+
success: "text-success-bolder";
|
|
122
|
+
danger: "text-danger-firm";
|
|
123
|
+
warning: "text-warning-bolder";
|
|
97
124
|
};
|
|
98
125
|
size: {
|
|
99
126
|
sm: "text-body-2xs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../../src/components/forms/forms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAGjD,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoBT,CAAC;AAEH,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"forms.d.ts","sourceRoot":"","sources":["../../../src/components/forms/forms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAGjD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoBT,CAAC;AAEH,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;cAenB,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;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e,EACf,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,UAAU,EACV,WAAW,EACX,UAAU,EACX,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3321,11 +3321,38 @@ const notificationCard = tv({
|
|
|
3321
3321
|
}
|
|
3322
3322
|
});
|
|
3323
3323
|
|
|
3324
|
+
/**
|
|
3325
|
+
* A note on the colour levels used for text and borders below.
|
|
3326
|
+
*
|
|
3327
|
+
* The `soft` level is a *translucent* fill (10-25% alpha) -- it exists to tint
|
|
3328
|
+
* a surface, and composites to ~1.1-1.5:1 against whatever is behind it. Used
|
|
3329
|
+
* as a border or a text colour it is effectively invisible, which is what the
|
|
3330
|
+
* invalid field state used to be in dark mode. Borders and rings here take an
|
|
3331
|
+
* opaque level instead, and the translucent-halo job is left to `muted`, which
|
|
3332
|
+
* is what `ring-focus` (`--color-primary-muted`) already resolves to.
|
|
3333
|
+
*
|
|
3334
|
+
* For text, the `DEFAULT` level of the tint-shaped categories (`secondary`,
|
|
3335
|
+
* `tertiary`, `success`, `warning`) is a light fill colour, not an ink: in
|
|
3336
|
+
* light mode it lands at 1.3-2.6:1, well under AA. `alert.ts` hit the same
|
|
3337
|
+
* thing first and settled on `bolder` for success/warning, `firm` for danger
|
|
3338
|
+
* and `neutral`, and plain `DEFAULT` for primary; the levels below match it so
|
|
3339
|
+
* that the same status reads the same weight in an Alert and in form feedback.
|
|
3340
|
+
*
|
|
3341
|
+
* Two known failures are deliberately left alone, because changing either one
|
|
3342
|
+
* restyles every field in the library and is a design decision rather than a
|
|
3343
|
+
* bug:
|
|
3344
|
+
* - the resting `border-neutral-soft` is 1.37:1 in light mode, against the
|
|
3345
|
+
* 3:1 WCAG 1.4.11 asks of a control's visual boundary (and in light mode
|
|
3346
|
+
* `surface-input` equals `surface-app`, so the border is the only boundary);
|
|
3347
|
+
* - `placeholder-neutral` is 3.13:1 in light mode, against AA's 4.5:1.
|
|
3348
|
+
* `tests/unit/forms/forms-contrast-test.ts` in test-app asserts everything
|
|
3349
|
+
* else, and documents these two as the deliberate gaps.
|
|
3350
|
+
*/
|
|
3324
3351
|
const label = tv({
|
|
3325
3352
|
slots: {
|
|
3326
3353
|
// label text role (Open Sans semibold, tight leading)
|
|
3327
3354
|
base: 'text-neutral-bolder inline-block font-label text-label-sm pb-2',
|
|
3328
|
-
asterisk: 'text-danger'
|
|
3355
|
+
asterisk: 'text-danger-firm'
|
|
3329
3356
|
},
|
|
3330
3357
|
variants: {
|
|
3331
3358
|
size: {
|
|
@@ -3343,8 +3370,10 @@ const label = tv({
|
|
|
3343
3370
|
}
|
|
3344
3371
|
});
|
|
3345
3372
|
const formDescription = tv({
|
|
3346
|
-
// help/description text — body role
|
|
3347
|
-
|
|
3373
|
+
// help/description text — body role. `text-neutral` (the DEFAULT level) is
|
|
3374
|
+
// only ~3:1 on a light surface; `firm` clears AA in both modes, and is the
|
|
3375
|
+
// same level `alert.ts` uses for its description.
|
|
3376
|
+
base: 'text-neutral-firm font-body text-body-2xs pb-1 last:pb-0',
|
|
3348
3377
|
variants: {
|
|
3349
3378
|
size: {
|
|
3350
3379
|
sm: 'text-body-2xs',
|
|
@@ -3363,12 +3392,15 @@ const formFeedback = tv({
|
|
|
3363
3392
|
// `status`, not `color`: this value also decides whether the message is
|
|
3364
3393
|
// announced assertively. See `isError` in form-feedback.gts.
|
|
3365
3394
|
status: {
|
|
3395
|
+
// Levels, not bare categories: see the note above `label`. Each one is
|
|
3396
|
+
// the lightest level that clears AA against both `surface-app` and
|
|
3397
|
+
// `surface-card` in light *and* dark mode.
|
|
3366
3398
|
primary: 'text-primary',
|
|
3367
|
-
secondary: 'text-secondary',
|
|
3368
|
-
tertiary: 'text-tertiary',
|
|
3369
|
-
success: 'text-success',
|
|
3370
|
-
danger: 'text-danger',
|
|
3371
|
-
warning: 'text-warning'
|
|
3399
|
+
secondary: 'text-secondary-bolder',
|
|
3400
|
+
tertiary: 'text-tertiary-strong',
|
|
3401
|
+
success: 'text-success-bolder',
|
|
3402
|
+
danger: 'text-danger-firm',
|
|
3403
|
+
warning: 'text-warning-bolder'
|
|
3372
3404
|
},
|
|
3373
3405
|
size: {
|
|
3374
3406
|
sm: 'text-body-2xs',
|
|
@@ -3393,7 +3425,9 @@ const input = tv({
|
|
|
3393
3425
|
endContent: 'absolute inset-y-0 right-0 flex items-center',
|
|
3394
3426
|
input: ['appearance-none', 'flex-1', 'w-full', ...fieldShell, 'text-neutral-strong', 'placeholder-neutral',
|
|
3395
3427
|
// body role family; single-line controls keep tight leading (not the body relaxed leading)
|
|
3396
|
-
'font-body text-base text-left', 'leading-tight', 'focus:ring-3', 'focus:ring-focus', 'focus:outline-hidden', 'focus:border-primary
|
|
3428
|
+
'font-body text-base text-left', 'leading-tight', 'focus:ring-3', 'focus:ring-focus', 'focus:outline-hidden', 'focus:border-primary', 'disabled:border-neutral-subtle disabled:text-neutral-soft', 'aria-invalid:border-danger',
|
|
3429
|
+
// The invalid counterpart of `ring-focus`, which is `primary-muted`.
|
|
3430
|
+
'aria-invalid:focus:ring-danger-muted']
|
|
3397
3431
|
},
|
|
3398
3432
|
variants: {
|
|
3399
3433
|
size: {
|
|
@@ -3538,14 +3572,14 @@ const inputOtp = tv({
|
|
|
3538
3572
|
// z-10 keeps the active cell's ring from being clipped by its neighbour.
|
|
3539
3573
|
isActive: {
|
|
3540
3574
|
true: {
|
|
3541
|
-
cell: 'z-10 border-primary
|
|
3575
|
+
cell: 'z-10 border-primary ring-3 ring-focus'
|
|
3542
3576
|
}
|
|
3543
3577
|
},
|
|
3544
|
-
// Mirrors `input`'s `aria-invalid:focus:ring-danger-
|
|
3545
|
-
// cell must ring red, not keep the neutral focus ring.
|
|
3578
|
+
// Mirrors `input`'s `aria-invalid:focus:ring-danger-muted`: a focused
|
|
3579
|
+
// invalid cell must ring red, not keep the neutral focus ring.
|
|
3546
3580
|
isInvalid: {
|
|
3547
3581
|
true: {
|
|
3548
|
-
cell: 'border-danger
|
|
3582
|
+
cell: 'border-danger ring-danger-muted'
|
|
3549
3583
|
}
|
|
3550
3584
|
},
|
|
3551
3585
|
isDisabled: {
|
|
@@ -3671,7 +3705,7 @@ const select = tv({
|
|
|
3671
3705
|
// `aria-invalid:` and `disabled:` only match the element carrying them.
|
|
3672
3706
|
hasChips: {
|
|
3673
3707
|
true: {
|
|
3674
|
-
chipsField: [...fieldShell, 'flex', 'flex-wrap', 'items-center', 'gap-1', 'w-full', 'cursor-default', 'focus-within:ring-3', 'focus-within:ring-focus', 'focus-within:border-primary
|
|
3708
|
+
chipsField: [...fieldShell, 'flex', 'flex-wrap', 'items-center', 'gap-1', 'w-full', 'cursor-default', 'focus-within:ring-3', 'focus-within:ring-focus', 'focus-within:border-primary', 'data-[invalid=true]:border-danger', 'data-[invalid=true]:focus-within:ring-danger-muted', 'data-[disabled=true]:border-neutral-subtle', 'data-[disabled=true]:text-neutral-soft']
|
|
3675
3709
|
},
|
|
3676
3710
|
false: {
|
|
3677
3711
|
chipsField: 'flex w-full min-w-0'
|