@leitware/composables 1.3.2 → 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.
Files changed (84) hide show
  1. package/README.md +41 -4
  2. package/dist/presets/brutalist.css +6 -2
  3. package/dist/presets/default.css +5 -1
  4. package/dist/presets/signal-pop.css +5 -1
  5. package/dist/styles.css +1 -1
  6. package/dist/tailwind.css +8 -0
  7. package/package.json +2 -1
  8. package/rules/composables.md +9 -7
  9. package/skills/use-composables/references/optional-dependencies.md +1 -1
  10. package/skills/use-composables/references/public-api.md +7 -2
  11. package/skills/use-composables/references/semantic-utilities.md +2 -0
  12. package/src/_internal/ai-elements/chain-of-thought.tsx +1 -1
  13. package/src/_internal/ai-elements/code-block.tsx +1 -1
  14. package/src/_internal/badge.tsx +2 -2
  15. package/src/_internal/bubble.tsx +1 -1
  16. package/src/_internal/button.tsx +1 -1
  17. package/src/_internal/calendar.tsx +1 -1
  18. package/src/_internal/checkbox.tsx +1 -1
  19. package/src/_internal/combobox.tsx +3 -3
  20. package/src/_internal/command.tsx +3 -3
  21. package/src/_internal/dropdown-menu.tsx +2 -2
  22. package/src/_internal/dropzone.tsx +3 -3
  23. package/src/_internal/field.tsx +2 -2
  24. package/src/_internal/grid-overlay.tsx +3 -3
  25. package/src/_internal/input-group.tsx +1 -1
  26. package/src/_internal/input.tsx +1 -1
  27. package/src/_internal/layout-bento.tsx +12 -12
  28. package/src/_internal/layout.tsx +11 -11
  29. package/src/_internal/marker.tsx +1 -1
  30. package/src/_internal/radio-group.tsx +2 -2
  31. package/src/_internal/resizable.tsx +1 -1
  32. package/src/_internal/select.tsx +5 -2
  33. package/src/_internal/sidebar.tsx +2 -2
  34. package/src/_internal/switch.tsx +1 -1
  35. package/src/_internal/tabs.tsx +2 -2
  36. package/src/_internal/textarea.tsx +1 -1
  37. package/src/_internal/tooltip.tsx +1 -1
  38. package/src/index.ts +5 -1
  39. package/src/lib/utils.ts +2 -2
  40. package/src/opinionated/alert.tsx +5 -5
  41. package/src/opinionated/blocks/content.tsx +247 -0
  42. package/src/opinionated/blocks/features.tsx +242 -0
  43. package/src/opinionated/blocks/heroes.tsx +711 -0
  44. package/src/opinionated/blocks/index.ts +4 -0
  45. package/src/opinionated/blocks/shared.tsx +185 -0
  46. package/src/opinionated/button.tsx +3 -1
  47. package/src/opinionated/collapsible.tsx +1 -1
  48. package/src/opinionated/form-calendar-popover.tsx +1 -1
  49. package/src/opinionated/form-checkbox.tsx +1 -1
  50. package/src/opinionated/form-combobox.tsx +1 -1
  51. package/src/opinionated/form-date-of-birth.tsx +1 -1
  52. package/src/opinionated/form-dropzone.tsx +1 -1
  53. package/src/opinionated/form-input-group.tsx +1 -1
  54. package/src/opinionated/form-input.tsx +1 -1
  55. package/src/opinionated/form-multi-combobox.tsx +1 -1
  56. package/src/opinionated/form-multi-dropzone.tsx +1 -1
  57. package/src/opinionated/form-radiogroup.tsx +1 -1
  58. package/src/opinionated/form-select.tsx +1 -1
  59. package/src/opinionated/form-slider.tsx +1 -1
  60. package/src/opinionated/form-switch.tsx +1 -1
  61. package/src/opinionated/form-textarea.tsx +1 -1
  62. package/src/opinionated/theme-injector.tsx +2 -2
  63. package/src/opinionated/token-config-panel/color-editor.tsx +1 -1
  64. package/src/opinionated/token-config-panel/json-import-export.tsx +1 -1
  65. package/src/opinionated/token-config-panel/spacing-editor.tsx +1 -1
  66. package/src/opinionated/token-config-panel/types.ts +1 -1
  67. package/src/opinionated/token-config-panel/typography-editor.tsx +1 -1
  68. package/src/opinionated/window-frame.tsx +57 -0
  69. package/src/styles/composable.css +10 -10
  70. package/src/styles/presets/brutalist.css +6 -2
  71. package/src/styles/presets/default.css +5 -1
  72. package/src/styles/presets/signal-pop.css +5 -1
  73. package/src/styles/presets-data/brutalist.ts +13 -9
  74. package/src/styles/presets-data/default.ts +7 -3
  75. package/src/styles/presets-data/signal-pop.ts +4 -0
  76. package/src/styles/tokens/base.css +1 -1
  77. package/src/styles/tokens/components.css +1 -0
  78. package/src/styles/tokens/palette.css +2 -2
  79. package/src/styles/tokens/registry.ts +15 -1
  80. package/src/styles/tokens/semantic-utilities.css +8 -0
  81. package/src/styles/tokens/semantic.css +6 -2
  82. package/src/styles/tokens/tailwind-color-adapter.css +3 -1
  83. package/src/styles/tokens/tailwind-public-utilities.css +8 -0
  84. package/src/styles/tokens/tailwind-theme.css +7 -7
