@leitware/composables 2.0.0 → 3.1.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/README.md +16 -0
- package/dist/presets/brutalist.css +16 -17
- package/dist/presets/default.css +11 -13
- package/dist/presets/editorial-grid.css +12 -13
- package/dist/presets/kumo.css +14 -20
- package/dist/presets/signal-pop.css +14 -26
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +20 -0
- package/package.json +13 -12
- package/rules/composables.md +24 -21
- package/skills/use-composables/references/public-api.md +2 -2
- package/skills/use-composables/references/semantic-utilities.md +5 -0
- package/src/_internal/accordion.tsx +10 -10
- package/src/_internal/ai-elements/reasoning.tsx +2 -0
- package/src/_internal/alert-dialog.tsx +3 -3
- package/src/_internal/alert.tsx +9 -7
- package/src/_internal/avatar.tsx +25 -14
- package/src/_internal/badge.tsx +2 -1
- package/src/_internal/bubble.tsx +2 -2
- package/src/_internal/button.tsx +16 -8
- package/src/_internal/calendar.tsx +3 -3
- package/src/_internal/card.tsx +53 -17
- package/src/_internal/checkbox.tsx +2 -2
- package/src/_internal/combobox.tsx +2 -2
- package/src/_internal/dialog.tsx +29 -9
- package/src/_internal/divider.tsx +14 -16
- package/src/_internal/dropdown-menu.tsx +4 -4
- package/src/_internal/empty.tsx +6 -3
- package/src/_internal/field.tsx +11 -7
- package/src/_internal/hover-card.tsx +1 -1
- package/src/_internal/input-group.tsx +17 -12
- package/src/_internal/input.tsx +33 -4
- package/src/_internal/item.tsx +2 -2
- package/src/_internal/label.tsx +1 -1
- package/src/_internal/message.tsx +1 -1
- package/src/_internal/native-select.tsx +1 -1
- package/src/_internal/popover.tsx +9 -3
- package/src/_internal/progress.tsx +37 -7
- package/src/_internal/radio-group.tsx +39 -4
- package/src/_internal/select.tsx +2 -2
- package/src/_internal/separator.tsx +1 -1
- package/src/_internal/sheet.tsx +9 -3
- package/src/_internal/sidebar.tsx +0 -35
- package/src/_internal/skeleton.tsx +26 -3
- package/src/_internal/slider.tsx +9 -7
- package/src/_internal/sonner.tsx +4 -4
- package/src/_internal/spinner.tsx +43 -3
- package/src/_internal/switch.tsx +2 -2
- package/src/_internal/table.tsx +20 -5
- package/src/_internal/tabs.tsx +4 -1
- package/src/_internal/textarea.tsx +1 -1
- package/src/_internal/toggle.tsx +1 -1
- package/src/_internal/tooltip.tsx +53 -8
- package/src/_internal/typography.tsx +4 -2
- package/src/index.ts +25 -1
- package/src/lib/utils.ts +2 -2
- package/src/opinionated/alert.tsx +8 -10
- package/src/opinionated/avatar.tsx +2 -2
- package/src/opinionated/button.tsx +13 -3
- package/src/opinionated/command.tsx +23 -0
- package/src/opinionated/data-grid.tsx +125 -0
- package/src/opinionated/dialog.tsx +10 -1
- package/src/opinionated/form-calendar-popover.tsx +5 -10
- package/src/opinionated/form-checkbox.tsx +2 -2
- package/src/opinionated/form-date-of-birth.tsx +12 -8
- package/src/opinionated/form-input-group.tsx +1 -1
- package/src/opinionated/form-radiogroup.tsx +24 -7
- package/src/opinionated/form-switch.tsx +7 -6
- package/src/opinionated/progress.tsx +7 -2
- package/src/opinionated/select.tsx +4 -1
- package/src/opinionated/sidebar.tsx +0 -1
- package/src/opinionated/skeleton.tsx +3 -13
- package/src/opinionated/spinner.tsx +2 -0
- package/src/opinionated/token-config-panel/spacing-editor.tsx +21 -3
- package/src/opinionated/tooltip.tsx +20 -2
- package/src/styles/presets/brutalist.css +16 -17
- package/src/styles/presets/default.css +11 -13
- package/src/styles/presets/editorial-grid.css +12 -13
- package/src/styles/presets/kumo.css +14 -20
- package/src/styles/presets/signal-pop.css +14 -26
- package/src/styles/presets-data/brutalist.ts +16 -19
- package/src/styles/presets-data/default.ts +11 -15
- package/src/styles/presets-data/editorial-grid.ts +12 -6
- package/src/styles/presets-data/kumo.ts +12 -6
- package/src/styles/presets-data/signal-pop.ts +14 -30
- package/src/styles/tokens/components.css +64 -20
- package/src/styles/tokens/registry.ts +33 -0
- package/src/styles/tokens/semantic-utilities.css +20 -0
- package/src/styles/tokens/semantic.css +10 -0
- package/src/styles/tokens/tailwind-color-adapter.css +3 -0
- package/src/styles/tokens/tailwind-public-utilities.css +20 -0
|
@@ -110,8 +110,8 @@ function FormDateOfBirth({
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
const inputClassName = cn(
|
|
113
|
-
'text-center tabular-nums',
|
|
114
|
-
hasError && 'aria-invalid:border-
|
|
113
|
+
'text-center tabular-nums min-w-0',
|
|
114
|
+
hasError && 'aria-invalid:border-fill-critical aria-invalid:ring-fill-critical/20',
|
|
115
115
|
)
|
|
116
116
|
|
|
117
117
|
return (
|
|
@@ -124,7 +124,7 @@ function FormDateOfBirth({
|
|
|
124
124
|
)}
|
|
125
125
|
<FieldContent>
|
|
126
126
|
<fieldset
|
|
127
|
-
className="flex items-center gap-
|
|
127
|
+
className="flex items-center gap-2 border-none p-0 m-0 min-w-0"
|
|
128
128
|
aria-label={ariaLabel || label || 'Date of birth'}
|
|
129
129
|
aria-labelledby={ariaLabelledBy}
|
|
130
130
|
>
|
|
@@ -143,10 +143,12 @@ function FormDateOfBirth({
|
|
|
143
143
|
aria-invalid={hasError}
|
|
144
144
|
aria-required={required}
|
|
145
145
|
aria-label="Day"
|
|
146
|
-
className={cn(inputClassName, 'w-
|
|
146
|
+
className={cn(inputClassName, 'w-[3.75em]')}
|
|
147
147
|
maxLength={2}
|
|
148
148
|
/>
|
|
149
|
-
<span className="text-muted-foreground text-sm"
|
|
149
|
+
<span className="text-muted-foreground text-(length:--control-font-size) leading-(--text-sm--line-height)">
|
|
150
|
+
/
|
|
151
|
+
</span>
|
|
150
152
|
<Input
|
|
151
153
|
ref={monthRef}
|
|
152
154
|
id={`${fieldId}-month`}
|
|
@@ -161,10 +163,12 @@ function FormDateOfBirth({
|
|
|
161
163
|
required={required}
|
|
162
164
|
aria-invalid={hasError}
|
|
163
165
|
aria-label="Month"
|
|
164
|
-
className={cn(inputClassName, 'w-
|
|
166
|
+
className={cn(inputClassName, 'w-[3.75em]')}
|
|
165
167
|
maxLength={2}
|
|
166
168
|
/>
|
|
167
|
-
<span className="text-muted-foreground text-sm"
|
|
169
|
+
<span className="text-muted-foreground text-(length:--control-font-size) leading-(--text-sm--line-height)">
|
|
170
|
+
/
|
|
171
|
+
</span>
|
|
168
172
|
<Input
|
|
169
173
|
ref={yearRef}
|
|
170
174
|
id={`${fieldId}-year`}
|
|
@@ -179,7 +183,7 @@ function FormDateOfBirth({
|
|
|
179
183
|
required={required}
|
|
180
184
|
aria-invalid={hasError}
|
|
181
185
|
aria-label="Year"
|
|
182
|
-
className={cn(inputClassName, 'w-
|
|
186
|
+
className={cn(inputClassName, 'w-[5em]')}
|
|
183
187
|
maxLength={4}
|
|
184
188
|
/>
|
|
185
189
|
</fieldset>
|
|
@@ -120,7 +120,7 @@ function FormInputGroup({
|
|
|
120
120
|
</FieldLabel>
|
|
121
121
|
)}
|
|
122
122
|
<FieldContent>
|
|
123
|
-
<InputGroup data-invalid={hasError}>
|
|
123
|
+
<InputGroup data-invalid={hasError} data-disabled={disabled || undefined}>
|
|
124
124
|
{startAddon && (
|
|
125
125
|
<InputGroupAddon align="inline-start" {...startAddonProps}>
|
|
126
126
|
{startAddon}
|
|
@@ -2,12 +2,20 @@ import type { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-gro
|
|
|
2
2
|
import type { VariantProps } from 'class-variance-authority'
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import { Field, FieldContent, FieldDescription, FieldError, FieldLabel } from '../_internal/field'
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import {
|
|
6
|
+
RadioGroup,
|
|
7
|
+
RadioGroupItem,
|
|
8
|
+
RadioGroupOption,
|
|
9
|
+
type radioGroupOptionVariants,
|
|
10
|
+
} from '../_internal/radio-group'
|
|
7
11
|
|
|
8
12
|
export interface FormRadioGroupOption {
|
|
9
13
|
label: string
|
|
10
14
|
value: string
|
|
15
|
+
/** Supporting copy under the label. */
|
|
16
|
+
description?: string
|
|
17
|
+
/** Leading icon or illustration. */
|
|
18
|
+
icon?: React.ReactNode
|
|
11
19
|
disabled?: boolean
|
|
12
20
|
}
|
|
13
21
|
|
|
@@ -24,6 +32,8 @@ export interface FormRadioGroupProps extends Omit<
|
|
|
24
32
|
disabled?: boolean
|
|
25
33
|
required?: boolean
|
|
26
34
|
orientation?: VariantProps<typeof Field>['orientation']
|
|
35
|
+
/** `card` renders each option as a selectable tile. */
|
|
36
|
+
variant?: VariantProps<typeof radioGroupOptionVariants>['variant']
|
|
27
37
|
className?: string
|
|
28
38
|
// Additional props
|
|
29
39
|
id?: string
|
|
@@ -40,6 +50,7 @@ function FormRadioGroup({
|
|
|
40
50
|
disabled = false,
|
|
41
51
|
required = false,
|
|
42
52
|
orientation = 'vertical',
|
|
53
|
+
variant = 'default',
|
|
43
54
|
className,
|
|
44
55
|
id,
|
|
45
56
|
name,
|
|
@@ -89,17 +100,23 @@ function FormRadioGroup({
|
|
|
89
100
|
{options.map((option) => {
|
|
90
101
|
const optionId = `${radioGroupId}-${option.value}`
|
|
91
102
|
return (
|
|
92
|
-
<
|
|
103
|
+
<RadioGroupOption key={option.value} htmlFor={optionId} variant={variant}>
|
|
93
104
|
<RadioGroupItem
|
|
94
105
|
value={option.value}
|
|
95
106
|
id={optionId}
|
|
96
107
|
disabled={disabled || option.disabled}
|
|
97
108
|
aria-invalid={hasError}
|
|
98
109
|
/>
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
110
|
+
{option.icon}
|
|
111
|
+
<span className="flex flex-col gap-0.5">
|
|
112
|
+
<span className="font-medium">{option.label}</span>
|
|
113
|
+
{option.description && (
|
|
114
|
+
<span className="text-muted-foreground text-xs/relaxed">
|
|
115
|
+
{option.description}
|
|
116
|
+
</span>
|
|
117
|
+
)}
|
|
118
|
+
</span>
|
|
119
|
+
</RadioGroupOption>
|
|
103
120
|
)
|
|
104
121
|
})}
|
|
105
122
|
</RadioGroup>
|
|
@@ -28,7 +28,7 @@ export interface FormSwitchProps extends Omit<
|
|
|
28
28
|
description?: string
|
|
29
29
|
/** Error message(s). Accepts a string, array, or react-hook-form error array. */
|
|
30
30
|
error?: string | string[] | Array<{ message?: string } | undefined>
|
|
31
|
-
/** Controlled checked state.
|
|
31
|
+
/** Controlled checked state. Omit (or use `defaultChecked`) for uncontrolled. */
|
|
32
32
|
checked?: boolean
|
|
33
33
|
/** Called when the user toggles the switch. */
|
|
34
34
|
onCheckedChange?: (checked: boolean) => void
|
|
@@ -51,7 +51,7 @@ function FormSwitch({
|
|
|
51
51
|
label,
|
|
52
52
|
description,
|
|
53
53
|
error,
|
|
54
|
-
checked
|
|
54
|
+
checked,
|
|
55
55
|
onCheckedChange,
|
|
56
56
|
disabled = false,
|
|
57
57
|
required = false,
|
|
@@ -81,10 +81,11 @@ function FormSwitch({
|
|
|
81
81
|
return (
|
|
82
82
|
<Field orientation={orientation} className={className} data-invalid={hasError}>
|
|
83
83
|
<FieldContent
|
|
84
|
-
className={orientation === 'horizontal' ? 'flex-row items-
|
|
84
|
+
className={orientation === 'horizontal' ? 'flex-row items-start gap-2' : undefined}
|
|
85
85
|
>
|
|
86
|
-
{
|
|
87
|
-
|
|
86
|
+
{/* Text column: label, assistive text and error stack beside the switch. */}
|
|
87
|
+
{(hasLabelOrDescription || hasError) && (
|
|
88
|
+
<div className="flex flex-col gap-1.5 flex-1">
|
|
88
89
|
{label && (
|
|
89
90
|
<FieldLabel htmlFor={switchId}>
|
|
90
91
|
{label}
|
|
@@ -92,6 +93,7 @@ function FormSwitch({
|
|
|
92
93
|
</FieldLabel>
|
|
93
94
|
)}
|
|
94
95
|
{description && <FieldDescription>{description}</FieldDescription>}
|
|
96
|
+
{hasError && <FieldError errors={errorArray} />}
|
|
95
97
|
</div>
|
|
96
98
|
)}
|
|
97
99
|
<Switch
|
|
@@ -108,7 +110,6 @@ function FormSwitch({
|
|
|
108
110
|
size={size}
|
|
109
111
|
{...switchProps}
|
|
110
112
|
/>
|
|
111
|
-
{hasError && <FieldError errors={errorArray} />}
|
|
112
113
|
</FieldContent>
|
|
113
114
|
</Field>
|
|
114
115
|
)
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority'
|
|
2
|
+
|
|
1
3
|
import {
|
|
2
4
|
ProgressIndicator,
|
|
3
5
|
ProgressLabel,
|
|
4
6
|
Progress as ProgressPrimitive,
|
|
7
|
+
progressIndicatorVariants,
|
|
5
8
|
ProgressTrack,
|
|
6
9
|
ProgressValue,
|
|
7
10
|
} from '../_internal/progress'
|
|
@@ -9,6 +12,8 @@ import {
|
|
|
9
12
|
export interface ProgressProps {
|
|
10
13
|
/** Progress value (0-100) */
|
|
11
14
|
value: number
|
|
15
|
+
/** Visual style variant. @default 'default' */
|
|
16
|
+
variant?: VariantProps<typeof progressIndicatorVariants>['variant']
|
|
12
17
|
/** Optional label text */
|
|
13
18
|
label?: string
|
|
14
19
|
/** Whether to display the numeric value */
|
|
@@ -27,7 +32,7 @@ export interface ProgressProps {
|
|
|
27
32
|
* <Progress value={100} label="Complete" />
|
|
28
33
|
* ```
|
|
29
34
|
*/
|
|
30
|
-
function Progress({ value, label, showValue = false, className }: ProgressProps) {
|
|
35
|
+
function Progress({ value, variant, label, showValue = false, className }: ProgressProps) {
|
|
31
36
|
return (
|
|
32
37
|
<ProgressPrimitive value={value} className={className}>
|
|
33
38
|
{(label || showValue) && (
|
|
@@ -37,7 +42,7 @@ function Progress({ value, label, showValue = false, className }: ProgressProps)
|
|
|
37
42
|
</div>
|
|
38
43
|
)}
|
|
39
44
|
<ProgressTrack>
|
|
40
|
-
<ProgressIndicator />
|
|
45
|
+
<ProgressIndicator variant={variant} />
|
|
41
46
|
</ProgressTrack>
|
|
42
47
|
</ProgressPrimitive>
|
|
43
48
|
)
|
|
@@ -86,12 +86,15 @@ function Select({
|
|
|
86
86
|
)
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
// Re-export sub-components for advanced usage
|
|
89
|
+
// Re-export sub-components for advanced usage. SelectRoot is the unstyled
|
|
90
|
+
// Base UI root - compose it with the parts below when the options-array
|
|
91
|
+
// Select API can't express the trigger content (e.g. a labelled null state).
|
|
90
92
|
export {
|
|
91
93
|
SelectContent,
|
|
92
94
|
SelectGroup,
|
|
93
95
|
SelectItem,
|
|
94
96
|
SelectLabel,
|
|
97
|
+
SelectPrimitive as SelectRoot,
|
|
95
98
|
SelectScrollDownButton,
|
|
96
99
|
SelectScrollUpButton,
|
|
97
100
|
SelectSeparator,
|
|
@@ -52,18 +52,6 @@ function Skeleton({
|
|
|
52
52
|
style,
|
|
53
53
|
...props
|
|
54
54
|
}: SkeletonProps) {
|
|
55
|
-
const sizeStyles = {
|
|
56
|
-
sm: 'h-4',
|
|
57
|
-
md: 'h-6',
|
|
58
|
-
lg: 'h-8',
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const variantStyles = {
|
|
62
|
-
rectangle: 'rounded-md',
|
|
63
|
-
circle: 'rounded-full',
|
|
64
|
-
text: 'rounded',
|
|
65
|
-
}
|
|
66
|
-
|
|
67
55
|
const computedStyle: React.CSSProperties = {
|
|
68
56
|
...style,
|
|
69
57
|
...(width !== undefined && {
|
|
@@ -76,7 +64,9 @@ function Skeleton({
|
|
|
76
64
|
|
|
77
65
|
return (
|
|
78
66
|
<SkeletonPrimitive
|
|
79
|
-
|
|
67
|
+
variant={variant}
|
|
68
|
+
size={height === undefined ? size : undefined}
|
|
69
|
+
className={className}
|
|
80
70
|
style={computedStyle}
|
|
81
71
|
{...props}
|
|
82
72
|
/>
|
|
@@ -96,13 +96,31 @@ export const controlShapeTokens: FactorToken[] = [
|
|
|
96
96
|
|
|
97
97
|
export const controlSizeTokens: FactorToken[] = [
|
|
98
98
|
{
|
|
99
|
-
cssVar: '--
|
|
100
|
-
label: '
|
|
99
|
+
cssVar: '--control-size-sm',
|
|
100
|
+
label: 'Control height (sm)',
|
|
101
|
+
base: '--spacing',
|
|
102
|
+
defaultFactor: 6,
|
|
103
|
+
min: 4,
|
|
104
|
+
max: 14,
|
|
105
|
+
step: 1,
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
cssVar: '--control-size-md',
|
|
109
|
+
label: 'Control height (md)',
|
|
101
110
|
base: '--spacing',
|
|
102
111
|
defaultFactor: 7,
|
|
103
112
|
min: 5,
|
|
104
113
|
max: 14,
|
|
105
|
-
step:
|
|
114
|
+
step: 1,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
cssVar: '--control-size-lg',
|
|
118
|
+
label: 'Control height (lg)',
|
|
119
|
+
base: '--spacing',
|
|
120
|
+
defaultFactor: 8,
|
|
121
|
+
min: 6,
|
|
122
|
+
max: 16,
|
|
123
|
+
step: 1,
|
|
106
124
|
},
|
|
107
125
|
{
|
|
108
126
|
cssVar: '--card-padding',
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type { Tooltip as TooltipPrimitiveBase } from '@base-ui/react/tooltip'
|
|
2
|
+
import type { VariantProps } from 'class-variance-authority'
|
|
2
3
|
import type * as React from 'react'
|
|
3
4
|
|
|
4
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
TooltipContent,
|
|
7
|
+
Tooltip as TooltipPrimitive,
|
|
8
|
+
TooltipTrigger,
|
|
9
|
+
type tooltipContentVariants,
|
|
10
|
+
type tooltipTriggerVariants,
|
|
11
|
+
} from '../_internal/tooltip'
|
|
5
12
|
|
|
6
13
|
/**
|
|
7
14
|
* Props for the opinionated Tooltip component.
|
|
@@ -15,11 +22,19 @@ import { TooltipContent, Tooltip as TooltipPrimitive, TooltipTrigger } from '../
|
|
|
15
22
|
* <Tooltip content="Requires admin access" side="right">
|
|
16
23
|
* <span>Restricted action</span>
|
|
17
24
|
* </Tooltip>
|
|
25
|
+
*
|
|
26
|
+
* <Tooltip content="Your excess is what you pay towards a claim" variant="inverse" triggerVariant="underline">
|
|
27
|
+
* excess
|
|
28
|
+
* </Tooltip>
|
|
18
29
|
* ```
|
|
19
30
|
*/
|
|
20
31
|
export interface TooltipProps extends Omit<TooltipPrimitiveBase.Root.Props, 'children'> {
|
|
21
32
|
/** Content shown in the tooltip popup. */
|
|
22
33
|
content: React.ReactNode
|
|
34
|
+
/** Popup colour. `default` follows the preset. @default 'default' */
|
|
35
|
+
variant?: VariantProps<typeof tooltipContentVariants>['variant']
|
|
36
|
+
/** `underline` marks inline text that has a tooltip. @default 'default' */
|
|
37
|
+
triggerVariant?: VariantProps<typeof tooltipTriggerVariants>['variant']
|
|
23
38
|
className?: string
|
|
24
39
|
/** Which side of the trigger the tooltip appears on. @default 'top' */
|
|
25
40
|
side?: 'top' | 'bottom' | 'left' | 'right'
|
|
@@ -32,6 +47,8 @@ export interface TooltipProps extends Omit<TooltipPrimitiveBase.Root.Props, 'chi
|
|
|
32
47
|
|
|
33
48
|
function Tooltip({
|
|
34
49
|
content,
|
|
50
|
+
variant,
|
|
51
|
+
triggerVariant,
|
|
35
52
|
className,
|
|
36
53
|
side = 'top',
|
|
37
54
|
sideOffset = 4,
|
|
@@ -42,9 +59,10 @@ function Tooltip({
|
|
|
42
59
|
}: TooltipProps) {
|
|
43
60
|
return (
|
|
44
61
|
<TooltipPrimitive {...tooltipProps}>
|
|
45
|
-
<TooltipTrigger>{children}</TooltipTrigger>
|
|
62
|
+
<TooltipTrigger variant={triggerVariant}>{children}</TooltipTrigger>
|
|
46
63
|
<TooltipContent
|
|
47
64
|
className={className}
|
|
65
|
+
variant={variant}
|
|
48
66
|
side={side}
|
|
49
67
|
sideOffset={sideOffset}
|
|
50
68
|
align={align}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
--bg-surface-popover: #ffffffff;
|
|
18
18
|
--bg-surface-accent: #f0f0f0ff;
|
|
19
19
|
--bg-surface-field: #0a0a0aff;
|
|
20
|
+
--bg-surface-input: #0a0a0a33;
|
|
20
21
|
--bg-surface-info: #e8f0f8ff;
|
|
21
22
|
--bg-surface-success: #e8f4e8ff;
|
|
22
23
|
--bg-surface-warning: #fbf4e0ff;
|
|
@@ -33,6 +34,8 @@
|
|
|
33
34
|
--bg-surface-hover: #f0f0f0ff;
|
|
34
35
|
--bg-fill-default: #ffffffff;
|
|
35
36
|
--bg-fill-primary: #0a0a0aff;
|
|
37
|
+
--bg-fill-primary-hover: #0a0a0aff;
|
|
38
|
+
--bg-fill-selected: #0a0a0aff;
|
|
36
39
|
--bg-fill-brand: #cc2200ff;
|
|
37
40
|
--bg-fill-brand-2: #111111ff;
|
|
38
41
|
--bg-fill-brand-3: #ffd700ff;
|
|
@@ -45,6 +48,7 @@
|
|
|
45
48
|
--bg-fill-emphasis: #0a0a0aff;
|
|
46
49
|
--bg-fill-transparent: #00000010;
|
|
47
50
|
--bg-fill-secondary: #f0f0f0ff;
|
|
51
|
+
--bg-fill-secondary-hover: #f0f0f0ff;
|
|
48
52
|
--bg-fill-secondary-inverse: #ffffffff;
|
|
49
53
|
--text-default: #0a0a0aff;
|
|
50
54
|
--text-secondary: #2e2e2eff;
|
|
@@ -52,6 +56,7 @@
|
|
|
52
56
|
--text-disabled: #aaaaaaff;
|
|
53
57
|
--text-inverse: #f8f8f8ff;
|
|
54
58
|
--text-on-fill-primary: #ffffffff;
|
|
59
|
+
--text-on-fill-selected: #ffffffff;
|
|
55
60
|
--text-on-fill-brand: #ffffffff;
|
|
56
61
|
--text-on-fill-secondary: #0a0a0aff;
|
|
57
62
|
--text-on-surface-accent: #0a0a0aff;
|
|
@@ -131,12 +136,13 @@
|
|
|
131
136
|
--font-sans: 'JetBrains Mono Variable', monospace;
|
|
132
137
|
--font-heading: 'Space Grotesk Variable', 'Arial', sans-serif;
|
|
133
138
|
--font-brand: 'Space Grotesk Variable', 'Arial', sans-serif;
|
|
134
|
-
--button-radius:
|
|
135
|
-
--card-radius:
|
|
139
|
+
--button-radius: var(--radius);
|
|
140
|
+
--card-radius: var(--radius);
|
|
136
141
|
--card-padding: calc(var(--spacing) * 6);
|
|
137
|
-
--input-radius:
|
|
138
|
-
--
|
|
139
|
-
--
|
|
142
|
+
--input-radius: var(--radius);
|
|
143
|
+
--control-size-md: calc(var(--spacing) * 10);
|
|
144
|
+
--button-height: calc(var(--spacing) * 7);
|
|
145
|
+
--badge-radius: var(--radius);
|
|
140
146
|
--motion-duration-fast: 0ms;
|
|
141
147
|
--motion-duration-normal: 0ms;
|
|
142
148
|
--motion-duration-slow: 50ms;
|
|
@@ -154,18 +160,6 @@
|
|
|
154
160
|
--hover-transform: none;
|
|
155
161
|
--hover-shadow: none;
|
|
156
162
|
--active-scale: 0.98;
|
|
157
|
-
--heading-font-weight: 700;
|
|
158
|
-
--heading-letter-spacing: var(--tracking-tight);
|
|
159
|
-
--body-letter-spacing: var(--tracking-normal);
|
|
160
|
-
--hero-font-size: var(--text-6xl);
|
|
161
|
-
--hero-font-weight: 700;
|
|
162
|
-
--hero-letter-spacing: var(--tracking-tight);
|
|
163
|
-
--section-title-size: var(--text-3xl);
|
|
164
|
-
--section-title-font-weight: 700;
|
|
165
|
-
--section-title-letter-spacing: var(--tracking-tight);
|
|
166
|
-
--card-title-size: var(--text-base);
|
|
167
|
-
--card-title-font-weight: 700;
|
|
168
|
-
--card-title-letter-spacing: var(--tracking-normal);
|
|
169
163
|
--background: var(--bg-default);
|
|
170
164
|
--foreground: var(--text-default);
|
|
171
165
|
--card: var(--bg-surface-default);
|
|
@@ -194,6 +188,7 @@
|
|
|
194
188
|
--bg-surface-popover: #141414ff;
|
|
195
189
|
--bg-surface-accent: #1a1a1aff;
|
|
196
190
|
--bg-surface-field: #c0c0c0ff;
|
|
191
|
+
--bg-surface-input: #c0c0c04d;
|
|
197
192
|
--bg-surface-info: #0a1828ff;
|
|
198
193
|
--bg-surface-success: #0a180aff;
|
|
199
194
|
--bg-surface-warning: #1e1406ff;
|
|
@@ -210,6 +205,8 @@
|
|
|
210
205
|
--bg-surface-hover: #1a1a1aff;
|
|
211
206
|
--bg-fill-default: #0a0a0aff;
|
|
212
207
|
--bg-fill-primary: #f0f0f0ff;
|
|
208
|
+
--bg-fill-primary-hover: #f0f0f0ff;
|
|
209
|
+
--bg-fill-selected: #f0f0f0ff;
|
|
213
210
|
--bg-fill-brand: #ff3322ff;
|
|
214
211
|
--bg-fill-brand-2: #f0f0f0ff;
|
|
215
212
|
--bg-fill-brand-3: #ffe033ff;
|
|
@@ -222,6 +219,7 @@
|
|
|
222
219
|
--bg-fill-emphasis: #f0f0f0ff;
|
|
223
220
|
--bg-fill-transparent: #ffffff10;
|
|
224
221
|
--bg-fill-secondary: #1a1a1aff;
|
|
222
|
+
--bg-fill-secondary-hover: #1a1a1aff;
|
|
225
223
|
--bg-fill-secondary-inverse: #0a0a0aff;
|
|
226
224
|
--text-default: #f0f0f0ff;
|
|
227
225
|
--text-secondary: #c0c0c0ff;
|
|
@@ -229,6 +227,7 @@
|
|
|
229
227
|
--text-disabled: #444444ff;
|
|
230
228
|
--text-inverse: #0a0a0aff;
|
|
231
229
|
--text-on-fill-primary: #0a0a0aff;
|
|
230
|
+
--text-on-fill-selected: #0a0a0aff;
|
|
232
231
|
--text-on-fill-brand: #000000ff;
|
|
233
232
|
--text-on-fill-secondary: #f0f0f0ff;
|
|
234
233
|
--text-on-surface-accent: #f0f0f0ff;
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
--bg-surface-popover: #f9f9f8ff;
|
|
18
18
|
--bg-surface-accent: #f1f0efff;
|
|
19
19
|
--bg-surface-field: #dad9d6ff;
|
|
20
|
+
--bg-surface-input: #dad9d633;
|
|
20
21
|
--bg-surface-info: #f1fafdff;
|
|
21
22
|
--bg-surface-success: #f5fbf5ff;
|
|
22
23
|
--bg-surface-warning: #fff7edff;
|
|
@@ -33,6 +34,8 @@
|
|
|
33
34
|
--bg-surface-hover: #f1f0efff;
|
|
34
35
|
--bg-fill-default: #f9f9f8ff;
|
|
35
36
|
--bg-fill-primary: #21201cff;
|
|
37
|
+
--bg-fill-primary-hover: #21201cff;
|
|
38
|
+
--bg-fill-selected: #21201cff;
|
|
36
39
|
--bg-fill-brand: #d6409fff;
|
|
37
40
|
--bg-fill-brand-2: #12a594ff;
|
|
38
41
|
--bg-fill-brand-3: #ffc53dff;
|
|
@@ -45,6 +48,7 @@
|
|
|
45
48
|
--bg-fill-emphasis: #0090ffff;
|
|
46
49
|
--bg-fill-transparent: #0000000d;
|
|
47
50
|
--bg-fill-secondary: #f1f0efff;
|
|
51
|
+
--bg-fill-secondary-hover: #f1f0efff;
|
|
48
52
|
--bg-fill-secondary-inverse: #ffffffff;
|
|
49
53
|
--text-default: #21201cff;
|
|
50
54
|
--text-secondary: #63635eff;
|
|
@@ -52,6 +56,7 @@
|
|
|
52
56
|
--text-disabled: #cfcecaff;
|
|
53
57
|
--text-inverse: #ffffffff;
|
|
54
58
|
--text-on-fill-primary: #ffffffff;
|
|
59
|
+
--text-on-fill-selected: #ffffffff;
|
|
55
60
|
--text-on-fill-brand: #000000ff;
|
|
56
61
|
--text-on-fill-secondary: #21201cff;
|
|
57
62
|
--text-on-surface-accent: #21201cff;
|
|
@@ -135,7 +140,7 @@
|
|
|
135
140
|
--card-radius: var(--radius-lg);
|
|
136
141
|
--card-padding: calc(var(--spacing) * 4);
|
|
137
142
|
--input-radius: var(--radius-md);
|
|
138
|
-
--
|
|
143
|
+
--control-size-md: calc(var(--spacing) * 7);
|
|
139
144
|
--badge-radius: var(--radius-4xl);
|
|
140
145
|
--motion-duration-fast: 100ms;
|
|
141
146
|
--motion-duration-normal: 200ms;
|
|
@@ -154,18 +159,6 @@
|
|
|
154
159
|
--hover-transform: none;
|
|
155
160
|
--hover-shadow: var(--shadow-md);
|
|
156
161
|
--active-scale: 0.98;
|
|
157
|
-
--heading-font-weight: 700;
|
|
158
|
-
--heading-letter-spacing: var(--tracking-tight);
|
|
159
|
-
--body-letter-spacing: var(--tracking-normal);
|
|
160
|
-
--hero-font-size: var(--text-5xl);
|
|
161
|
-
--hero-font-weight: 700;
|
|
162
|
-
--hero-letter-spacing: var(--tracking-tight);
|
|
163
|
-
--section-title-size: var(--text-3xl);
|
|
164
|
-
--section-title-font-weight: 700;
|
|
165
|
-
--section-title-letter-spacing: var(--tracking-tight);
|
|
166
|
-
--card-title-size: var(--text-lg);
|
|
167
|
-
--card-title-font-weight: 600;
|
|
168
|
-
--card-title-letter-spacing: var(--tracking-normal);
|
|
169
162
|
--background: var(--bg-default);
|
|
170
163
|
--foreground: var(--text-default);
|
|
171
164
|
--card: var(--bg-surface-default);
|
|
@@ -194,6 +187,7 @@
|
|
|
194
187
|
--bg-surface-popover: #191918ff;
|
|
195
188
|
--bg-surface-accent: #222221ff;
|
|
196
189
|
--bg-surface-field: #494844ff;
|
|
190
|
+
--bg-surface-input: #4948444d;
|
|
197
191
|
--bg-surface-info: #111a27ff;
|
|
198
192
|
--bg-surface-success: #141a15ff;
|
|
199
193
|
--bg-surface-warning: #1e160fff;
|
|
@@ -210,6 +204,8 @@
|
|
|
210
204
|
--bg-surface-hover: #222221ff;
|
|
211
205
|
--bg-fill-default: #191918ff;
|
|
212
206
|
--bg-fill-primary: #eeeeecff;
|
|
207
|
+
--bg-fill-primary-hover: #eeeeecff;
|
|
208
|
+
--bg-fill-selected: #eeeeecff;
|
|
213
209
|
--bg-fill-brand: #d6409fff;
|
|
214
210
|
--bg-fill-brand-2: #12a594ff;
|
|
215
211
|
--bg-fill-brand-3: #ffc53dff;
|
|
@@ -222,6 +218,7 @@
|
|
|
222
218
|
--bg-fill-emphasis: #0090ffff;
|
|
223
219
|
--bg-fill-transparent: #0000000d;
|
|
224
220
|
--bg-fill-secondary: #222221ff;
|
|
221
|
+
--bg-fill-secondary-hover: #222221ff;
|
|
225
222
|
--bg-fill-secondary-inverse: #000000ff;
|
|
226
223
|
--text-default: #eeeeecff;
|
|
227
224
|
--text-secondary: #b5b3adff;
|
|
@@ -229,6 +226,7 @@
|
|
|
229
226
|
--text-disabled: #494844ff;
|
|
230
227
|
--text-inverse: #000000ff;
|
|
231
228
|
--text-on-fill-primary: #000000ff;
|
|
229
|
+
--text-on-fill-selected: #000000ff;
|
|
232
230
|
--text-on-fill-brand: #000000ff;
|
|
233
231
|
--text-on-fill-secondary: #eeeeecff;
|
|
234
232
|
--text-on-surface-accent: #eeeeecff;
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
--bg-surface-popover: #ffffff;
|
|
18
18
|
--bg-surface-accent: #efefeb;
|
|
19
19
|
--bg-surface-field: #e7e7e1;
|
|
20
|
+
--bg-surface-input: #e7e7e133;
|
|
20
21
|
--bg-surface-info: #eef6ff;
|
|
21
22
|
--bg-surface-success: #eefaf1;
|
|
22
23
|
--bg-surface-warning: #fff9e8;
|
|
@@ -33,6 +34,8 @@
|
|
|
33
34
|
--bg-surface-hover: #ecece7;
|
|
34
35
|
--bg-fill-default: #f7f7f3;
|
|
35
36
|
--bg-fill-primary: #111111;
|
|
37
|
+
--bg-fill-primary-hover: #111111;
|
|
38
|
+
--bg-fill-selected: #111111;
|
|
36
39
|
--bg-fill-brand: #21e36b;
|
|
37
40
|
--bg-fill-brand-2: #ffe14a;
|
|
38
41
|
--bg-fill-brand-3: #58a7f8;
|
|
@@ -45,6 +48,7 @@
|
|
|
45
48
|
--bg-fill-emphasis: #3c8ee6;
|
|
46
49
|
--bg-fill-transparent: #00000008;
|
|
47
50
|
--bg-fill-secondary: #efefeb;
|
|
51
|
+
--bg-fill-secondary-hover: #efefeb;
|
|
48
52
|
--bg-fill-secondary-inverse: #ffffff;
|
|
49
53
|
--text-default: #111111;
|
|
50
54
|
--text-secondary: #555550;
|
|
@@ -52,6 +56,7 @@
|
|
|
52
56
|
--text-disabled: #b7b7b0;
|
|
53
57
|
--text-inverse: #ffffff;
|
|
54
58
|
--text-on-fill-primary: #ffffff;
|
|
59
|
+
--text-on-fill-selected: #ffffff;
|
|
55
60
|
--text-on-fill-brand: #111111;
|
|
56
61
|
--text-on-fill-secondary: #111111;
|
|
57
62
|
--text-on-surface-accent: #111111;
|
|
@@ -135,7 +140,7 @@
|
|
|
135
140
|
--card-radius: var(--radius);
|
|
136
141
|
--card-padding: calc(var(--spacing) * 6);
|
|
137
142
|
--input-radius: var(--radius);
|
|
138
|
-
--
|
|
143
|
+
--control-size-md: calc(var(--spacing) * 10);
|
|
139
144
|
--badge-radius: var(--radius);
|
|
140
145
|
--motion-duration-fast: 100ms;
|
|
141
146
|
--motion-duration-normal: 150ms;
|
|
@@ -154,18 +159,7 @@
|
|
|
154
159
|
--hover-transform: none;
|
|
155
160
|
--hover-shadow: none;
|
|
156
161
|
--active-scale: 0.98;
|
|
157
|
-
--
|
|
158
|
-
--heading-letter-spacing: var(--tracking-tight);
|
|
159
|
-
--body-letter-spacing: var(--tracking-normal);
|
|
160
|
-
--hero-font-size: var(--text-6xl);
|
|
161
|
-
--hero-font-weight: 700;
|
|
162
|
-
--hero-letter-spacing: var(--tracking-tight);
|
|
163
|
-
--section-title-size: var(--text-3xl);
|
|
164
|
-
--section-title-font-weight: 700;
|
|
165
|
-
--section-title-letter-spacing: var(--tracking-tight);
|
|
166
|
-
--card-title-size: var(--text-lg);
|
|
167
|
-
--card-title-font-weight: 600;
|
|
168
|
-
--card-title-letter-spacing: var(--tracking-normal);
|
|
162
|
+
--button-height: calc(var(--spacing) * 7);
|
|
169
163
|
--background: var(--bg-default);
|
|
170
164
|
--foreground: var(--text-default);
|
|
171
165
|
--card: var(--bg-surface-default);
|
|
@@ -194,6 +188,7 @@
|
|
|
194
188
|
--bg-surface-popover: #191918;
|
|
195
189
|
--bg-surface-accent: #1e1e1c;
|
|
196
190
|
--bg-surface-field: #262624;
|
|
191
|
+
--bg-surface-input: #2626244d;
|
|
197
192
|
--bg-surface-info: #132332;
|
|
198
193
|
--bg-surface-success: #14251a;
|
|
199
194
|
--bg-surface-warning: #2a2412;
|
|
@@ -210,6 +205,8 @@
|
|
|
210
205
|
--bg-surface-hover: #20201e;
|
|
211
206
|
--bg-fill-default: #111111;
|
|
212
207
|
--bg-fill-primary: #f7f7f3;
|
|
208
|
+
--bg-fill-primary-hover: #f7f7f3;
|
|
209
|
+
--bg-fill-selected: #f7f7f3;
|
|
213
210
|
--bg-fill-brand: #21e36b;
|
|
214
211
|
--bg-fill-brand-2: #ffe14a;
|
|
215
212
|
--bg-fill-brand-3: #58a7f8;
|
|
@@ -222,6 +219,7 @@
|
|
|
222
219
|
--bg-fill-emphasis: #58a7f8;
|
|
223
220
|
--bg-fill-transparent: #ffffff0d;
|
|
224
221
|
--bg-fill-secondary: #1e1e1c;
|
|
222
|
+
--bg-fill-secondary-hover: #1e1e1c;
|
|
225
223
|
--bg-fill-secondary-inverse: #111111;
|
|
226
224
|
--text-default: #f7f7f3;
|
|
227
225
|
--text-secondary: #b8b8b1;
|
|
@@ -229,6 +227,7 @@
|
|
|
229
227
|
--text-disabled: #5e5e59;
|
|
230
228
|
--text-inverse: #111111;
|
|
231
229
|
--text-on-fill-primary: #111111;
|
|
230
|
+
--text-on-fill-selected: #111111;
|
|
232
231
|
--text-on-fill-brand: #111111;
|
|
233
232
|
--text-on-fill-secondary: #f7f7f3;
|
|
234
233
|
--text-on-surface-accent: #f7f7f3;
|