@leitware/composables 1.0.1 → 1.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.
- package/README.md +3 -0
- package/dist/presets/brutalist.css +0 -5
- package/dist/presets/default.css +2 -7
- package/dist/presets/signal-pop.css +0 -10
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/_internal/alert.tsx +2 -0
- package/src/_internal/badge.tsx +17 -2
- package/src/_internal/bubble.tsx +8 -0
- package/src/_internal/button.tsx +16 -4
- package/src/_internal/card.tsx +4 -4
- package/src/_internal/combobox.tsx +1 -1
- package/src/_internal/input-group.tsx +1 -1
- package/src/_internal/input.tsx +1 -1
- package/src/_internal/select.tsx +1 -1
- package/src/_internal/textarea.tsx +1 -1
- package/src/_internal/toggle-group.tsx +4 -2
- package/src/opinionated/badge.tsx +21 -2
- package/src/opinionated/button.tsx +4 -0
- package/src/styles/presets/brutalist.css +0 -5
- package/src/styles/presets/default.css +2 -7
- package/src/styles/presets/signal-pop.css +0 -10
- package/src/styles/presets-data/brutalist.ts +0 -5
- package/src/styles/presets-data/default.ts +2 -7
- package/src/styles/presets-data/signal-pop.ts +0 -10
- package/src/styles/tokens/components.css +2 -7
package/package.json
CHANGED
package/src/_internal/alert.tsx
CHANGED
|
@@ -9,6 +9,8 @@ const alertVariants = cva(
|
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
11
11
|
default: 'bg-card text-card-foreground',
|
|
12
|
+
secondary: 'bg-muted text-foreground',
|
|
13
|
+
outline: 'border-stroke bg-transparent text-foreground',
|
|
12
14
|
destructive:
|
|
13
15
|
'bg-surface-critical border-stroke-critical text-critical *:data-[slot=alert-description]:text-critical/90 *:[svg]:text-icon-critical',
|
|
14
16
|
warning:
|
package/src/_internal/badge.tsx
CHANGED
|
@@ -8,7 +8,7 @@ const BADGE_LINK_HOVER =
|
|
|
8
8
|
'[a]:hover:ring-[length:var(--hover-ring-width)] [a]:hover:ring-[color:var(--hover-ring-color)]/30'
|
|
9
9
|
|
|
10
10
|
const badgeVariants = cva(
|
|
11
|
-
`${FOCUS_RING}
|
|
11
|
+
`${FOCUS_RING} gap-1 rounded-(--badge-radius) border border-transparent py-0.5 font-medium transition-[opacity,box-shadow] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none overflow-hidden group/badge`,
|
|
12
12
|
{
|
|
13
13
|
variants: {
|
|
14
14
|
variant: {
|
|
@@ -28,9 +28,22 @@ const badgeVariants = cva(
|
|
|
28
28
|
emphasis: 'bg-surface-emphasis text-emphasis border-stroke-emphasis',
|
|
29
29
|
link: 'text-primary underline-offset-4 hover:underline',
|
|
30
30
|
},
|
|
31
|
+
size: {
|
|
32
|
+
sm: 'h-4 px-1.5 text-2xs [&>svg]:size-2!',
|
|
33
|
+
default: 'h-5 px-2 text-2xs [&>svg]:size-2.5!',
|
|
34
|
+
lg: 'h-6 px-2.5 text-xs [&>svg]:size-3!',
|
|
35
|
+
},
|
|
36
|
+
// Declared after `variant` so the pill class wins when tailwind-merge
|
|
37
|
+
// resolves conflicts.
|
|
38
|
+
shape: {
|
|
39
|
+
default: '',
|
|
40
|
+
pill: 'rounded-full',
|
|
41
|
+
},
|
|
31
42
|
},
|
|
32
43
|
defaultVariants: {
|
|
33
44
|
variant: 'default',
|
|
45
|
+
size: 'default',
|
|
46
|
+
shape: 'default',
|
|
34
47
|
},
|
|
35
48
|
},
|
|
36
49
|
)
|
|
@@ -38,6 +51,8 @@ const badgeVariants = cva(
|
|
|
38
51
|
function Badge({
|
|
39
52
|
className,
|
|
40
53
|
variant = 'default',
|
|
54
|
+
size = 'default',
|
|
55
|
+
shape = 'default',
|
|
41
56
|
render,
|
|
42
57
|
...props
|
|
43
58
|
}: useRender.ComponentProps<'span'> & VariantProps<typeof badgeVariants>) {
|
|
@@ -45,7 +60,7 @@ function Badge({
|
|
|
45
60
|
defaultTagName: 'span',
|
|
46
61
|
props: mergeProps<'span'>(
|
|
47
62
|
{
|
|
48
|
-
className: cn(badgeVariants({ className, variant })),
|
|
63
|
+
className: cn(badgeVariants({ className, variant, size, shape })),
|
|
49
64
|
},
|
|
50
65
|
props,
|
|
51
66
|
),
|
package/src/_internal/bubble.tsx
CHANGED
|
@@ -27,8 +27,16 @@ const bubbleVariants = cva(
|
|
|
27
27
|
outline: '*:data-[slot=bubble-content]:border-stroke *:data-[slot=bubble-content]:bg-page',
|
|
28
28
|
ghost:
|
|
29
29
|
'border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0',
|
|
30
|
+
destructive:
|
|
31
|
+
'*:data-[slot=bubble-content]:bg-surface-critical *:data-[slot=bubble-content]:text-critical *:data-[slot=bubble-content]:border-stroke-critical',
|
|
32
|
+
/** @deprecated Use `destructive` — kept for backwards compatibility. */
|
|
30
33
|
critical:
|
|
31
34
|
'*:data-[slot=bubble-content]:bg-surface-critical *:data-[slot=bubble-content]:text-critical *:data-[slot=bubble-content]:border-stroke-critical',
|
|
35
|
+
success:
|
|
36
|
+
'*:data-[slot=bubble-content]:bg-surface-success *:data-[slot=bubble-content]:text-success *:data-[slot=bubble-content]:border-stroke-success',
|
|
37
|
+
warning:
|
|
38
|
+
'*:data-[slot=bubble-content]:bg-surface-warning *:data-[slot=bubble-content]:text-warning *:data-[slot=bubble-content]:border-stroke-warning',
|
|
39
|
+
info: '*:data-[slot=bubble-content]:bg-surface-info *:data-[slot=bubble-content]:text-info *:data-[slot=bubble-content]:border-stroke-info',
|
|
32
40
|
},
|
|
33
41
|
},
|
|
34
42
|
defaultVariants: {
|
package/src/_internal/button.tsx
CHANGED
|
@@ -2,8 +2,12 @@ import { Button as ButtonPrimitive } from '@base-ui/react/button'
|
|
|
2
2
|
import { cva, type VariantProps } from 'class-variance-authority'
|
|
3
3
|
import { cn, FOCUS_RING, FOCUS_RING_DESTRUCTIVE, HOVER_RING } from '../lib/utils'
|
|
4
4
|
|
|
5
|
+
// Every variant carries the same (usually transparent) border so hover/focus
|
|
6
|
+
// border repaints never shift layout, and the background paints UNDER the
|
|
7
|
+
// border (no bg-clip-padding) so filled and outlined buttons read as the same
|
|
8
|
+
// size regardless of --border-width-base.
|
|
5
9
|
const buttonVariants = cva(
|
|
6
|
-
`${FOCUS_RING} ${HOVER_RING} rounded-
|
|
10
|
+
`${FOCUS_RING} ${HOVER_RING} rounded-(--button-radius) border border-transparent text-xs/relaxed font-medium [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-[opacity,box-shadow,transform] active:scale-[var(--active-scale)] disabled:pointer-events-none disabled:opacity-disabled [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none`,
|
|
7
11
|
{
|
|
8
12
|
variants: {
|
|
9
13
|
variant: {
|
|
@@ -28,18 +32,25 @@ const buttonVariants = cva(
|
|
|
28
32
|
size: {
|
|
29
33
|
default:
|
|
30
34
|
"h-7 gap-1 px-3 text-xs/relaxed has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5 [&_svg:not([class*='size-'])]:size-3.5",
|
|
31
|
-
xs: "h-5 gap-1
|
|
35
|
+
xs: "h-5 gap-1 px-2.5 text-2xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-2.5",
|
|
32
36
|
sm: "h-6 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3",
|
|
33
37
|
lg: "h-8 gap-1 px-3.5 text-xs/relaxed has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3 [&_svg:not([class*='size-'])]:size-4",
|
|
34
38
|
icon: "size-7 [&_svg:not([class*='size-'])]:size-3.5",
|
|
35
|
-
'icon-xs': "size-5
|
|
39
|
+
'icon-xs': "size-5 [&_svg:not([class*='size-'])]:size-2.5",
|
|
36
40
|
'icon-sm': "size-6 [&_svg:not([class*='size-'])]:size-3",
|
|
37
41
|
'icon-lg': "size-8 [&_svg:not([class*='size-'])]:size-4",
|
|
38
42
|
},
|
|
43
|
+
// Declared after `size` so the pill class wins any size-level radius
|
|
44
|
+
// when tailwind-merge resolves conflicts.
|
|
45
|
+
shape: {
|
|
46
|
+
default: '',
|
|
47
|
+
pill: 'rounded-full',
|
|
48
|
+
},
|
|
39
49
|
},
|
|
40
50
|
defaultVariants: {
|
|
41
51
|
variant: 'default',
|
|
42
52
|
size: 'default',
|
|
53
|
+
shape: 'default',
|
|
43
54
|
},
|
|
44
55
|
},
|
|
45
56
|
)
|
|
@@ -48,12 +59,13 @@ function Button({
|
|
|
48
59
|
className,
|
|
49
60
|
variant = 'default',
|
|
50
61
|
size = 'default',
|
|
62
|
+
shape = 'default',
|
|
51
63
|
...props
|
|
52
64
|
}: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>) {
|
|
53
65
|
return (
|
|
54
66
|
<ButtonPrimitive
|
|
55
67
|
data-slot="button"
|
|
56
|
-
className={cn(buttonVariants({ variant, size, className }))}
|
|
68
|
+
className={cn(buttonVariants({ variant, size, shape, className }))}
|
|
57
69
|
{...props}
|
|
58
70
|
/>
|
|
59
71
|
)
|
package/src/_internal/card.tsx
CHANGED
|
@@ -12,7 +12,7 @@ function Card({
|
|
|
12
12
|
data-slot="card"
|
|
13
13
|
data-size={size}
|
|
14
14
|
className={cn(
|
|
15
|
-
'border border-stroke bg-card text-card-foreground gap-4 overflow-hidden rounded-
|
|
15
|
+
'border border-stroke bg-card text-card-foreground gap-4 overflow-hidden rounded-(--card-radius) py-(--card-padding) text-xs/relaxed has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-(--card-radius) *:[img:last-child]:rounded-b-(--card-radius) group/card flex flex-col',
|
|
16
16
|
className,
|
|
17
17
|
)}
|
|
18
18
|
{...props}
|
|
@@ -25,7 +25,7 @@ function CardHeader({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
25
25
|
<div
|
|
26
26
|
data-slot="card-header"
|
|
27
27
|
className={cn(
|
|
28
|
-
'gap-1 rounded-t-
|
|
28
|
+
'gap-1 rounded-t-(--card-radius) px-(--card-padding) group-data-[size=sm]/card:px-3 [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3 group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]',
|
|
29
29
|
className,
|
|
30
30
|
)}
|
|
31
31
|
{...props}
|
|
@@ -61,7 +61,7 @@ function CardContent({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
61
61
|
return (
|
|
62
62
|
<div
|
|
63
63
|
data-slot="card-content"
|
|
64
|
-
className={cn('px-
|
|
64
|
+
className={cn('px-(--card-padding) group-data-[size=sm]/card:px-3', className)}
|
|
65
65
|
{...props}
|
|
66
66
|
/>
|
|
67
67
|
)
|
|
@@ -72,7 +72,7 @@ function CardFooter({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
72
72
|
<div
|
|
73
73
|
data-slot="card-footer"
|
|
74
74
|
className={cn(
|
|
75
|
-
'rounded-b-
|
|
75
|
+
'rounded-b-(--card-radius) px-(--card-padding) group-data-[size=sm]/card:px-3 [.border-t]:pt-4 group-data-[size=sm]/card:[.border-t]:pt-3 flex items-center',
|
|
76
76
|
className,
|
|
77
77
|
)}
|
|
78
78
|
{...props}
|
|
@@ -193,7 +193,7 @@ function ComboboxChips({
|
|
|
193
193
|
className={cn(
|
|
194
194
|
GROUP_FOCUS_RING,
|
|
195
195
|
HOVER_RING,
|
|
196
|
-
'bg-field/20 dark:bg-field/30 border-field flex min-h-
|
|
196
|
+
'bg-field/20 dark:bg-field/30 border-field flex min-h-(--input-height) flex-wrap items-center gap-1 rounded-(--input-radius) border bg-clip-padding px-2 py-0.5 text-xs/relaxed has-data-[slot=combobox-chip]:px-1',
|
|
197
197
|
className,
|
|
198
198
|
)}
|
|
199
199
|
{...props}
|
|
@@ -13,7 +13,7 @@ function InputGroup({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
13
13
|
className={cn(
|
|
14
14
|
GROUP_FOCUS_RING,
|
|
15
15
|
HOVER_RING,
|
|
16
|
-
'border-field bg-field/20 dark:bg-field/30 h-
|
|
16
|
+
'border-field bg-field/20 dark:bg-field/30 h-(--input-height) rounded-(--input-radius) border overflow-hidden bg-clip-padding has-data-[align=block-end]:rounded-(--input-radius) has-data-[align=block-start]:rounded-(--input-radius) has-[textarea]:rounded-(--input-radius) has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 [[data-slot=combobox-content]_&]:focus-within:border-inherit [[data-slot=combobox-content]_&]:focus-within:ring-0 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto',
|
|
17
17
|
className,
|
|
18
18
|
)}
|
|
19
19
|
{...props}
|
package/src/_internal/input.tsx
CHANGED
|
@@ -11,7 +11,7 @@ function Input({ className, type, ...props }: React.ComponentProps<'input'>) {
|
|
|
11
11
|
className={cn(
|
|
12
12
|
FOCUS_RING,
|
|
13
13
|
HOVER_RING,
|
|
14
|
-
'bg-field/20 dark:bg-field/30 border-field h-
|
|
14
|
+
'bg-field/20 dark:bg-field/30 border-field h-(--input-height) rounded-(--input-radius) border px-2 py-0.5 text-sm file:h-6 file:text-xs/relaxed file:font-medium md:text-xs/relaxed file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-disabled',
|
|
15
15
|
className,
|
|
16
16
|
)}
|
|
17
17
|
{...props}
|
package/src/_internal/select.tsx
CHANGED
|
@@ -40,7 +40,7 @@ function SelectTrigger({
|
|
|
40
40
|
className={cn(
|
|
41
41
|
FOCUS_RING,
|
|
42
42
|
HOVER_RING,
|
|
43
|
-
"border-field data-[placeholder]:text-muted-foreground bg-field/20 dark:bg-field/30 dark:hover:bg-field/50 gap-1.5 rounded-
|
|
43
|
+
"border-field data-[placeholder]:text-muted-foreground bg-field/20 dark:bg-field/30 dark:hover:bg-field/50 gap-1.5 rounded-(--input-radius) border px-2 py-1.5 text-xs/relaxed data-[size=default]:h-(--input-height) data-[size=sm]:h-6 *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-3.5 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-disabled *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
44
44
|
className,
|
|
45
45
|
)}
|
|
46
46
|
{...props}
|
|
@@ -9,7 +9,7 @@ function Textarea({ className, ...props }: React.ComponentProps<'textarea'>) {
|
|
|
9
9
|
className={cn(
|
|
10
10
|
FOCUS_RING,
|
|
11
11
|
HOVER_RING,
|
|
12
|
-
'border-field bg-field/20 dark:bg-field/30 resize-none rounded-
|
|
12
|
+
'border-field bg-field/20 dark:bg-field/30 resize-none rounded-(--input-radius) border px-2 py-2 text-sm md:text-xs/relaxed placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full outline-none disabled:cursor-not-allowed disabled:opacity-disabled',
|
|
13
13
|
className,
|
|
14
14
|
)}
|
|
15
15
|
{...props}
|
|
@@ -50,7 +50,9 @@ function ToggleGroup<Value extends string = string>({
|
|
|
50
50
|
data-orientation={orientation}
|
|
51
51
|
orientation={orientation}
|
|
52
52
|
className={cn(
|
|
53
|
-
|
|
53
|
+
// Vertical groups stretch items so every toggle matches the width
|
|
54
|
+
// of the widest item instead of hugging its own content.
|
|
55
|
+
'inline-flex w-fit items-center data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch',
|
|
54
56
|
spacingClassName[spacing],
|
|
55
57
|
className,
|
|
56
58
|
)}
|
|
@@ -86,7 +88,7 @@ function ToggleGroupItem<Value extends string = string>({
|
|
|
86
88
|
variant={resolvedVariant}
|
|
87
89
|
size={resolvedSize}
|
|
88
90
|
className={cn(
|
|
89
|
-
'shrink-0 focus:z-10 focus-visible:z-10',
|
|
91
|
+
'shrink-0 focus:z-10 focus-visible:z-10 data-[orientation=vertical]:w-full',
|
|
90
92
|
context.spacing === 'none' &&
|
|
91
93
|
'rounded-none data-[orientation=horizontal]:first:rounded-l-md data-[orientation=horizontal]:last:rounded-r-md data-[orientation=horizontal]:data-[variant=outline]:border-l-0 data-[orientation=horizontal]:first:data-[variant=outline]:border-l data-[orientation=vertical]:first:rounded-t-md data-[orientation=vertical]:last:rounded-b-md data-[orientation=vertical]:data-[variant=outline]:border-t-0 data-[orientation=vertical]:first:data-[variant=outline]:border-t',
|
|
92
94
|
className,
|
|
@@ -18,13 +18,32 @@ import { Badge as BadgePrimitive, type badgeVariants } from '../_internal/badge'
|
|
|
18
18
|
export interface BadgeProps extends Omit<useRender.ComponentProps<'span'>, 'size'> {
|
|
19
19
|
/** Visual style variant. @default 'default' */
|
|
20
20
|
variant?: VariantProps<typeof badgeVariants>['variant']
|
|
21
|
+
/** Size variant. @default 'default' */
|
|
22
|
+
size?: VariantProps<typeof badgeVariants>['size']
|
|
23
|
+
/** Corner shape. 'pill' forces full rounding regardless of theme. @default 'default' */
|
|
24
|
+
shape?: VariantProps<typeof badgeVariants>['shape']
|
|
21
25
|
className?: string
|
|
22
26
|
children: React.ReactNode
|
|
23
27
|
}
|
|
24
28
|
|
|
25
|
-
function Badge({
|
|
29
|
+
function Badge({
|
|
30
|
+
variant = 'default',
|
|
31
|
+
size = 'default',
|
|
32
|
+
shape = 'default',
|
|
33
|
+
className,
|
|
34
|
+
children,
|
|
35
|
+
render,
|
|
36
|
+
...badgeProps
|
|
37
|
+
}: BadgeProps) {
|
|
26
38
|
return (
|
|
27
|
-
<BadgePrimitive
|
|
39
|
+
<BadgePrimitive
|
|
40
|
+
variant={variant}
|
|
41
|
+
size={size}
|
|
42
|
+
shape={shape}
|
|
43
|
+
className={className}
|
|
44
|
+
render={render}
|
|
45
|
+
{...badgeProps}
|
|
46
|
+
>
|
|
28
47
|
{children}
|
|
29
48
|
</BadgePrimitive>
|
|
30
49
|
)
|
|
@@ -20,6 +20,8 @@ export interface ButtonProps extends Omit<React.ComponentProps<'button'>, 'size'
|
|
|
20
20
|
variant?: VariantProps<typeof buttonVariants>['variant']
|
|
21
21
|
/** Size variant. @default 'default' */
|
|
22
22
|
size?: VariantProps<typeof buttonVariants>['size']
|
|
23
|
+
/** Corner shape. 'pill' is fully rounded — circular for icon sizes. @default 'default' */
|
|
24
|
+
shape?: VariantProps<typeof buttonVariants>['shape']
|
|
23
25
|
className?: string
|
|
24
26
|
/** Disables the button and prevents interaction. @default false */
|
|
25
27
|
disabled?: boolean
|
|
@@ -33,6 +35,7 @@ export interface ButtonProps extends Omit<React.ComponentProps<'button'>, 'size'
|
|
|
33
35
|
function Button({
|
|
34
36
|
variant = 'default',
|
|
35
37
|
size = 'default',
|
|
38
|
+
shape = 'default',
|
|
36
39
|
className,
|
|
37
40
|
disabled = false,
|
|
38
41
|
loading = false,
|
|
@@ -46,6 +49,7 @@ function Button({
|
|
|
46
49
|
<ButtonPrimitive
|
|
47
50
|
variant={variant}
|
|
48
51
|
size={size}
|
|
52
|
+
shape={shape}
|
|
49
53
|
className={className}
|
|
50
54
|
disabled={isDisabled}
|
|
51
55
|
type={type}
|
|
@@ -130,13 +130,8 @@
|
|
|
130
130
|
--font-heading: 'Space Grotesk Variable', 'Arial', sans-serif;
|
|
131
131
|
--font-brand: 'Space Grotesk Variable', 'Arial', sans-serif;
|
|
132
132
|
--button-radius: 0px;
|
|
133
|
-
--button-padding-x: calc(var(--spacing) * 5);
|
|
134
|
-
--button-padding-y: calc(var(--spacing) * 2);
|
|
135
133
|
--card-radius: 0px;
|
|
136
134
|
--card-padding: calc(var(--spacing) * 6);
|
|
137
|
-
--nav-height: calc(var(--spacing) * 14);
|
|
138
|
-
--section-padding-y: calc(var(--spacing) * 20);
|
|
139
|
-
--hero-padding-y: calc(var(--spacing) * 32);
|
|
140
135
|
--input-radius: 0px;
|
|
141
136
|
--input-height: calc(var(--spacing) * 10);
|
|
142
137
|
--badge-radius: 0px;
|
|
@@ -130,15 +130,10 @@
|
|
|
130
130
|
--font-heading: 'Inter Variable', sans-serif;
|
|
131
131
|
--font-brand: 'Bricolage Grotesque Variable', sans-serif;
|
|
132
132
|
--button-radius: var(--radius-md);
|
|
133
|
-
--button-padding-x: calc(var(--spacing) * 4);
|
|
134
|
-
--button-padding-y: calc(var(--spacing) * 2);
|
|
135
133
|
--card-radius: var(--radius-lg);
|
|
136
|
-
--card-padding: calc(var(--spacing) *
|
|
137
|
-
--nav-height: calc(var(--spacing) * 16);
|
|
138
|
-
--section-padding-y: calc(var(--spacing) * 24);
|
|
139
|
-
--hero-padding-y: calc(var(--spacing) * 40);
|
|
134
|
+
--card-padding: calc(var(--spacing) * 4);
|
|
140
135
|
--input-radius: var(--radius-md);
|
|
141
|
-
--input-height: calc(var(--spacing) *
|
|
136
|
+
--input-height: calc(var(--spacing) * 7);
|
|
142
137
|
--badge-radius: var(--radius-4xl);
|
|
143
138
|
--motion-duration-fast: 100ms;
|
|
144
139
|
--motion-duration-normal: 200ms;
|
|
@@ -130,13 +130,8 @@
|
|
|
130
130
|
--font-heading: 'Space Grotesk Variable', 'IBM Plex Sans', sans-serif;
|
|
131
131
|
--font-brand: 'JetBrains Mono Variable', 'IBM Plex Mono', monospace;
|
|
132
132
|
--button-radius: var(--radius-4xl);
|
|
133
|
-
--button-padding-x: calc(var(--spacing) * 6);
|
|
134
|
-
--button-padding-y: calc(var(--spacing) * 2.5);
|
|
135
133
|
--card-radius: var(--radius-2xl);
|
|
136
134
|
--card-padding: calc(var(--spacing) * 7);
|
|
137
|
-
--nav-height: calc(var(--spacing) * 16);
|
|
138
|
-
--section-padding-y: calc(var(--spacing) * 28);
|
|
139
|
-
--hero-padding-y: calc(var(--spacing) * 40);
|
|
140
135
|
--input-radius: var(--radius-xl);
|
|
141
136
|
--input-height: calc(var(--spacing) * 12);
|
|
142
137
|
--badge-radius: var(--radius-4xl);
|
|
@@ -315,13 +310,8 @@
|
|
|
315
310
|
--dropdown-offset: 8;
|
|
316
311
|
--overlay-offset: 8;
|
|
317
312
|
--button-radius: var(--radius-4xl);
|
|
318
|
-
--button-padding-x: calc(var(--spacing) * 6);
|
|
319
|
-
--button-padding-y: calc(var(--spacing) * 2.5);
|
|
320
313
|
--card-radius: var(--radius-2xl);
|
|
321
314
|
--card-padding: calc(var(--spacing) * 7);
|
|
322
|
-
--nav-height: calc(var(--spacing) * 16);
|
|
323
|
-
--section-padding-y: calc(var(--spacing) * 28);
|
|
324
|
-
--hero-padding-y: calc(var(--spacing) * 40);
|
|
325
315
|
--input-radius: var(--radius-xl);
|
|
326
316
|
--input-height: calc(var(--spacing) * 12);
|
|
327
317
|
--badge-radius: var(--radius-4xl);
|
|
@@ -148,13 +148,8 @@ export const brutalist: Record<string, string> = {
|
|
|
148
148
|
// ── Phase 1a: Component tokens ────────────────────────────────────────
|
|
149
149
|
// Zero radius everywhere — things are what they are
|
|
150
150
|
'--button-radius': '0px',
|
|
151
|
-
'--button-padding-x': 'calc(var(--spacing) * 5)',
|
|
152
|
-
'--button-padding-y': 'calc(var(--spacing) * 2)',
|
|
153
151
|
'--card-radius': '0px',
|
|
154
152
|
'--card-padding': 'calc(var(--spacing) * 6)',
|
|
155
|
-
'--nav-height': 'calc(var(--spacing) * 14)',
|
|
156
|
-
'--section-padding-y': 'calc(var(--spacing) * 20)',
|
|
157
|
-
'--hero-padding-y': 'calc(var(--spacing) * 32)',
|
|
158
153
|
'--input-radius': '0px',
|
|
159
154
|
'--input-height': 'calc(var(--spacing) * 10)',
|
|
160
155
|
'--badge-radius': '0px',
|
|
@@ -134,15 +134,10 @@ export const defaultPreset: Record<string, string> = {
|
|
|
134
134
|
|
|
135
135
|
// ── Phase 1a: Component tokens ────────────────────────────────────────
|
|
136
136
|
'--button-radius': 'var(--radius-md)',
|
|
137
|
-
'--button-padding-x': 'calc(var(--spacing) * 4)',
|
|
138
|
-
'--button-padding-y': 'calc(var(--spacing) * 2)',
|
|
139
137
|
'--card-radius': 'var(--radius-lg)',
|
|
140
|
-
'--card-padding': 'calc(var(--spacing) *
|
|
141
|
-
'--nav-height': 'calc(var(--spacing) * 16)',
|
|
142
|
-
'--section-padding-y': 'calc(var(--spacing) * 24)',
|
|
143
|
-
'--hero-padding-y': 'calc(var(--spacing) * 40)',
|
|
138
|
+
'--card-padding': 'calc(var(--spacing) * 4)',
|
|
144
139
|
'--input-radius': 'var(--radius-md)',
|
|
145
|
-
'--input-height': 'calc(var(--spacing) *
|
|
140
|
+
'--input-height': 'calc(var(--spacing) * 7)',
|
|
146
141
|
'--badge-radius': 'var(--radius-4xl)',
|
|
147
142
|
|
|
148
143
|
// ── Phase 1b: Motion tokens ────────────────────────────────────────────
|
|
@@ -138,13 +138,8 @@ export const signalPop: Record<string, string> = {
|
|
|
138
138
|
|
|
139
139
|
// Component tokens
|
|
140
140
|
'--button-radius': 'var(--radius-4xl)',
|
|
141
|
-
'--button-padding-x': 'calc(var(--spacing) * 6)',
|
|
142
|
-
'--button-padding-y': 'calc(var(--spacing) * 2.5)',
|
|
143
141
|
'--card-radius': 'var(--radius-2xl)',
|
|
144
142
|
'--card-padding': 'calc(var(--spacing) * 7)',
|
|
145
|
-
'--nav-height': 'calc(var(--spacing) * 16)',
|
|
146
|
-
'--section-padding-y': 'calc(var(--spacing) * 28)',
|
|
147
|
-
'--hero-padding-y': 'calc(var(--spacing) * 40)',
|
|
148
143
|
'--input-radius': 'var(--radius-xl)',
|
|
149
144
|
'--input-height': 'calc(var(--spacing) * 12)',
|
|
150
145
|
'--badge-radius': 'var(--radius-4xl)',
|
|
@@ -318,13 +313,8 @@ export const signalPopDark: Record<string, string> = {
|
|
|
318
313
|
|
|
319
314
|
// Component tokens
|
|
320
315
|
'--button-radius': 'var(--radius-4xl)',
|
|
321
|
-
'--button-padding-x': 'calc(var(--spacing) * 6)',
|
|
322
|
-
'--button-padding-y': 'calc(var(--spacing) * 2.5)',
|
|
323
316
|
'--card-radius': 'var(--radius-2xl)',
|
|
324
317
|
'--card-padding': 'calc(var(--spacing) * 7)',
|
|
325
|
-
'--nav-height': 'calc(var(--spacing) * 16)',
|
|
326
|
-
'--section-padding-y': 'calc(var(--spacing) * 28)',
|
|
327
|
-
'--hero-padding-y': 'calc(var(--spacing) * 40)',
|
|
328
318
|
'--input-radius': 'var(--radius-xl)',
|
|
329
319
|
'--input-height': 'calc(var(--spacing) * 12)',
|
|
330
320
|
'--badge-radius': 'var(--radius-4xl)',
|
|
@@ -25,15 +25,10 @@
|
|
|
25
25
|
|
|
26
26
|
/* ── Component dimensions ──────────────────────────────────────────── */
|
|
27
27
|
--button-radius: var(--radius-md);
|
|
28
|
-
--button-padding-x: calc(var(--spacing) * 4);
|
|
29
|
-
--button-padding-y: calc(var(--spacing) * 2);
|
|
30
28
|
--card-radius: var(--radius-lg);
|
|
31
|
-
--card-padding: calc(var(--spacing) *
|
|
32
|
-
--nav-height: calc(var(--spacing) * 16);
|
|
33
|
-
--section-padding-y: calc(var(--spacing) * 24);
|
|
34
|
-
--hero-padding-y: calc(var(--spacing) * 40);
|
|
29
|
+
--card-padding: calc(var(--spacing) * 4);
|
|
35
30
|
--input-radius: var(--radius-md);
|
|
36
|
-
--input-height: calc(var(--spacing) *
|
|
31
|
+
--input-height: calc(var(--spacing) * 7);
|
|
37
32
|
--badge-radius: var(--radius-4xl);
|
|
38
33
|
|
|
39
34
|
/* ── Motion ────────────────────────────────────────────────────────── */
|