@@ -0,0 +1,4 @@
1
+ export * from './content'
2
+ export * from './features'
3
+ export * from './heroes'
4
+ export type { BlockAnimation, BlockBaseProps, BlockCTA, BlockMedia, BlockVariant } from './shared'
@@ -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,11 +16,13 @@ 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' */
22
24
  size?: VariantProps<typeof buttonVariants>['size']
23
- /** Corner shape. 'pill' is fully rounded — circular for icon sizes. @default 'default' */
25
+ /** Corner shape. 'pill' is fully rounded - circular for icon sizes. @default 'default' */
24
26
  shape?: VariantProps<typeof buttonVariants>['shape']
25
27
  className?: string
26
28
  /** Disables the button and prevents interaction. @default false */
@@ -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-50 aria-expanded:bg-muted/50 [--active-scale:1]`}
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 && (
@@ -89,7 +89,7 @@ function FormCalendarPopover({
89
89
  {label && (
90
90
  <FieldLabel htmlFor={inputId}>
91
91
  {label}
92
- {required && <span className="text-danger">*</span>}
92
+ {required && <span className="text-critical">*</span>}
93
93
  </FieldLabel>
94
94
  )}
95
95
  <FieldContent>
@@ -93,7 +93,7 @@ function FormCheckbox({
93
93
  {label && (
94
94
  <FieldLabel htmlFor={checkboxId}>
95
95
  {label}
96
- {required && <span className="text-danger">*</span>}
96
+ {required && <span className="text-critical">*</span>}
97
97
  </FieldLabel>
98
98
  )}
99
99
  </div>
@@ -138,7 +138,7 @@ function FormCombobox({
138
138
  {label && (
139
139
  <FieldLabel htmlFor={inputId}>
140
140
  {label}
141
- {required && <span className="text-danger">*</span>}
141
+ {required && <span className="text-critical">*</span>}
142
142
  </FieldLabel>
143
143
  )}
144
144
  <FieldContent>
@@ -119,7 +119,7 @@ function FormDateOfBirth({
119
119
  {label && (
120
120
  <FieldLabel htmlFor={`${fieldId}-day`}>
121
121
  {label}
122
- {required && <span className="text-danger">*</span>}
122
+ {required && <span className="text-critical">*</span>}
123
123
  </FieldLabel>
124
124
  )}
125
125
  <FieldContent>
@@ -95,7 +95,7 @@ function FormDropZone({
95
95
  {label && (
96
96
  <FieldLabel>
97
97
  {label}
98
- {required && <span className="text-danger">*</span>}
98
+ {required && <span className="text-critical">*</span>}
99
99
  </FieldLabel>
100
100
  )}
101
101
  <FieldContent>
@@ -116,7 +116,7 @@ function FormInputGroup({
116
116
  {label && (
117
117
  <FieldLabel htmlFor={inputId}>
118
118
  {label}
119
- {required && <span className="text-danger">*</span>}
119
+ {required && <span className="text-critical">*</span>}
120
120
  </FieldLabel>
121
121
  )}
122
122
  <FieldContent>
@@ -95,7 +95,7 @@ function FormInput({
95
95
  {label && (
96
96
  <FieldLabel htmlFor={inputId}>
97
97
  {label}
98
- {required && <span className="text-danger">*</span>}
98
+ {required && <span className="text-critical">*</span>}
99
99
  </FieldLabel>
100
100
  )}
101
101
  <FieldContent>
@@ -117,7 +117,7 @@ function FormMultiCombobox({
117
117
  {label && (
118
118
  <FieldLabel htmlFor={inputId}>
119
119
  {label}
120
- {required && <span className="text-danger">*</span>}
120
+ {required && <span className="text-critical">*</span>}
121
121
  </FieldLabel>
122
122
  )}
123
123
  <FieldContent>
@@ -101,7 +101,7 @@ function FormMultiDropZone({
101
101
  {label && (
102
102
  <FieldLabel>
103
103
  {label}
104
- {required && <span className="text-danger">*</span>}
104
+ {required && <span className="text-critical">*</span>}
105
105
  </FieldLabel>
106
106
  )}
107
107
  <FieldContent>
@@ -72,7 +72,7 @@ function FormRadioGroup({
72
72
  {label && (
73
73
  <FieldLabel id={`${radioGroupId}-label`}>
74
74
  {label}
75
- {required && <span className="text-danger">*</span>}
75
+ {required && <span className="text-critical">*</span>}
76
76
  </FieldLabel>
77
77
  )}
78
78
  <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-danger">*</span>}
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-danger">*</span>}
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-danger">*</span>}
91
+ {required && <span className="text-critical">*</span>}
92
92
  </FieldLabel>
93
93
  )}
94
94
  {description && <FieldDescription>{description}</FieldDescription>}
@@ -57,7 +57,7 @@ function FormTextarea({
57
57
  {label && (
58
58
  <FieldLabel htmlFor={textareaId}>
59
59
  {label}
60
- {required && <span className="text-danger">*</span>}
60
+ {required && <span className="text-critical">*</span>}
61
61
  </FieldLabel>
62
62
  )}
63
63
  <FieldContent>
@@ -1,11 +1,11 @@
1
1
  import { TokenConfigPanel } from './token-config-panel'
2
2
 
3
3
  /**
4
- * ThemeInjector — drop this anywhere in your app to get a floating theme
4
+ * ThemeInjector - drop this anywhere in your app to get a floating theme
5
5
  * control panel. It renders a fixed palette button in the top-right corner
6
6
  * of the viewport that opens the full token config sheet.
7
7
  *
8
- * Works on any page without modifying your layout — the button lives outside
8
+ * Works on any page without modifying your layout - the button lives outside
9
9
  * normal document flow via `position: fixed`.
10
10
  *
11
11
  * Usage:
@@ -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-[var(--bg-surface-hover)] transition-colors"
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-[var(--text-critical)]">
75
+ <Typography variant="caption-100" className="text-critical">
76
76
  {jsonError}
77
77
  </Typography>
78
78
  )}
@@ -351,7 +351,7 @@ export function DimensionSliderRow({
351
351
  }
352
352
 
353
353
  /* ------------------------------------------------------------------ */
354
- /* FactorSliderRow — edits calc(var(base) * factor) component tokens */
354
+ /* FactorSliderRow - edits calc(var(base) * factor) component tokens */
355
355
  /* ------------------------------------------------------------------ */
356
356
 
357
357
  export function FactorSliderRow({
@@ -22,7 +22,7 @@ export interface DimensionToken {
22
22
  export interface FactorToken {
23
23
  cssVar: string
24
24
  label: string
25
- /** Base token the factor multiplies — the override is written as calc(var(base) * factor). */
25
+ /** Base token the factor multiplies - the override is written as calc(var(base) * factor). */
26
26
  base: '--radius' | '--spacing'
27
27
  defaultFactor: number
28
28
  min: number
@@ -6,7 +6,7 @@ import type { FontGroup } from './types'
6
6
  import { getResolvedDimension } from './helpers'
7
7
 
8
8
  /* ------------------------------------------------------------------ */
9
- /* Google Fonts — grouped by style */
9
+ /* Google Fonts - grouped by style */
10
10
  /* ------------------------------------------------------------------ */
11
11
 
12
12
  const FONT_GROUPS: FontGroup[] = [
@@ -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
+ }
@@ -1,19 +1,19 @@
1
1
  /* ============================================================================
2
- @leitware/composables — Main Stylesheet
2
+ @leitware/composables - Main Stylesheet
3
3
  ============================================================================
4
4
  Design tokens, theme registration, and base styles for the component system.
5
- This file does NOT include Tailwind itself — the downstream app owns that.
5
+ This file does NOT include Tailwind itself - the downstream app owns that.
6
6
  See README.md "Quick Start" for the full import pattern.
7
7
 
8
8
  File structure:
9
- tokens/palette.css — Primitive color scales (build-time + runtime)
10
- tokens/tailwind-color-adapter.css — Generated Tailwind color aliases
11
- tokens/tailwind-theme.css — Non-color Tailwind theme registrations
12
- tokens/semantic.css — Semantic role tokens (:root + .dark)
13
- tokens/components.css — Component-level tunables
14
- presets/default.css — The canonical default light/dark preset
15
- tokens/semantic-utilities.css — Generated public semantic classes
16
- tokens/base.css — Global base styles (@layer base)
9
+ tokens/palette.css - Primitive color scales (build-time + runtime)
10
+ tokens/tailwind-color-adapter.css - Generated Tailwind color aliases
11
+ tokens/tailwind-theme.css - Non-color Tailwind theme registrations
12
+ tokens/semantic.css - Semantic role tokens (:root + .dark)
13
+ tokens/components.css - Component-level tunables
14
+ presets/default.css - The canonical default light/dark preset
15
+ tokens/semantic-utilities.css - Generated public semantic classes
16
+ tokens/base.css - Global base styles (@layer base)
17
17
  ============================================================================ */
18
18
 
19
19
  @import 'shadcn/tailwind.css';
@@ -1,5 +1,5 @@
1
1
  /* ============================================================================
2
- @leitware/composables — Brutalist Preset
2
+ @leitware/composables - Brutalist Preset
3
3
  ============================================================================
4
4
  Raw, architectural, uncompromising. Structural honesty: things look exactly like what they are.
5
5
 
@@ -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: #606060ff;
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;
@@ -1,5 +1,5 @@
1
1
  /* ============================================================================
2
- @leitware/composables — Default Preset
2
+ @leitware/composables - Default Preset
3
3
  ============================================================================
4
4
  Clean, neutral, Inter-based. The "no opinion" starting point.
5
5
 
@@ -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;
@@ -1,5 +1,5 @@
1
1
  /* ============================================================================
2
- @leitware/composables — Signal Pop Preset
2
+ @leitware/composables - Signal Pop Preset
3
3
  ============================================================================
4
4
  Bright consumer-tech energy: electric modules, capsule controls, hard outlines, and codey labels.
5
5
 
@@ -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;