@leitware/composables 1.3.3 → 1.4.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 +37 -0
- package/dist/presets/brutalist.css +5 -1
- package/dist/presets/default.css +4 -0
- package/dist/presets/signal-pop.css +4 -0
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +8 -0
- package/package.json +2 -1
- package/rules/composables.md +9 -7
- package/skills/use-composables/references/public-api.md +7 -2
- package/skills/use-composables/references/semantic-utilities.md +2 -0
- package/src/_internal/ai-elements/chain-of-thought.tsx +1 -1
- package/src/_internal/badge.tsx +2 -2
- package/src/_internal/button.tsx +1 -1
- package/src/_internal/calendar.tsx +1 -1
- package/src/_internal/checkbox.tsx +1 -1
- package/src/_internal/combobox.tsx +3 -3
- package/src/_internal/command.tsx +3 -3
- package/src/_internal/dropdown-menu.tsx +2 -2
- package/src/_internal/dropzone.tsx +3 -3
- package/src/_internal/field.tsx +2 -2
- package/src/_internal/grid-overlay.tsx +2 -2
- package/src/_internal/input-group.tsx +1 -1
- package/src/_internal/input.tsx +1 -1
- package/src/_internal/layout-bento.tsx +1 -1
- package/src/_internal/marker.tsx +1 -1
- package/src/_internal/radio-group.tsx +2 -2
- package/src/_internal/resizable.tsx +1 -1
- package/src/_internal/select.tsx +5 -2
- package/src/_internal/sidebar.tsx +2 -2
- package/src/_internal/switch.tsx +1 -1
- package/src/_internal/tabs.tsx +2 -2
- package/src/_internal/textarea.tsx +1 -1
- package/src/_internal/tooltip.tsx +1 -1
- package/src/index.ts +4 -0
- package/src/opinionated/blocks/content.tsx +247 -0
- package/src/opinionated/blocks/features.tsx +242 -0
- package/src/opinionated/blocks/heroes.tsx +711 -0
- package/src/opinionated/blocks/index.ts +4 -0
- package/src/opinionated/blocks/shared.tsx +185 -0
- package/src/opinionated/button.tsx +2 -0
- package/src/opinionated/collapsible.tsx +1 -1
- package/src/opinionated/form-calendar-popover.tsx +1 -1
- package/src/opinionated/form-checkbox.tsx +1 -1
- package/src/opinionated/form-combobox.tsx +1 -1
- package/src/opinionated/form-date-of-birth.tsx +1 -1
- package/src/opinionated/form-dropzone.tsx +1 -1
- package/src/opinionated/form-input-group.tsx +1 -1
- package/src/opinionated/form-input.tsx +1 -1
- package/src/opinionated/form-multi-combobox.tsx +1 -1
- package/src/opinionated/form-multi-dropzone.tsx +1 -1
- package/src/opinionated/form-radiogroup.tsx +1 -1
- package/src/opinionated/form-select.tsx +1 -1
- package/src/opinionated/form-slider.tsx +1 -1
- package/src/opinionated/form-switch.tsx +1 -1
- package/src/opinionated/form-textarea.tsx +1 -1
- package/src/opinionated/token-config-panel/color-editor.tsx +1 -1
- package/src/opinionated/token-config-panel/json-import-export.tsx +1 -1
- package/src/opinionated/window-frame.tsx +57 -0
- package/src/styles/presets/brutalist.css +5 -1
- package/src/styles/presets/default.css +4 -0
- package/src/styles/presets/signal-pop.css +4 -0
- package/src/styles/presets-data/brutalist.ts +5 -1
- package/src/styles/presets-data/default.ts +4 -0
- package/src/styles/presets-data/signal-pop.ts +4 -0
- package/src/styles/tokens/components.css +1 -0
- package/src/styles/tokens/registry.ts +15 -1
- package/src/styles/tokens/semantic-utilities.css +8 -0
- package/src/styles/tokens/semantic.css +5 -1
- package/src/styles/tokens/tailwind-color-adapter.css +3 -1
- package/src/styles/tokens/tailwind-public-utilities.css +8 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import type * as React from 'react'
|
|
2
|
+
import { ArrowRightIcon } from 'lucide-react'
|
|
3
|
+
import { cn } from '../../lib/utils'
|
|
4
|
+
import { Button, type ButtonProps } from '../button'
|
|
5
|
+
import { Container } from '../container'
|
|
6
|
+
import { WindowFrame } from '../window-frame'
|
|
7
|
+
|
|
8
|
+
export type BlockAnimation = 'none' | 'subtle'
|
|
9
|
+
export type BlockVariant = 'standard' | 'muted' | 'inverse'
|
|
10
|
+
export type BlockMedia = { src: string; alt: string }
|
|
11
|
+
export type BlockCTA = {
|
|
12
|
+
ctaEnabled?: boolean
|
|
13
|
+
text: string
|
|
14
|
+
link?: string
|
|
15
|
+
variant?: ButtonProps['variant']
|
|
16
|
+
size?: ButtonProps['size']
|
|
17
|
+
}
|
|
18
|
+
export type BlockBaseProps = {
|
|
19
|
+
className?: string
|
|
20
|
+
variant?: BlockVariant
|
|
21
|
+
animation?: BlockAnimation
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function BlockSection({
|
|
25
|
+
children,
|
|
26
|
+
className,
|
|
27
|
+
variant = 'standard',
|
|
28
|
+
animation = 'none',
|
|
29
|
+
fullWidth = false,
|
|
30
|
+
}: BlockBaseProps & { children: React.ReactNode; fullWidth?: boolean }) {
|
|
31
|
+
return (
|
|
32
|
+
<section
|
|
33
|
+
data-slot="block"
|
|
34
|
+
data-variant={variant}
|
|
35
|
+
className={cn(
|
|
36
|
+
'relative isolate overflow-hidden py-16 md:py-24',
|
|
37
|
+
variant === 'standard' && 'bg-default text-default',
|
|
38
|
+
variant === 'muted' && 'bg-muted text-default',
|
|
39
|
+
variant === 'inverse' &&
|
|
40
|
+
'bg-inverse text-inverse [--text-secondary:var(--text-inverse)] [--text-muted:var(--text-inverse)]',
|
|
41
|
+
animation === 'subtle' &&
|
|
42
|
+
'motion-safe:animate-in motion-safe:fade-in motion-safe:duration-700',
|
|
43
|
+
className,
|
|
44
|
+
)}
|
|
45
|
+
>
|
|
46
|
+
{fullWidth ? children : <Container maxWidth="2xl">{children}</Container>}
|
|
47
|
+
</section>
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function BlockHeading({
|
|
52
|
+
title,
|
|
53
|
+
description,
|
|
54
|
+
centered = false,
|
|
55
|
+
className,
|
|
56
|
+
}: {
|
|
57
|
+
title: string
|
|
58
|
+
description?: string
|
|
59
|
+
centered?: boolean
|
|
60
|
+
className?: string
|
|
61
|
+
}) {
|
|
62
|
+
return (
|
|
63
|
+
<div className={cn('max-w-3xl', centered && 'mx-auto text-center', className)}>
|
|
64
|
+
<h2 className="font-heading text-4xl leading-tight tracking-tight md:text-5xl">{title}</h2>
|
|
65
|
+
{description && (
|
|
66
|
+
<p className="mt-5 max-w-2xl text-base leading-relaxed text-[var(--text-secondary)]">
|
|
67
|
+
{description}
|
|
68
|
+
</p>
|
|
69
|
+
)}
|
|
70
|
+
</div>
|
|
71
|
+
)
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function BlockImage({
|
|
75
|
+
media,
|
|
76
|
+
className,
|
|
77
|
+
priority = false,
|
|
78
|
+
}: {
|
|
79
|
+
media: BlockMedia
|
|
80
|
+
className?: string
|
|
81
|
+
priority?: boolean
|
|
82
|
+
}) {
|
|
83
|
+
return (
|
|
84
|
+
<img
|
|
85
|
+
src={media.src}
|
|
86
|
+
alt={media.alt}
|
|
87
|
+
loading={priority ? 'eager' : 'lazy'}
|
|
88
|
+
className={cn('h-full w-full object-cover', className)}
|
|
89
|
+
/>
|
|
90
|
+
)
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function BlockAction({
|
|
94
|
+
action,
|
|
95
|
+
className,
|
|
96
|
+
arrow = false,
|
|
97
|
+
}: {
|
|
98
|
+
action?: BlockCTA
|
|
99
|
+
className?: string
|
|
100
|
+
arrow?: boolean
|
|
101
|
+
}) {
|
|
102
|
+
if (!action || action.ctaEnabled === false) return null
|
|
103
|
+
const content = (
|
|
104
|
+
<>
|
|
105
|
+
{action.text}
|
|
106
|
+
{arrow && <ArrowRightIcon aria-hidden="true" />}
|
|
107
|
+
</>
|
|
108
|
+
)
|
|
109
|
+
return (
|
|
110
|
+
<Button
|
|
111
|
+
render={action.link ? <a href={action.link} /> : undefined}
|
|
112
|
+
variant={action.variant ?? 'default'}
|
|
113
|
+
size={action.size ?? 'lg'}
|
|
114
|
+
shape="pill"
|
|
115
|
+
className={cn('min-h-10 px-5', className)}
|
|
116
|
+
>
|
|
117
|
+
{content}
|
|
118
|
+
</Button>
|
|
119
|
+
)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function BlockActions({
|
|
123
|
+
primary,
|
|
124
|
+
secondary,
|
|
125
|
+
centered = false,
|
|
126
|
+
}: {
|
|
127
|
+
primary?: BlockCTA
|
|
128
|
+
secondary?: BlockCTA
|
|
129
|
+
centered?: boolean
|
|
130
|
+
}) {
|
|
131
|
+
if (!primary && !secondary) return null
|
|
132
|
+
return (
|
|
133
|
+
<div className={cn('mt-8 flex flex-wrap items-center gap-3', centered && 'justify-center')}>
|
|
134
|
+
<BlockAction action={primary} />
|
|
135
|
+
<BlockAction action={secondary} />
|
|
136
|
+
</div>
|
|
137
|
+
)
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function BlockLogos({ label, logos }: { label?: string; logos?: string[] }) {
|
|
141
|
+
if (!logos?.length) return null
|
|
142
|
+
return (
|
|
143
|
+
<div className="mt-14 border-t border-stroke-default pt-6 text-center">
|
|
144
|
+
{label && (
|
|
145
|
+
<p className="mb-5 text-xs uppercase tracking-wider text-[var(--text-muted)]">{label}</p>
|
|
146
|
+
)}
|
|
147
|
+
<div className="flex flex-wrap items-center justify-center gap-x-10 gap-y-4 text-sm font-semibold text-[var(--text-secondary)]">
|
|
148
|
+
{logos.map((logo) => (
|
|
149
|
+
<span key={logo}>{logo}</span>
|
|
150
|
+
))}
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
)
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export function BlockDashboard({ className }: { className?: string }) {
|
|
157
|
+
return (
|
|
158
|
+
<WindowFrame
|
|
159
|
+
role="group"
|
|
160
|
+
aria-label="Product dashboard illustration"
|
|
161
|
+
className={className}
|
|
162
|
+
toolbar={<span aria-hidden="true" className="h-2 w-20 rounded-full bg-surface-accent" />}
|
|
163
|
+
>
|
|
164
|
+
<div className="grid gap-3 sm:grid-cols-3">
|
|
165
|
+
{['Revenue', 'Customers', 'Growth'].map((label, index) => (
|
|
166
|
+
<div key={label} className="rounded-lg border border-stroke-default bg-default p-4">
|
|
167
|
+
<p className="text-xs text-[var(--text-muted)]">{label}</p>
|
|
168
|
+
<p className="mt-3 text-2xl font-semibold text-default">
|
|
169
|
+
{['£48,290', '2,410', '+18.6%'][index]}
|
|
170
|
+
</p>
|
|
171
|
+
</div>
|
|
172
|
+
))}
|
|
173
|
+
</div>
|
|
174
|
+
<div className="mt-3 flex h-40 items-end gap-2 rounded-lg border border-stroke-default bg-default p-5">
|
|
175
|
+
{[32, 48, 38, 68, 52, 75, 61, 92, 70, 85, 72, 100].map((height, index) => (
|
|
176
|
+
<span
|
|
177
|
+
key={index}
|
|
178
|
+
className="flex-1 rounded-t-sm bg-fill-brand"
|
|
179
|
+
style={{ height: `${height}%`, opacity: 0.4 + index / 20 }}
|
|
180
|
+
/>
|
|
181
|
+
))}
|
|
182
|
+
</div>
|
|
183
|
+
</WindowFrame>
|
|
184
|
+
)
|
|
185
|
+
}
|
|
@@ -16,6 +16,8 @@ import { Button as ButtonPrimitive, type buttonVariants } from '../_internal/but
|
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
18
|
export interface ButtonProps extends Omit<React.ComponentProps<'button'>, 'size'> {
|
|
19
|
+
/** Render the button as another element, such as a link. */
|
|
20
|
+
render?: React.ReactElement
|
|
19
21
|
/** Visual style variant. @default 'default' */
|
|
20
22
|
variant?: VariantProps<typeof buttonVariants>['variant']
|
|
21
23
|
/** Size variant. @default 'default' */
|
|
@@ -65,7 +65,7 @@ function Collapsible({
|
|
|
65
65
|
{...collapsibleProps}
|
|
66
66
|
>
|
|
67
67
|
<CollapsibleTrigger
|
|
68
|
-
className={`group/collapsible-trigger flex w-full items-center justify-between gap-2 rounded-md border border-transparent px-2 py-1.5 text-left text-xs/relaxed font-medium transition-[opacity,box-shadow] outline-none hover:bg-muted/50 ${FOCUS_RING} disabled:pointer-events-none disabled:opacity-
|
|
68
|
+
className={`group/collapsible-trigger flex w-full items-center justify-between gap-2 rounded-md border border-transparent px-2 py-1.5 text-left text-xs/relaxed font-medium transition-[opacity,box-shadow] outline-none hover:bg-muted/50 ${FOCUS_RING} disabled:pointer-events-none disabled:opacity-disabled aria-expanded:bg-muted/50 [--active-scale:1]`}
|
|
69
69
|
>
|
|
70
70
|
<span className="flex-1">{trigger}</span>
|
|
71
71
|
{showIcon && (
|
|
@@ -119,7 +119,7 @@ function FormDateOfBirth({
|
|
|
119
119
|
{label && (
|
|
120
120
|
<FieldLabel htmlFor={`${fieldId}-day`}>
|
|
121
121
|
{label}
|
|
122
|
-
{required && <span className="text-
|
|
122
|
+
{required && <span className="text-critical">*</span>}
|
|
123
123
|
</FieldLabel>
|
|
124
124
|
)}
|
|
125
125
|
<FieldContent>
|
|
@@ -129,7 +129,7 @@ function FormSelect({
|
|
|
129
129
|
{label && (
|
|
130
130
|
<FieldLabel id={`${selectId}-label`} htmlFor={selectId}>
|
|
131
131
|
{label}
|
|
132
|
-
{required && <span className="text-
|
|
132
|
+
{required && <span className="text-critical">*</span>}
|
|
133
133
|
</FieldLabel>
|
|
134
134
|
)}
|
|
135
135
|
<FieldContent>
|
|
@@ -70,7 +70,7 @@ function FormSlider({
|
|
|
70
70
|
{(label || showValue) && (
|
|
71
71
|
<FieldLabel htmlFor={sliderId}>
|
|
72
72
|
{label}
|
|
73
|
-
{required && <span className="text-
|
|
73
|
+
{required && <span className="text-critical">*</span>}
|
|
74
74
|
{showValue && displayValue && (
|
|
75
75
|
<span className="ml-auto text-muted-foreground font-normal">{displayValue}</span>
|
|
76
76
|
)}
|
|
@@ -88,7 +88,7 @@ function FormSwitch({
|
|
|
88
88
|
{label && (
|
|
89
89
|
<FieldLabel htmlFor={switchId}>
|
|
90
90
|
{label}
|
|
91
|
-
{required && <span className="text-
|
|
91
|
+
{required && <span className="text-critical">*</span>}
|
|
92
92
|
</FieldLabel>
|
|
93
93
|
)}
|
|
94
94
|
{description && <FieldDescription>{description}</FieldDescription>}
|
|
@@ -60,7 +60,7 @@ export function ColorTokenRow({
|
|
|
60
60
|
<button
|
|
61
61
|
type="button"
|
|
62
62
|
onClick={() => setExpanded(!expanded)}
|
|
63
|
-
className="flex w-full items-center gap-3 rounded-md px-2 py-1 hover:bg-
|
|
63
|
+
className="flex w-full items-center gap-3 rounded-md px-2 py-1 hover:bg-surface-hover transition-colors"
|
|
64
64
|
>
|
|
65
65
|
<div
|
|
66
66
|
className="size-6 rounded border border-stroke/60 shrink-0"
|
|
@@ -72,7 +72,7 @@ export function JsonImportExport({
|
|
|
72
72
|
onChange={(e) => setJsonText(e.target.value)}
|
|
73
73
|
/>
|
|
74
74
|
{jsonError && (
|
|
75
|
-
<Typography variant="caption-100" className="text-
|
|
75
|
+
<Typography variant="caption-100" className="text-critical">
|
|
76
76
|
{jsonError}
|
|
77
77
|
</Typography>
|
|
78
78
|
)}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type * as React from 'react'
|
|
2
|
+
import { cn } from '../lib/utils'
|
|
3
|
+
|
|
4
|
+
/** A reusable desktop-window frame for product previews and embedded UI examples. */
|
|
5
|
+
export interface WindowFrameProps extends Omit<React.ComponentProps<'div'>, 'title'> {
|
|
6
|
+
/** Label shown in the window chrome. */
|
|
7
|
+
title?: React.ReactNode
|
|
8
|
+
/** Optional content on the right side of the title bar. */
|
|
9
|
+
toolbar?: React.ReactNode
|
|
10
|
+
/** Shows the decorative window controls. @default true */
|
|
11
|
+
controls?: boolean
|
|
12
|
+
/** Classes applied to the content area. */
|
|
13
|
+
contentClassName?: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function WindowFrame({
|
|
17
|
+
title,
|
|
18
|
+
toolbar,
|
|
19
|
+
controls = true,
|
|
20
|
+
contentClassName,
|
|
21
|
+
className,
|
|
22
|
+
children,
|
|
23
|
+
...props
|
|
24
|
+
}: WindowFrameProps) {
|
|
25
|
+
return (
|
|
26
|
+
<div
|
|
27
|
+
data-slot="window-frame"
|
|
28
|
+
className={cn(
|
|
29
|
+
'overflow-hidden rounded-xl border border-stroke-default bg-surface-default text-default shadow-lg',
|
|
30
|
+
className,
|
|
31
|
+
)}
|
|
32
|
+
{...props}
|
|
33
|
+
>
|
|
34
|
+
<div
|
|
35
|
+
data-slot="window-frame-header"
|
|
36
|
+
className="flex min-h-10 items-center gap-3 border-b border-stroke-default px-4"
|
|
37
|
+
>
|
|
38
|
+
{controls && (
|
|
39
|
+
<div aria-hidden="true" className="flex shrink-0 items-center gap-1.5">
|
|
40
|
+
<span className="size-2.5 rounded-full bg-fill-critical" />
|
|
41
|
+
<span className="size-2.5 rounded-full bg-fill-warning" />
|
|
42
|
+
<span className="size-2.5 rounded-full bg-fill-success" />
|
|
43
|
+
</div>
|
|
44
|
+
)}
|
|
45
|
+
{title && (
|
|
46
|
+
<span className="min-w-0 truncate text-xs font-medium text-[var(--text-secondary)]">
|
|
47
|
+
{title}
|
|
48
|
+
</span>
|
|
49
|
+
)}
|
|
50
|
+
{toolbar && <div className="ml-auto flex items-center gap-2">{toolbar}</div>}
|
|
51
|
+
</div>
|
|
52
|
+
<div data-slot="window-frame-content" className={cn('p-4', contentClassName)}>
|
|
53
|
+
{children}
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
)
|
|
57
|
+
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
--bg-surface-default: #ffffffff;
|
|
17
17
|
--bg-surface-popover: #ffffffff;
|
|
18
18
|
--bg-surface-accent: #f0f0f0ff;
|
|
19
|
+
--bg-surface-field: #0a0a0aff;
|
|
19
20
|
--bg-surface-info: #e8f0f8ff;
|
|
20
21
|
--bg-surface-success: #e8f4e8ff;
|
|
21
22
|
--bg-surface-warning: #fbf4e0ff;
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
--text-disabled: #aaaaaaff;
|
|
52
53
|
--text-inverse: #f8f8f8ff;
|
|
53
54
|
--text-on-fill-primary: #ffffffff;
|
|
55
|
+
--text-on-fill-brand: #ffffffff;
|
|
54
56
|
--text-on-fill-secondary: #0a0a0aff;
|
|
55
57
|
--text-on-surface-accent: #0a0a0aff;
|
|
56
58
|
--text-info: #001e5eff;
|
|
@@ -191,12 +193,13 @@
|
|
|
191
193
|
--bg-surface-default: #0a0a0aff;
|
|
192
194
|
--bg-surface-popover: #141414ff;
|
|
193
195
|
--bg-surface-accent: #1a1a1aff;
|
|
196
|
+
--bg-surface-field: #c0c0c0ff;
|
|
194
197
|
--bg-surface-info: #0a1828ff;
|
|
195
198
|
--bg-surface-success: #0a180aff;
|
|
196
199
|
--bg-surface-warning: #1e1406ff;
|
|
197
200
|
--bg-surface-critical: #1e0a0aff;
|
|
198
201
|
--bg-surface-emphasis: #0a0a1eff;
|
|
199
|
-
--bg-surface-inverse: #
|
|
202
|
+
--bg-surface-inverse: #888888ff;
|
|
200
203
|
--bg-surface-transparent: #ffffff10;
|
|
201
204
|
--bg-overlay: var(--overlays-black-alpha-800);
|
|
202
205
|
--bg-surface-brand: #1e0a08ff;
|
|
@@ -226,6 +229,7 @@
|
|
|
226
229
|
--text-disabled: #444444ff;
|
|
227
230
|
--text-inverse: #0a0a0aff;
|
|
228
231
|
--text-on-fill-primary: #0a0a0aff;
|
|
232
|
+
--text-on-fill-brand: #000000ff;
|
|
229
233
|
--text-on-fill-secondary: #f0f0f0ff;
|
|
230
234
|
--text-on-surface-accent: #f0f0f0ff;
|
|
231
235
|
--text-info: #99bbffff;
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
--bg-surface-default: #f9f9f8ff;
|
|
17
17
|
--bg-surface-popover: #f9f9f8ff;
|
|
18
18
|
--bg-surface-accent: #f1f0efff;
|
|
19
|
+
--bg-surface-field: #dad9d6ff;
|
|
19
20
|
--bg-surface-info: #f1fafdff;
|
|
20
21
|
--bg-surface-success: #f5fbf5ff;
|
|
21
22
|
--bg-surface-warning: #fff7edff;
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
--text-disabled: #cfcecaff;
|
|
52
53
|
--text-inverse: #ffffffff;
|
|
53
54
|
--text-on-fill-primary: #ffffffff;
|
|
55
|
+
--text-on-fill-brand: #000000ff;
|
|
54
56
|
--text-on-fill-secondary: #21201cff;
|
|
55
57
|
--text-on-surface-accent: #21201cff;
|
|
56
58
|
--text-info: #1d3e56ff;
|
|
@@ -191,6 +193,7 @@
|
|
|
191
193
|
--bg-surface-default: #191918ff;
|
|
192
194
|
--bg-surface-popover: #191918ff;
|
|
193
195
|
--bg-surface-accent: #222221ff;
|
|
196
|
+
--bg-surface-field: #494844ff;
|
|
194
197
|
--bg-surface-info: #111a27ff;
|
|
195
198
|
--bg-surface-success: #141a15ff;
|
|
196
199
|
--bg-surface-warning: #1e160fff;
|
|
@@ -226,6 +229,7 @@
|
|
|
226
229
|
--text-disabled: #494844ff;
|
|
227
230
|
--text-inverse: #000000ff;
|
|
228
231
|
--text-on-fill-primary: #000000ff;
|
|
232
|
+
--text-on-fill-brand: #000000ff;
|
|
229
233
|
--text-on-fill-secondary: #eeeeecff;
|
|
230
234
|
--text-on-surface-accent: #eeeeecff;
|
|
231
235
|
--text-info: #c2f3ffff;
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
--bg-surface-default: #ffffffff;
|
|
17
17
|
--bg-surface-popover: #ffffffff;
|
|
18
18
|
--bg-surface-accent: #ff8bd3ff;
|
|
19
|
+
--bg-surface-field: #e8eef2ff;
|
|
19
20
|
--bg-surface-info: #d7f0faff;
|
|
20
21
|
--bg-surface-success: #def6d8ff;
|
|
21
22
|
--bg-surface-warning: #ffe8b5ff;
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
--text-disabled: #b9bdc6ff;
|
|
52
53
|
--text-inverse: #f9faf2ff;
|
|
53
54
|
--text-on-fill-primary: #ffffffff;
|
|
55
|
+
--text-on-fill-brand: #ffffffff;
|
|
54
56
|
--text-on-fill-secondary: #050507ff;
|
|
55
57
|
--text-on-surface-accent: #0b0b0fff;
|
|
56
58
|
--text-info: #064864ff;
|
|
@@ -202,6 +204,7 @@
|
|
|
202
204
|
--bg-surface-default: #050507ff;
|
|
203
205
|
--bg-surface-popover: #050507ff;
|
|
204
206
|
--bg-surface-accent: #351026ff;
|
|
207
|
+
--bg-surface-field: #17191fff;
|
|
205
208
|
--bg-surface-info: #073348ff;
|
|
206
209
|
--bg-surface-success: #0b3017ff;
|
|
207
210
|
--bg-surface-warning: #342602ff;
|
|
@@ -237,6 +240,7 @@
|
|
|
237
240
|
--text-disabled: #5b606aff;
|
|
238
241
|
--text-inverse: #050507ff;
|
|
239
242
|
--text-on-fill-primary: #ffffffff;
|
|
243
|
+
--text-on-fill-brand: #ffffffff;
|
|
240
244
|
--text-on-fill-secondary: #050507ff;
|
|
241
245
|
--text-on-surface-accent: #f7f8f2ff;
|
|
242
246
|
--text-info: #9fdef2ff;
|
|
@@ -23,6 +23,7 @@ export const brutalist: Record<string, string> = {
|
|
|
23
23
|
'--bg-surface-default': '#FFFFFFFF',
|
|
24
24
|
'--bg-surface-popover': '#FFFFFFFF',
|
|
25
25
|
'--bg-surface-accent': '#F0F0F0FF',
|
|
26
|
+
'--bg-surface-field': '#0A0A0AFF',
|
|
26
27
|
'--bg-surface-info': '#E8F0F8FF',
|
|
27
28
|
'--bg-surface-success': '#E8F4E8FF',
|
|
28
29
|
'--bg-surface-warning': '#FBF4E0FF',
|
|
@@ -58,6 +59,7 @@ export const brutalist: Record<string, string> = {
|
|
|
58
59
|
'--text-disabled': '#AAAAAAFF',
|
|
59
60
|
'--text-inverse': '#F8F8F8FF',
|
|
60
61
|
'--text-on-fill-primary': '#FFFFFFFF',
|
|
62
|
+
'--text-on-fill-brand': '#FFFFFFFF',
|
|
61
63
|
'--text-on-fill-secondary': '#0A0A0AFF',
|
|
62
64
|
'--text-on-surface-accent': '#0A0A0AFF',
|
|
63
65
|
'--text-info': '#001E5EFF',
|
|
@@ -196,12 +198,13 @@ export const brutalistDark: Record<string, string> = {
|
|
|
196
198
|
'--bg-surface-default': '#0A0A0AFF',
|
|
197
199
|
'--bg-surface-popover': '#141414FF',
|
|
198
200
|
'--bg-surface-accent': '#1A1A1AFF',
|
|
201
|
+
'--bg-surface-field': '#C0C0C0FF',
|
|
199
202
|
'--bg-surface-info': '#0A1828FF',
|
|
200
203
|
'--bg-surface-success': '#0A180AFF',
|
|
201
204
|
'--bg-surface-warning': '#1E1406FF',
|
|
202
205
|
'--bg-surface-critical': '#1E0A0AFF',
|
|
203
206
|
'--bg-surface-emphasis': '#0A0A1EFF',
|
|
204
|
-
'--bg-surface-inverse': '#
|
|
207
|
+
'--bg-surface-inverse': '#888888FF',
|
|
205
208
|
'--bg-surface-transparent': '#FFFFFF10',
|
|
206
209
|
'--bg-overlay': 'var(--overlays-black-alpha-800)',
|
|
207
210
|
'--bg-surface-brand': '#1E0A08FF',
|
|
@@ -231,6 +234,7 @@ export const brutalistDark: Record<string, string> = {
|
|
|
231
234
|
'--text-disabled': '#444444FF',
|
|
232
235
|
'--text-inverse': '#0A0A0AFF',
|
|
233
236
|
'--text-on-fill-primary': '#0A0A0AFF',
|
|
237
|
+
'--text-on-fill-brand': '#000000FF',
|
|
234
238
|
'--text-on-fill-secondary': '#F0F0F0FF',
|
|
235
239
|
'--text-on-surface-accent': '#F0F0F0FF',
|
|
236
240
|
'--text-info': '#99BBFFFF',
|
|
@@ -12,6 +12,7 @@ export const defaultPreset: Record<string, string> = {
|
|
|
12
12
|
'--bg-surface-default': '#F9F9F8FF',
|
|
13
13
|
'--bg-surface-popover': '#F9F9F8FF',
|
|
14
14
|
'--bg-surface-accent': '#F1F0EFFF',
|
|
15
|
+
'--bg-surface-field': '#DAD9D6FF',
|
|
15
16
|
'--bg-surface-info': '#F1FAFDFF',
|
|
16
17
|
'--bg-surface-success': '#F5FBF5FF',
|
|
17
18
|
'--bg-surface-warning': '#FFF7EDFF',
|
|
@@ -47,6 +48,7 @@ export const defaultPreset: Record<string, string> = {
|
|
|
47
48
|
'--text-disabled': '#CFCECAFF',
|
|
48
49
|
'--text-inverse': '#FFFFFFFF',
|
|
49
50
|
'--text-on-fill-primary': '#FFFFFFFF',
|
|
51
|
+
'--text-on-fill-brand': '#000000FF',
|
|
50
52
|
'--text-on-fill-secondary': '#21201CFF',
|
|
51
53
|
'--text-on-surface-accent': '#21201CFF',
|
|
52
54
|
'--text-info': '#1D3E56FF',
|
|
@@ -186,6 +188,7 @@ export const defaultPresetDark: Record<string, string> = {
|
|
|
186
188
|
'--bg-surface-default': '#191918FF',
|
|
187
189
|
'--bg-surface-popover': '#191918FF',
|
|
188
190
|
'--bg-surface-accent': '#222221FF',
|
|
191
|
+
'--bg-surface-field': '#494844FF',
|
|
189
192
|
'--bg-surface-info': '#111A27FF',
|
|
190
193
|
'--bg-surface-success': '#141A15FF',
|
|
191
194
|
'--bg-surface-warning': '#1E160FFF',
|
|
@@ -221,6 +224,7 @@ export const defaultPresetDark: Record<string, string> = {
|
|
|
221
224
|
'--text-disabled': '#494844FF',
|
|
222
225
|
'--text-inverse': '#000000FF',
|
|
223
226
|
'--text-on-fill-primary': '#000000FF',
|
|
227
|
+
'--text-on-fill-brand': '#000000FF',
|
|
224
228
|
'--text-on-fill-secondary': '#EEEEECFF',
|
|
225
229
|
'--text-on-surface-accent': '#EEEEECFF',
|
|
226
230
|
'--text-info': '#C2F3FFFF',
|
|
@@ -22,6 +22,7 @@ export const signalPop: Record<string, string> = {
|
|
|
22
22
|
'--bg-surface-default': '#FFFFFFFF',
|
|
23
23
|
'--bg-surface-popover': '#FFFFFFFF',
|
|
24
24
|
'--bg-surface-accent': '#FF8BD3FF',
|
|
25
|
+
'--bg-surface-field': '#E8EEF2FF',
|
|
25
26
|
'--bg-surface-info': '#D7F0FAFF',
|
|
26
27
|
'--bg-surface-success': '#DEF6D8FF',
|
|
27
28
|
'--bg-surface-warning': '#FFE8B5FF',
|
|
@@ -57,6 +58,7 @@ export const signalPop: Record<string, string> = {
|
|
|
57
58
|
'--text-disabled': '#B9BDC6FF',
|
|
58
59
|
'--text-inverse': '#F9FAF2FF',
|
|
59
60
|
'--text-on-fill-primary': '#FFFFFFFF',
|
|
61
|
+
'--text-on-fill-brand': '#FFFFFFFF',
|
|
60
62
|
'--text-on-fill-secondary': '#050507FF',
|
|
61
63
|
'--text-on-surface-accent': '#0B0B0FFF',
|
|
62
64
|
'--text-info': '#064864FF',
|
|
@@ -197,6 +199,7 @@ export const signalPopDark: Record<string, string> = {
|
|
|
197
199
|
'--bg-surface-default': '#050507FF',
|
|
198
200
|
'--bg-surface-popover': '#050507FF',
|
|
199
201
|
'--bg-surface-accent': '#351026FF',
|
|
202
|
+
'--bg-surface-field': '#17191FFF',
|
|
200
203
|
'--bg-surface-info': '#073348FF',
|
|
201
204
|
'--bg-surface-success': '#0B3017FF',
|
|
202
205
|
'--bg-surface-warning': '#342602FF',
|
|
@@ -232,6 +235,7 @@ export const signalPopDark: Record<string, string> = {
|
|
|
232
235
|
'--text-disabled': '#5B606AFF',
|
|
233
236
|
'--text-inverse': '#050507FF',
|
|
234
237
|
'--text-on-fill-primary': '#FFFFFFFF',
|
|
238
|
+
'--text-on-fill-brand': '#FFFFFFFF',
|
|
235
239
|
'--text-on-fill-secondary': '#050507FF',
|
|
236
240
|
'--text-on-surface-accent': '#F7F8F2FF',
|
|
237
241
|
'--text-info': '#9FDEF2FF',
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
--input-radius: var(--radius-md);
|
|
31
31
|
--input-height: calc(var(--spacing) * 7);
|
|
32
32
|
--badge-radius: var(--radius-4xl);
|
|
33
|
+
--grid-overlay-color: color-mix(in srgb, var(--text-default) 6%, transparent);
|
|
33
34
|
|
|
34
35
|
/* ── Motion ────────────────────────────────────────────────────────── */
|
|
35
36
|
--motion-duration-fast: 100ms;
|