@leitware/composables 1.6.0 → 1.7.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 +86 -23
- package/dist/presets/kumo.css +174 -100
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/rules/composables.md +37 -32
- package/skills/use-composables/references/public-api.md +2 -2
- package/src/_internal/button.tsx +5 -5
- package/src/_internal/clipboard-text.tsx +102 -0
- package/src/_internal/flow.tsx +390 -0
- package/src/_internal/layer-card.tsx +61 -0
- package/src/_internal/table-of-contents.tsx +124 -0
- package/src/hooks/use-table-of-contents-active-id.ts +63 -0
- package/src/index.ts +50 -0
- package/src/lib/clipboard.ts +57 -0
- package/src/lib/flow.ts +53 -0
- package/src/opinionated/clipboard-text.tsx +135 -0
- package/src/opinionated/flow.tsx +74 -0
- package/src/opinionated/layer-card.tsx +49 -0
- package/src/opinionated/table-of-contents.tsx +121 -0
- package/src/styles/presets/kumo.css +174 -100
- package/src/styles/presets-data/kumo.ts +32 -50
- package/src/styles/tokens/components.css +20 -0
package/README.md
CHANGED
|
@@ -396,8 +396,9 @@ Kumo takes its cues from [Cloudflare's Kumo](https://kumo-ui.com/components/butt
|
|
|
396
396
|
neutral light/dark surfaces, blue primary actions, an orange brand accent, and
|
|
397
397
|
solid red destructive buttons. Primary (`variant="default"`) and destructive
|
|
398
398
|
buttons have darker borders, vertical gradients, and inset top highlights.
|
|
399
|
-
All five brand button variants use
|
|
400
|
-
|
|
399
|
+
All five brand button variants use vivid colour gradients and brighter upper
|
|
400
|
+
highlights, with semibold white labels and a subtle text shadow; alerts and
|
|
401
|
+
badges continue to use the coordinated tinted surfaces.
|
|
401
402
|
Its default and large buttons are 36px and 40px tall; small and extra-small
|
|
402
403
|
buttons are 26px and 20px tall. The preset also styles fields, cards, status
|
|
403
404
|
surfaces, and the sidebar through the existing token system.
|
|
@@ -406,6 +407,7 @@ Button finishes can be tuned with `--button-primary-border`,
|
|
|
406
407
|
`--button-primary-background-image`, `--button-primary-hover-background-image`,
|
|
407
408
|
and `--button-primary-shadow`, with equivalent `--button-destructive-*`, `--button-brand-*`, and
|
|
408
409
|
`--button-brand-2-*` through `--button-brand-5-*` tokens.
|
|
410
|
+
Brand labels use `--button-brand-font-weight` and `--button-brand-text-shadow`.
|
|
409
411
|
Destructive fill and text use `--button-destructive-bg` and
|
|
410
412
|
`--button-destructive-text`, independently of the tinted critical surfaces used
|
|
411
413
|
by alerts and badges. Button sizes use `--button-height`, `--button-height-xs`,
|
|
@@ -528,30 +530,91 @@ All normal components import from `@leitware/composables`; AI components import
|
|
|
528
530
|
|
|
529
531
|
### Navigation
|
|
530
532
|
|
|
531
|
-
| Component
|
|
532
|
-
|
|
|
533
|
-
| `tabs`
|
|
534
|
-
| `breadcrumb`
|
|
535
|
-
| `pagination`
|
|
536
|
-
| `sidebar`
|
|
537
|
-
| `dropdown-menu`
|
|
533
|
+
| Component | Description |
|
|
534
|
+
| ------------------- | -------------------------------------------------------------------------- |
|
|
535
|
+
| `tabs` | Tabbed content navigation with items array API |
|
|
536
|
+
| `breadcrumb` | Navigation trail with items array API |
|
|
537
|
+
| `pagination` | Page navigation with currentPage and totalPages API |
|
|
538
|
+
| `sidebar` | Application sidebar with collapsible navigation groups |
|
|
539
|
+
| `dropdown-menu` | Contextual menu triggered by a button |
|
|
540
|
+
| `table-of-contents` | Nested section navigation with an active rail and optional scroll tracking |
|
|
538
541
|
|
|
539
542
|
### Data Display
|
|
540
543
|
|
|
541
|
-
| Component
|
|
542
|
-
|
|
|
543
|
-
| `table`
|
|
544
|
-
| `card`
|
|
545
|
-
| `accordion`
|
|
546
|
-
| `collapsible`
|
|
547
|
-
| `item`
|
|
548
|
-
| `message`
|
|
549
|
-
| `bubble`
|
|
550
|
-
| `marker`
|
|
551
|
-
| `empty`
|
|
552
|
-
| `carousel`
|
|
553
|
-
| `code-block`
|
|
554
|
-
| `list`
|
|
544
|
+
| Component | Description |
|
|
545
|
+
| ---------------- | ---------------------------------------------------------------------------- |
|
|
546
|
+
| `table` | Semantic HTML table with styled rows and cells |
|
|
547
|
+
| `card` | Bordered content container with title, description, action, and footer props |
|
|
548
|
+
| `accordion` | Vertically collapsible content sections with items array API |
|
|
549
|
+
| `collapsible` | Expandable and collapsible content panel with trigger prop |
|
|
550
|
+
| `item` | Flexible list item with title, description, icon, and actions |
|
|
551
|
+
| `message` | Message row primitives for chat, activity, and assistant UIs |
|
|
552
|
+
| `bubble` | Message bubble primitives with semantic variants |
|
|
553
|
+
| `marker` | Inline metadata marker with icon, separator, and border variants |
|
|
554
|
+
| `empty` | Empty state placeholder with icon, title, and description |
|
|
555
|
+
| `carousel` | Horizontally scrollable content slider with items array API |
|
|
556
|
+
| `code-block` | Monospace code display with line numbers |
|
|
557
|
+
| `list` | Variant list renderer: arrow, bullet |
|
|
558
|
+
| `layer-card` | Layered content surface with recessed header and footer |
|
|
559
|
+
| `flow` | Connected workflow steps and parallel branches |
|
|
560
|
+
| `clipboard-text` | Read-only copy field with success and error feedback |
|
|
561
|
+
|
|
562
|
+
### Kumo-inspired compositions
|
|
563
|
+
|
|
564
|
+
`LayerCard`, `TableOfContents`, `Flow`, and `ClipboardText` are available from the
|
|
565
|
+
package root. They use the same semantic tokens as the rest of the library and
|
|
566
|
+
adapt to every preset; Kumo adds its soft layered surfaces and diagram canvas.
|
|
567
|
+
Their treatments follow the [Kumo component references](https://kumo-ui.com/components/layer-card/).
|
|
568
|
+
|
|
569
|
+
```tsx
|
|
570
|
+
import { LayerCard, TableOfContents, Flow, ClipboardText } from '@leitware/composables'
|
|
571
|
+
|
|
572
|
+
<LayerCard title="Next steps" footer="Last updated just now">
|
|
573
|
+
<ClipboardText text="bun add @leitware/composables" />
|
|
574
|
+
</LayerCard>
|
|
575
|
+
|
|
576
|
+
<TableOfContents
|
|
577
|
+
items={[
|
|
578
|
+
{ id: 'overview', label: 'Overview' },
|
|
579
|
+
{ id: 'setup', label: 'Setup', children: [{ id: 'install', label: 'Installation' }] },
|
|
580
|
+
]}
|
|
581
|
+
trackScroll
|
|
582
|
+
/>
|
|
583
|
+
|
|
584
|
+
<Flow
|
|
585
|
+
steps={[
|
|
586
|
+
{ id: 'request', label: 'Request' },
|
|
587
|
+
{ id: 'parallel', branches: [
|
|
588
|
+
[{ id: 'cache', label: 'Cache lookup' }],
|
|
589
|
+
[{ id: 'worker', label: 'Worker' }, { id: 'validate', label: 'Validate' }],
|
|
590
|
+
] },
|
|
591
|
+
{ id: 'response', label: 'Response' },
|
|
592
|
+
]}
|
|
593
|
+
/>
|
|
594
|
+
```
|
|
595
|
+
|
|
596
|
+
LayerCard exposes `.Root`, `.Primary`, and `.Secondary` for custom composition.
|
|
597
|
+
TableOfContents exposes `.Title`, `.List`, `.Item`, and `.Group`; items support
|
|
598
|
+
Base UI's `render` prop for router links. `activeId` and `onActiveIdChange` support
|
|
599
|
+
controlled selection. Optional `trackScroll` follows matching document section
|
|
600
|
+
IDs with `scrollOffset` for sticky headers. `useTableOfContentsActiveId` also
|
|
601
|
+
supports a custom scroll root.
|
|
602
|
+
|
|
603
|
+
Flow exposes `.Node`, `.Parallel`, `.List`, and `.Anchor`. Use `orientation="vertical"`
|
|
604
|
+
for a top-to-bottom diagram, `align="center"` for centered branches, or `canvas={false}`
|
|
605
|
+
for an inline diagram. Connectors update when nodes, anchors, or the viewport
|
|
606
|
+
resize. The canvas supports native scrolling and mouse dragging; node controls
|
|
607
|
+
retain their normal interactions. Node IDs should be unique within the document.
|
|
608
|
+
|
|
609
|
+
ClipboardText supports `sm`, `default`, and `lg` sizes, `textToCopy` for a value
|
|
610
|
+
that differs from the display, optional tooltips, localized `labels`, and
|
|
611
|
+
`onCopy` / `onCopyError` callbacks. Feedback resets after `feedbackDuration`
|
|
612
|
+
(default 1500ms). Failed clipboard writes never display a success state.
|
|
613
|
+
|
|
614
|
+
Component tokens include `--layer-card-radius`, `--layer-card-padding`,
|
|
615
|
+
`--layer-card-shadow`, `--clipboard-text-height` (and `-sm` / `-lg`),
|
|
616
|
+
`--clipboard-text-radius`, `--flow-gap`, `--flow-branch-gap`, `--flow-node-radius`,
|
|
617
|
+
`--flow-node-shadow`, and the `--flow-canvas-*` controls.
|
|
555
618
|
|
|
556
619
|
### Form Components
|
|
557
620
|
|
package/dist/presets/kumo.css
CHANGED
|
@@ -180,6 +180,12 @@
|
|
|
180
180
|
--button-font-size-xs: var(--text-xs);
|
|
181
181
|
--button-font-size-sm: var(--text-xs);
|
|
182
182
|
--button-gap: calc(var(--spacing) * 1.5);
|
|
183
|
+
--button-brand-font-weight: 600;
|
|
184
|
+
--button-brand-text-shadow: 0 1px 1px #00000059, 0 0 1px #00000040;
|
|
185
|
+
--layer-card-radius: var(--radius-lg);
|
|
186
|
+
--layer-card-shadow: 0 1px 2px #0000000d;
|
|
187
|
+
--flow-node-shadow: 0 1px 2px #0000000d;
|
|
188
|
+
--flow-canvas-background-image: radial-gradient(var(--border-disabled) 1px, transparent 1px);
|
|
183
189
|
--button-secondary-border: var(--border-secondary);
|
|
184
190
|
--button-secondary-hover-bg: var(--bg-surface-hover);
|
|
185
191
|
--button-secondary-shadow: 0 1px 2px #0000000d;
|
|
@@ -225,95 +231,126 @@
|
|
|
225
231
|
inset 0 1px 0 color-mix(in oklch, var(--bg-fill-critical), white 30%), 0 1px 2px #0000000d;
|
|
226
232
|
--button-destructive-hover-shadow:
|
|
227
233
|
inset 0 1px 0 color-mix(in oklch, var(--bg-fill-critical), white 30%), 0 1px 2px #0000000d;
|
|
228
|
-
--button-brand-
|
|
229
|
-
--button-brand-
|
|
234
|
+
--button-brand-bg: #f45b00;
|
|
235
|
+
--button-brand-text: #ffffff;
|
|
236
|
+
--button-brand-border: color-mix(in oklch, #f45b00, black 8%);
|
|
237
|
+
--button-brand-hover-border: #f45b00;
|
|
230
238
|
--button-brand-background-image: linear-gradient(
|
|
231
239
|
to bottom,
|
|
232
|
-
|
|
233
|
-
#
|
|
240
|
+
#ff8a00 0%,
|
|
241
|
+
#f45b00 20%,
|
|
242
|
+
#e04400 100%
|
|
234
243
|
);
|
|
235
244
|
--button-brand-hover-background-image: linear-gradient(
|
|
236
245
|
to bottom,
|
|
237
|
-
|
|
238
|
-
#
|
|
246
|
+
#ff8a00 0%,
|
|
247
|
+
#f45b00 20%,
|
|
248
|
+
color-mix(in oklch, #e04400, #f45b00 25%) 100%
|
|
239
249
|
);
|
|
240
|
-
--button-brand-shadow:
|
|
250
|
+
--button-brand-shadow:
|
|
251
|
+
inset 0 1px 0 color-mix(in oklch, #ff8a00, white 15%),
|
|
252
|
+
inset 0 -1px 0 color-mix(in oklch, #f45b00, black 8%),
|
|
253
|
+
0 2px 3px color-mix(in srgb, #f45b00, transparent 82%);
|
|
241
254
|
--button-brand-hover-shadow:
|
|
242
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
--button-brand-2-
|
|
246
|
-
--button-brand-2-
|
|
255
|
+
inset 0 1px 0 color-mix(in oklch, #ff8a00, white 15%),
|
|
256
|
+
inset 0 -1px 0 color-mix(in oklch, #f45b00, black 8%),
|
|
257
|
+
0 2px 6px color-mix(in srgb, #f45b00, transparent 75%);
|
|
258
|
+
--button-brand-2-bg: #009db8;
|
|
259
|
+
--button-brand-2-text: #ffffff;
|
|
260
|
+
--button-brand-2-border: color-mix(in oklch, #009db8, black 8%);
|
|
261
|
+
--button-brand-2-hover-border: #009db8;
|
|
247
262
|
--button-brand-2-background-image: linear-gradient(
|
|
248
263
|
to bottom,
|
|
249
|
-
|
|
250
|
-
#
|
|
264
|
+
#00d8ea 0%,
|
|
265
|
+
#009db8 20%,
|
|
266
|
+
#007dab 100%
|
|
251
267
|
);
|
|
252
268
|
--button-brand-2-hover-background-image: linear-gradient(
|
|
253
269
|
to bottom,
|
|
254
|
-
|
|
255
|
-
#
|
|
270
|
+
#00d8ea 0%,
|
|
271
|
+
#009db8 20%,
|
|
272
|
+
color-mix(in oklch, #007dab, #009db8 25%) 100%
|
|
256
273
|
);
|
|
257
274
|
--button-brand-2-shadow:
|
|
258
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
275
|
+
inset 0 1px 0 color-mix(in oklch, #00d8ea, white 15%),
|
|
276
|
+
inset 0 -1px 0 color-mix(in oklch, #009db8, black 8%),
|
|
277
|
+
0 2px 3px color-mix(in srgb, #009db8, transparent 82%);
|
|
259
278
|
--button-brand-2-hover-shadow:
|
|
260
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
--button-brand-3-
|
|
264
|
-
--button-brand-3-
|
|
279
|
+
inset 0 1px 0 color-mix(in oklch, #00d8ea, white 15%),
|
|
280
|
+
inset 0 -1px 0 color-mix(in oklch, #009db8, black 8%),
|
|
281
|
+
0 2px 6px color-mix(in srgb, #009db8, transparent 75%);
|
|
282
|
+
--button-brand-3-bg: #aa0aff;
|
|
283
|
+
--button-brand-3-text: #ffffff;
|
|
284
|
+
--button-brand-3-border: color-mix(in oklch, #aa0aff, black 8%);
|
|
285
|
+
--button-brand-3-hover-border: #aa0aff;
|
|
265
286
|
--button-brand-3-background-image: linear-gradient(
|
|
266
287
|
to bottom,
|
|
267
|
-
|
|
268
|
-
#
|
|
288
|
+
#e04bff 0%,
|
|
289
|
+
#aa0aff 20%,
|
|
290
|
+
#7c00e5 100%
|
|
269
291
|
);
|
|
270
292
|
--button-brand-3-hover-background-image: linear-gradient(
|
|
271
293
|
to bottom,
|
|
272
|
-
|
|
273
|
-
#
|
|
294
|
+
#e04bff 0%,
|
|
295
|
+
#aa0aff 20%,
|
|
296
|
+
color-mix(in oklch, #7c00e5, #aa0aff 25%) 100%
|
|
274
297
|
);
|
|
275
298
|
--button-brand-3-shadow:
|
|
276
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
299
|
+
inset 0 1px 0 color-mix(in oklch, #e04bff, white 15%),
|
|
300
|
+
inset 0 -1px 0 color-mix(in oklch, #aa0aff, black 8%),
|
|
301
|
+
0 2px 3px color-mix(in srgb, #aa0aff, transparent 82%);
|
|
277
302
|
--button-brand-3-hover-shadow:
|
|
278
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
--button-brand-4-
|
|
282
|
-
--button-brand-4-
|
|
303
|
+
inset 0 1px 0 color-mix(in oklch, #e04bff, white 15%),
|
|
304
|
+
inset 0 -1px 0 color-mix(in oklch, #aa0aff, black 8%),
|
|
305
|
+
0 2px 6px color-mix(in srgb, #aa0aff, transparent 75%);
|
|
306
|
+
--button-brand-4-bg: #1464ff;
|
|
307
|
+
--button-brand-4-text: #ffffff;
|
|
308
|
+
--button-brand-4-border: color-mix(in oklch, #1464ff, black 8%);
|
|
309
|
+
--button-brand-4-hover-border: #1464ff;
|
|
283
310
|
--button-brand-4-background-image: linear-gradient(
|
|
284
311
|
to bottom,
|
|
285
|
-
|
|
286
|
-
#
|
|
312
|
+
#388bff 0%,
|
|
313
|
+
#1464ff 20%,
|
|
314
|
+
#0045ef 100%
|
|
287
315
|
);
|
|
288
316
|
--button-brand-4-hover-background-image: linear-gradient(
|
|
289
317
|
to bottom,
|
|
290
|
-
|
|
291
|
-
#
|
|
318
|
+
#388bff 0%,
|
|
319
|
+
#1464ff 20%,
|
|
320
|
+
color-mix(in oklch, #0045ef, #1464ff 25%) 100%
|
|
292
321
|
);
|
|
293
322
|
--button-brand-4-shadow:
|
|
294
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
323
|
+
inset 0 1px 0 color-mix(in oklch, #388bff, white 15%),
|
|
324
|
+
inset 0 -1px 0 color-mix(in oklch, #1464ff, black 8%),
|
|
325
|
+
0 2px 3px color-mix(in srgb, #1464ff, transparent 82%);
|
|
295
326
|
--button-brand-4-hover-shadow:
|
|
296
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
--button-brand-5-
|
|
300
|
-
--button-brand-5-
|
|
327
|
+
inset 0 1px 0 color-mix(in oklch, #388bff, white 15%),
|
|
328
|
+
inset 0 -1px 0 color-mix(in oklch, #1464ff, black 8%),
|
|
329
|
+
0 2px 6px color-mix(in srgb, #1464ff, transparent 75%);
|
|
330
|
+
--button-brand-5-bg: #00ab38;
|
|
331
|
+
--button-brand-5-text: #ffffff;
|
|
332
|
+
--button-brand-5-border: color-mix(in oklch, #00ab38, black 8%);
|
|
333
|
+
--button-brand-5-hover-border: #00ab38;
|
|
301
334
|
--button-brand-5-background-image: linear-gradient(
|
|
302
335
|
to bottom,
|
|
303
|
-
|
|
304
|
-
#
|
|
336
|
+
#63e600 0%,
|
|
337
|
+
#00ab38 20%,
|
|
338
|
+
#008d21 100%
|
|
305
339
|
);
|
|
306
340
|
--button-brand-5-hover-background-image: linear-gradient(
|
|
307
341
|
to bottom,
|
|
308
|
-
|
|
309
|
-
#
|
|
342
|
+
#63e600 0%,
|
|
343
|
+
#00ab38 20%,
|
|
344
|
+
color-mix(in oklch, #008d21, #00ab38 25%) 100%
|
|
310
345
|
);
|
|
311
346
|
--button-brand-5-shadow:
|
|
312
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
347
|
+
inset 0 1px 0 color-mix(in oklch, #63e600, white 15%),
|
|
348
|
+
inset 0 -1px 0 color-mix(in oklch, #00ab38, black 8%),
|
|
349
|
+
0 2px 3px color-mix(in srgb, #00ab38, transparent 82%);
|
|
313
350
|
--button-brand-5-hover-shadow:
|
|
314
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
315
|
-
|
|
316
|
-
|
|
351
|
+
inset 0 1px 0 color-mix(in oklch, #63e600, white 15%),
|
|
352
|
+
inset 0 -1px 0 color-mix(in oklch, #00ab38, black 8%),
|
|
353
|
+
0 2px 6px color-mix(in srgb, #00ab38, transparent 75%);
|
|
317
354
|
--background: var(--bg-default);
|
|
318
355
|
--foreground: var(--text-default);
|
|
319
356
|
--card: var(--bg-surface-default);
|
|
@@ -459,7 +496,13 @@
|
|
|
459
496
|
--button-font-size-xs: var(--text-xs);
|
|
460
497
|
--button-font-size-sm: var(--text-xs);
|
|
461
498
|
--button-gap: calc(var(--spacing) * 1.5);
|
|
499
|
+
--button-brand-font-weight: 600;
|
|
500
|
+
--button-brand-text-shadow: 0 1px 1px #00000059, 0 0 1px #00000040;
|
|
462
501
|
--card-radius: var(--radius-xl);
|
|
502
|
+
--layer-card-radius: var(--radius-lg);
|
|
503
|
+
--layer-card-shadow: 0 1px 2px #0000000d;
|
|
504
|
+
--flow-node-shadow: 0 1px 2px #0000000d;
|
|
505
|
+
--flow-canvas-background-image: radial-gradient(var(--border-disabled) 1px, transparent 1px);
|
|
463
506
|
--input-radius: var(--radius-lg);
|
|
464
507
|
--input-height: calc(var(--spacing) * 9);
|
|
465
508
|
--badge-radius: var(--radius-md);
|
|
@@ -520,95 +563,126 @@
|
|
|
520
563
|
inset 0 1px 0 color-mix(in oklch, var(--bg-fill-critical), white 30%), 0 1px 2px #0000000d;
|
|
521
564
|
--button-destructive-hover-shadow:
|
|
522
565
|
inset 0 1px 0 color-mix(in oklch, var(--bg-fill-critical), white 30%), 0 1px 2px #0000000d;
|
|
523
|
-
--button-brand-
|
|
524
|
-
--button-brand-
|
|
566
|
+
--button-brand-bg: #f45b00;
|
|
567
|
+
--button-brand-text: #ffffff;
|
|
568
|
+
--button-brand-border: color-mix(in oklch, #f45b00, black 8%);
|
|
569
|
+
--button-brand-hover-border: #f45b00;
|
|
525
570
|
--button-brand-background-image: linear-gradient(
|
|
526
571
|
to bottom,
|
|
527
|
-
|
|
528
|
-
#
|
|
572
|
+
#ff8a00 0%,
|
|
573
|
+
#f45b00 20%,
|
|
574
|
+
#e04400 100%
|
|
529
575
|
);
|
|
530
576
|
--button-brand-hover-background-image: linear-gradient(
|
|
531
577
|
to bottom,
|
|
532
|
-
|
|
533
|
-
#
|
|
578
|
+
#ff8a00 0%,
|
|
579
|
+
#f45b00 20%,
|
|
580
|
+
color-mix(in oklch, #e04400, #f45b00 25%) 100%
|
|
534
581
|
);
|
|
535
|
-
--button-brand-shadow:
|
|
582
|
+
--button-brand-shadow:
|
|
583
|
+
inset 0 1px 0 color-mix(in oklch, #ff8a00, white 15%),
|
|
584
|
+
inset 0 -1px 0 color-mix(in oklch, #f45b00, black 8%),
|
|
585
|
+
0 2px 3px color-mix(in srgb, #f45b00, transparent 82%);
|
|
536
586
|
--button-brand-hover-shadow:
|
|
537
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
--button-brand-2-
|
|
541
|
-
--button-brand-2-
|
|
587
|
+
inset 0 1px 0 color-mix(in oklch, #ff8a00, white 15%),
|
|
588
|
+
inset 0 -1px 0 color-mix(in oklch, #f45b00, black 8%),
|
|
589
|
+
0 2px 6px color-mix(in srgb, #f45b00, transparent 75%);
|
|
590
|
+
--button-brand-2-bg: #009db8;
|
|
591
|
+
--button-brand-2-text: #ffffff;
|
|
592
|
+
--button-brand-2-border: color-mix(in oklch, #009db8, black 8%);
|
|
593
|
+
--button-brand-2-hover-border: #009db8;
|
|
542
594
|
--button-brand-2-background-image: linear-gradient(
|
|
543
595
|
to bottom,
|
|
544
|
-
|
|
545
|
-
#
|
|
596
|
+
#00d8ea 0%,
|
|
597
|
+
#009db8 20%,
|
|
598
|
+
#007dab 100%
|
|
546
599
|
);
|
|
547
600
|
--button-brand-2-hover-background-image: linear-gradient(
|
|
548
601
|
to bottom,
|
|
549
|
-
|
|
550
|
-
#
|
|
602
|
+
#00d8ea 0%,
|
|
603
|
+
#009db8 20%,
|
|
604
|
+
color-mix(in oklch, #007dab, #009db8 25%) 100%
|
|
551
605
|
);
|
|
552
606
|
--button-brand-2-shadow:
|
|
553
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
607
|
+
inset 0 1px 0 color-mix(in oklch, #00d8ea, white 15%),
|
|
608
|
+
inset 0 -1px 0 color-mix(in oklch, #009db8, black 8%),
|
|
609
|
+
0 2px 3px color-mix(in srgb, #009db8, transparent 82%);
|
|
554
610
|
--button-brand-2-hover-shadow:
|
|
555
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
--button-brand-3-
|
|
559
|
-
--button-brand-3-
|
|
611
|
+
inset 0 1px 0 color-mix(in oklch, #00d8ea, white 15%),
|
|
612
|
+
inset 0 -1px 0 color-mix(in oklch, #009db8, black 8%),
|
|
613
|
+
0 2px 6px color-mix(in srgb, #009db8, transparent 75%);
|
|
614
|
+
--button-brand-3-bg: #aa0aff;
|
|
615
|
+
--button-brand-3-text: #ffffff;
|
|
616
|
+
--button-brand-3-border: color-mix(in oklch, #aa0aff, black 8%);
|
|
617
|
+
--button-brand-3-hover-border: #aa0aff;
|
|
560
618
|
--button-brand-3-background-image: linear-gradient(
|
|
561
619
|
to bottom,
|
|
562
|
-
|
|
563
|
-
#
|
|
620
|
+
#e04bff 0%,
|
|
621
|
+
#aa0aff 20%,
|
|
622
|
+
#7c00e5 100%
|
|
564
623
|
);
|
|
565
624
|
--button-brand-3-hover-background-image: linear-gradient(
|
|
566
625
|
to bottom,
|
|
567
|
-
|
|
568
|
-
#
|
|
626
|
+
#e04bff 0%,
|
|
627
|
+
#aa0aff 20%,
|
|
628
|
+
color-mix(in oklch, #7c00e5, #aa0aff 25%) 100%
|
|
569
629
|
);
|
|
570
630
|
--button-brand-3-shadow:
|
|
571
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
631
|
+
inset 0 1px 0 color-mix(in oklch, #e04bff, white 15%),
|
|
632
|
+
inset 0 -1px 0 color-mix(in oklch, #aa0aff, black 8%),
|
|
633
|
+
0 2px 3px color-mix(in srgb, #aa0aff, transparent 82%);
|
|
572
634
|
--button-brand-3-hover-shadow:
|
|
573
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
--button-brand-4-
|
|
577
|
-
--button-brand-4-
|
|
635
|
+
inset 0 1px 0 color-mix(in oklch, #e04bff, white 15%),
|
|
636
|
+
inset 0 -1px 0 color-mix(in oklch, #aa0aff, black 8%),
|
|
637
|
+
0 2px 6px color-mix(in srgb, #aa0aff, transparent 75%);
|
|
638
|
+
--button-brand-4-bg: #1464ff;
|
|
639
|
+
--button-brand-4-text: #ffffff;
|
|
640
|
+
--button-brand-4-border: color-mix(in oklch, #1464ff, black 8%);
|
|
641
|
+
--button-brand-4-hover-border: #1464ff;
|
|
578
642
|
--button-brand-4-background-image: linear-gradient(
|
|
579
643
|
to bottom,
|
|
580
|
-
|
|
581
|
-
#
|
|
644
|
+
#388bff 0%,
|
|
645
|
+
#1464ff 20%,
|
|
646
|
+
#0045ef 100%
|
|
582
647
|
);
|
|
583
648
|
--button-brand-4-hover-background-image: linear-gradient(
|
|
584
649
|
to bottom,
|
|
585
|
-
|
|
586
|
-
#
|
|
650
|
+
#388bff 0%,
|
|
651
|
+
#1464ff 20%,
|
|
652
|
+
color-mix(in oklch, #0045ef, #1464ff 25%) 100%
|
|
587
653
|
);
|
|
588
654
|
--button-brand-4-shadow:
|
|
589
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
655
|
+
inset 0 1px 0 color-mix(in oklch, #388bff, white 15%),
|
|
656
|
+
inset 0 -1px 0 color-mix(in oklch, #1464ff, black 8%),
|
|
657
|
+
0 2px 3px color-mix(in srgb, #1464ff, transparent 82%);
|
|
590
658
|
--button-brand-4-hover-shadow:
|
|
591
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
--button-brand-5-
|
|
595
|
-
--button-brand-5-
|
|
659
|
+
inset 0 1px 0 color-mix(in oklch, #388bff, white 15%),
|
|
660
|
+
inset 0 -1px 0 color-mix(in oklch, #1464ff, black 8%),
|
|
661
|
+
0 2px 6px color-mix(in srgb, #1464ff, transparent 75%);
|
|
662
|
+
--button-brand-5-bg: #00ab38;
|
|
663
|
+
--button-brand-5-text: #ffffff;
|
|
664
|
+
--button-brand-5-border: color-mix(in oklch, #00ab38, black 8%);
|
|
665
|
+
--button-brand-5-hover-border: #00ab38;
|
|
596
666
|
--button-brand-5-background-image: linear-gradient(
|
|
597
667
|
to bottom,
|
|
598
|
-
|
|
599
|
-
#
|
|
668
|
+
#63e600 0%,
|
|
669
|
+
#00ab38 20%,
|
|
670
|
+
#008d21 100%
|
|
600
671
|
);
|
|
601
672
|
--button-brand-5-hover-background-image: linear-gradient(
|
|
602
673
|
to bottom,
|
|
603
|
-
|
|
604
|
-
#
|
|
674
|
+
#63e600 0%,
|
|
675
|
+
#00ab38 20%,
|
|
676
|
+
color-mix(in oklch, #008d21, #00ab38 25%) 100%
|
|
605
677
|
);
|
|
606
678
|
--button-brand-5-shadow:
|
|
607
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
679
|
+
inset 0 1px 0 color-mix(in oklch, #63e600, white 15%),
|
|
680
|
+
inset 0 -1px 0 color-mix(in oklch, #00ab38, black 8%),
|
|
681
|
+
0 2px 3px color-mix(in srgb, #00ab38, transparent 82%);
|
|
608
682
|
--button-brand-5-hover-shadow:
|
|
609
|
-
inset 0 1px 0 color-mix(in oklch, #
|
|
610
|
-
|
|
611
|
-
|
|
683
|
+
inset 0 1px 0 color-mix(in oklch, #63e600, white 15%),
|
|
684
|
+
inset 0 -1px 0 color-mix(in oklch, #00ab38, black 8%),
|
|
685
|
+
0 2px 6px color-mix(in srgb, #00ab38, transparent 75%);
|
|
612
686
|
--background: var(--bg-default);
|
|
613
687
|
--foreground: var(--text-default);
|
|
614
688
|
--card: var(--bg-surface-default);
|