@adres/thinkprop-ui 0.0.0-stage → 0.0.2
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 +66 -2
- package/brand-knowledge.json +455 -0
- package/knowledge/accordion.md +135 -0
- package/knowledge/activity-rings.md +123 -0
- package/knowledge/alert.md +184 -0
- package/knowledge/answer-actions.md +217 -0
- package/knowledge/aspect-ratio.md +82 -0
- package/knowledge/avatar.md +158 -0
- package/knowledge/badge.md +172 -0
- package/knowledge/bar-graph.md +167 -0
- package/knowledge/bento-grid.md +115 -0
- package/knowledge/blockquote.md +153 -0
- package/knowledge/box-list.md +177 -0
- package/knowledge/bullet-list.md +128 -0
- package/knowledge/button-group.md +179 -0
- package/knowledge/button.md +231 -0
- package/knowledge/calendar.md +168 -0
- package/knowledge/card.md +321 -0
- package/knowledge/cards-nav.md +170 -0
- package/knowledge/chain-of-thought.md +164 -0
- package/knowledge/chat-container.md +135 -0
- package/knowledge/chat-message.md +224 -0
- package/knowledge/checkbox-card.md +172 -0
- package/knowledge/checkbox.md +111 -0
- package/knowledge/citations.md +241 -0
- package/knowledge/combobox.md +265 -0
- package/knowledge/countdown-pill.md +153 -0
- package/knowledge/cta.md +118 -0
- package/knowledge/data-list.md +173 -0
- package/knowledge/data-table.md +220 -0
- package/knowledge/dialog.md +249 -0
- package/knowledge/drawer.md +236 -0
- package/knowledge/dropdown-menu.md +238 -0
- package/knowledge/dropzone.md +153 -0
- package/knowledge/email-chips-input.md +161 -0
- package/knowledge/empty-state.md +106 -0
- package/knowledge/entity-header.md +166 -0
- package/knowledge/feature-grid.md +120 -0
- package/knowledge/feedback-bar.md +127 -0
- package/knowledge/footer.md +116 -0
- package/knowledge/heading.md +189 -0
- package/knowledge/hero.md +361 -0
- package/knowledge/input-button.md +187 -0
- package/knowledge/input-group.md +185 -0
- package/knowledge/input.md +256 -0
- package/knowledge/inset.md +177 -0
- package/knowledge/kpi-card.md +206 -0
- package/knowledge/list-nav.md +181 -0
- package/knowledge/logo-cloud.md +102 -0
- package/knowledge/media-gallery.md +158 -0
- package/knowledge/message-actions.md +175 -0
- package/knowledge/nav-sidebar.md +225 -0
- package/knowledge/number-stepper.md +159 -0
- package/knowledge/page-header.md +109 -0
- package/knowledge/pagination.md +225 -0
- package/knowledge/popover.md +159 -0
- package/knowledge/pricing.md +132 -0
- package/knowledge/progress.md +156 -0
- package/knowledge/prompt-input.md +337 -0
- package/knowledge/prompt-suggestions.md +168 -0
- package/knowledge/quota-bar.md +160 -0
- package/knowledge/quote.md +116 -0
- package/knowledge/radio-card.md +172 -0
- package/knowledge/radio-group.md +135 -0
- package/knowledge/reasoning.md +142 -0
- package/knowledge/search.md +131 -0
- package/knowledge/section-nav.md +162 -0
- package/knowledge/segmented-control.md +181 -0
- package/knowledge/select-button.md +205 -0
- package/knowledge/select.md +210 -0
- package/knowledge/separator.md +75 -0
- package/knowledge/shimmer-text.md +140 -0
- package/knowledge/sidebar.md +227 -0
- package/knowledge/skeleton.md +142 -0
- package/knowledge/slider.md +133 -0
- package/knowledge/slideshow.md +159 -0
- package/knowledge/source.md +156 -0
- package/knowledge/spinner.md +120 -0
- package/knowledge/stat-strip.md +128 -0
- package/knowledge/stats.md +117 -0
- package/knowledge/step-indicator.md +157 -0
- package/knowledge/switch.md +88 -0
- package/knowledge/table.md +190 -0
- package/knowledge/tabs.md +169 -0
- package/knowledge/testimonials.md +115 -0
- package/knowledge/text-link.md +192 -0
- package/knowledge/text.md +194 -0
- package/knowledge/thinking-bar.md +115 -0
- package/knowledge/thinking-steps.md +140 -0
- package/knowledge/toaster.md +127 -0
- package/knowledge/toggle.md +113 -0
- package/knowledge/tool-call-card.md +241 -0
- package/knowledge/tooltip.md +120 -0
- package/knowledge/top-nav.md +138 -0
- package/knowledge.json +19854 -0
- package/package.json +96 -4
- package/src/components/accordion.stories.tsx +46 -0
- package/src/components/accordion.tsx +74 -0
- package/src/components/activity-rings.stories.tsx +73 -0
- package/src/components/activity-rings.tsx +121 -0
- package/src/components/alert.stories.tsx +43 -0
- package/src/components/alert.tsx +132 -0
- package/src/components/answer-actions.stories.tsx +54 -0
- package/src/components/answer-actions.test.tsx +37 -0
- package/src/components/answer-actions.tsx +313 -0
- package/src/components/aspect-ratio.stories.tsx +32 -0
- package/src/components/aspect-ratio.tsx +5 -0
- package/src/components/avatar.stories.tsx +40 -0
- package/src/components/avatar.tsx +154 -0
- package/src/components/badge.stories.tsx +27 -0
- package/src/components/badge.tsx +63 -0
- package/src/components/bar-graph.stories.tsx +28 -0
- package/src/components/bar-graph.tsx +204 -0
- package/src/components/bento-grid.stories.tsx +23 -0
- package/src/components/bento-grid.tsx +67 -0
- package/src/components/blockquote.stories.tsx +28 -0
- package/src/components/blockquote.tsx +88 -0
- package/src/components/box-list.stories.tsx +25 -0
- package/src/components/box-list.tsx +108 -0
- package/src/components/bullet-list.stories.tsx +22 -0
- package/src/components/bullet-list.tsx +101 -0
- package/src/components/button-group.stories.tsx +31 -0
- package/src/components/button-group.tsx +156 -0
- package/src/components/button.stories.tsx +66 -0
- package/src/components/button.test.ts +17 -0
- package/src/components/button.tsx +139 -0
- package/src/components/calendar.stories.tsx +25 -0
- package/src/components/calendar.tsx +367 -0
- package/src/components/card.stories.tsx +44 -0
- package/src/components/card.tsx +392 -0
- package/src/components/cards-nav.stories.tsx +35 -0
- package/src/components/cards-nav.tsx +115 -0
- package/src/components/chain-of-thought.stories.tsx +67 -0
- package/src/components/chain-of-thought.test.tsx +50 -0
- package/src/components/chain-of-thought.tsx +170 -0
- package/src/components/chat-container.stories.tsx +47 -0
- package/src/components/chat-container.test.tsx +49 -0
- package/src/components/chat-container.tsx +222 -0
- package/src/components/chat-message.stories.tsx +52 -0
- package/src/components/chat-message.test.tsx +36 -0
- package/src/components/chat-message.tsx +163 -0
- package/src/components/checkbox-card.stories.tsx +27 -0
- package/src/components/checkbox-card.tsx +200 -0
- package/src/components/checkbox.stories.tsx +26 -0
- package/src/components/checkbox.tsx +61 -0
- package/src/components/citations.stories.tsx +64 -0
- package/src/components/citations.test.tsx +61 -0
- package/src/components/citations.tsx +220 -0
- package/src/components/combobox.stories.tsx +184 -0
- package/src/components/combobox.test.tsx +82 -0
- package/src/components/combobox.tsx +407 -0
- package/src/components/countdown-pill.stories.tsx +24 -0
- package/src/components/countdown-pill.tsx +129 -0
- package/src/components/cta.stories.tsx +29 -0
- package/src/components/cta.tsx +52 -0
- package/src/components/data-list.stories.tsx +50 -0
- package/src/components/data-list.test.tsx +35 -0
- package/src/components/data-list.tsx +181 -0
- package/src/components/data-table.stories.tsx +29 -0
- package/src/components/data-table.tsx +200 -0
- package/src/components/dialog.stories.tsx +42 -0
- package/src/components/dialog.tsx +200 -0
- package/src/components/drawer.stories.tsx +48 -0
- package/src/components/drawer.tsx +385 -0
- package/src/components/dropdown-menu.stories.tsx +41 -0
- package/src/components/dropdown-menu.tsx +252 -0
- package/src/components/dropzone.stories.tsx +19 -0
- package/src/components/dropzone.tsx +250 -0
- package/src/components/email-chips-input.stories.tsx +135 -0
- package/src/components/email-chips-input.tsx +210 -0
- package/src/components/empty-state.stories.tsx +22 -0
- package/src/components/empty-state.tsx +35 -0
- package/src/components/entity-header.stories.tsx +43 -0
- package/src/components/entity-header.test.tsx +35 -0
- package/src/components/entity-header.tsx +92 -0
- package/src/components/feature-grid.stories.tsx +25 -0
- package/src/components/feature-grid.tsx +87 -0
- package/src/components/feedback-bar.stories.tsx +25 -0
- package/src/components/feedback-bar.test.tsx +24 -0
- package/src/components/feedback-bar.tsx +62 -0
- package/src/components/footer.stories.tsx +23 -0
- package/src/components/footer.tsx +78 -0
- package/src/components/heading.stories.tsx +45 -0
- package/src/components/heading.test.tsx +22 -0
- package/src/components/heading.tsx +77 -0
- package/src/components/hero.stories.tsx +38 -0
- package/src/components/hero.tsx +498 -0
- package/src/components/input-button.stories.tsx +19 -0
- package/src/components/input-button.tsx +112 -0
- package/src/components/input-group.stories.tsx +38 -0
- package/src/components/input-group.tsx +157 -0
- package/src/components/input.stories.tsx +31 -0
- package/src/components/input.tsx +284 -0
- package/src/components/inset.stories.tsx +29 -0
- package/src/components/inset.tsx +70 -0
- package/src/components/kpi-card.stories.tsx +29 -0
- package/src/components/kpi-card.tsx +284 -0
- package/src/components/list-nav.stories.tsx +22 -0
- package/src/components/list-nav.tsx +145 -0
- package/src/components/logo-cloud.stories.tsx +23 -0
- package/src/components/logo-cloud.tsx +42 -0
- package/src/components/media-gallery.stories.tsx +25 -0
- package/src/components/media-gallery.tsx +347 -0
- package/src/components/message-actions.stories.tsx +45 -0
- package/src/components/message-actions.test.tsx +32 -0
- package/src/components/message-actions.tsx +119 -0
- package/src/components/nav-sidebar.stories.tsx +58 -0
- package/src/components/nav-sidebar.test.tsx +54 -0
- package/src/components/nav-sidebar.tsx +462 -0
- package/src/components/number-stepper.stories.tsx +19 -0
- package/src/components/number-stepper.tsx +158 -0
- package/src/components/page-header.stories.tsx +25 -0
- package/src/components/page-header.tsx +64 -0
- package/src/components/pagination.stories.tsx +110 -0
- package/src/components/pagination.test.tsx +46 -0
- package/src/components/pagination.tsx +144 -0
- package/src/components/popover.stories.tsx +26 -0
- package/src/components/popover.tsx +62 -0
- package/src/components/pricing.stories.tsx +42 -0
- package/src/components/pricing.tsx +130 -0
- package/src/components/progress.stories.tsx +22 -0
- package/src/components/progress.tsx +189 -0
- package/src/components/prompt-input.stories.tsx +62 -0
- package/src/components/prompt-input.test.tsx +106 -0
- package/src/components/prompt-input.tsx +343 -0
- package/src/components/prompt-suggestions.stories.tsx +53 -0
- package/src/components/prompt-suggestions.test.tsx +37 -0
- package/src/components/prompt-suggestions.tsx +122 -0
- package/src/components/quota-bar.stories.tsx +19 -0
- package/src/components/quota-bar.tsx +191 -0
- package/src/components/quote.stories.tsx +18 -0
- package/src/components/quote.tsx +43 -0
- package/src/components/radio-card.stories.tsx +27 -0
- package/src/components/radio-card.tsx +225 -0
- package/src/components/radio-group.stories.tsx +32 -0
- package/src/components/radio-group.tsx +68 -0
- package/src/components/reasoning.stories.tsx +50 -0
- package/src/components/reasoning.test.tsx +48 -0
- package/src/components/reasoning.tsx +143 -0
- package/src/components/search.stories.tsx +18 -0
- package/src/components/search.tsx +133 -0
- package/src/components/section-nav.stories.tsx +59 -0
- package/src/components/section-nav.test.tsx +36 -0
- package/src/components/section-nav.tsx +146 -0
- package/src/components/segmented-control.stories.tsx +22 -0
- package/src/components/segmented-control.tsx +301 -0
- package/src/components/select-button.stories.tsx +27 -0
- package/src/components/select-button.tsx +174 -0
- package/src/components/select.stories.tsx +27 -0
- package/src/components/select.tsx +198 -0
- package/src/components/separator.stories.tsx +22 -0
- package/src/components/separator.tsx +23 -0
- package/src/components/shimmer-text.stories.tsx +23 -0
- package/src/components/shimmer-text.test.tsx +35 -0
- package/src/components/shimmer-text.tsx +43 -0
- package/src/components/sidebar.stories.tsx +25 -0
- package/src/components/sidebar.tsx +234 -0
- package/src/components/skeleton.stories.tsx +22 -0
- package/src/components/skeleton.tsx +96 -0
- package/src/components/slider.stories.tsx +20 -0
- package/src/components/slider.tsx +176 -0
- package/src/components/slideshow.stories.tsx +30 -0
- package/src/components/slideshow.tsx +291 -0
- package/src/components/source.stories.tsx +32 -0
- package/src/components/source.test.tsx +40 -0
- package/src/components/source.tsx +161 -0
- package/src/components/spinner.stories.tsx +19 -0
- package/src/components/spinner.tsx +76 -0
- package/src/components/stat-strip.stories.tsx +36 -0
- package/src/components/stat-strip.test.tsx +25 -0
- package/src/components/stat-strip.tsx +85 -0
- package/src/components/stats.stories.tsx +24 -0
- package/src/components/stats.tsx +83 -0
- package/src/components/step-indicator.stories.tsx +18 -0
- package/src/components/step-indicator.test.tsx +18 -0
- package/src/components/step-indicator.tsx +286 -0
- package/src/components/switch.stories.tsx +26 -0
- package/src/components/switch.tsx +32 -0
- package/src/components/table.stories.tsx +38 -0
- package/src/components/table.tsx +220 -0
- package/src/components/tabs.stories.tsx +25 -0
- package/src/components/tabs.tsx +276 -0
- package/src/components/testimonials.stories.tsx +22 -0
- package/src/components/testimonials.tsx +109 -0
- package/src/components/text-link.stories.tsx +47 -0
- package/src/components/text-link.test.tsx +18 -0
- package/src/components/text-link.tsx +88 -0
- package/src/components/text.stories.tsx +49 -0
- package/src/components/text.tsx +105 -0
- package/src/components/thinking-bar.stories.tsx +19 -0
- package/src/components/thinking-bar.test.tsx +27 -0
- package/src/components/thinking-bar.tsx +64 -0
- package/src/components/thinking-steps.stories.tsx +44 -0
- package/src/components/thinking-steps.test.tsx +42 -0
- package/src/components/thinking-steps.tsx +92 -0
- package/src/components/toaster.stories.tsx +80 -0
- package/src/components/toaster.tsx +36 -0
- package/src/components/toggle.stories.tsx +21 -0
- package/src/components/toggle.tsx +103 -0
- package/src/components/tool-call-card.stories.tsx +97 -0
- package/src/components/tool-call-card.test.tsx +88 -0
- package/src/components/tool-call-card.tsx +231 -0
- package/src/components/tooltip.stories.tsx +25 -0
- package/src/components/tooltip.tsx +43 -0
- package/src/components/top-nav.stories.tsx +20 -0
- package/src/components/top-nav.tsx +76 -0
- package/src/docs/Colors.stories.tsx +192 -0
- package/src/docs/GettingStarted.mdx +72 -0
- package/src/docs/Mcp.mdx +52 -0
- package/src/docs/Typography.stories.tsx +114 -0
- package/src/hooks/use-in-view.ts +32 -0
- package/src/hooks/use-reduced-motion.ts +26 -0
- package/src/index.ts +343 -0
- package/src/lib/cn.test.ts +67 -0
- package/src/lib/cn.ts +81 -0
- package/src/lib/motion.ts +109 -0
- package/src/lib/prefix-utilities.test.ts +56 -0
- package/src/lib/prefix-utilities.ts +50 -0
- package/src/styles/base.css +489 -0
- package/src/styles/motion.css +69 -0
- package/src/styles/overrides.css +7 -0
- package/src/styles/typography.css +173 -0
- package/src/theme/theme.css +406 -0
- package/src/theme/tokens.ts +29 -0
- package/src/theme/types.ts +26 -0
package/README.md
CHANGED
|
@@ -1,3 +1,67 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @adres/thinkprop-ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
ThinkProp design system: React components and the ThinkProp theme in one package.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @adres/thinkprop-ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
The package is public on npmjs.com. No `.npmrc` or token is needed to install it.
|
|
12
|
+
|
|
13
|
+
Peer dependencies: `react@19`, `react-dom@19`, `tailwindcss@4`.
|
|
14
|
+
|
|
15
|
+
## Wire CSS
|
|
16
|
+
|
|
17
|
+
In the app's global CSS (`app/globals.css`), import Tailwind first, then scan the package source, then the styles. Tailwind 4 does not scan `node_modules` on its own, so component classes are missing without `@source`. `prefix(ax)` makes utilities `ax:bg-primary`, `ax:text-foreground`, and so on. `styles` includes the ThinkProp theme; do not import `theme.css` yourself.
|
|
18
|
+
|
|
19
|
+
```css
|
|
20
|
+
@import "tailwindcss" prefix(ax);
|
|
21
|
+
|
|
22
|
+
/* Scan the design-system source so component classes are emitted. */
|
|
23
|
+
@source "../node_modules/@adres/thinkprop-ui/src";
|
|
24
|
+
|
|
25
|
+
@import "@adres/thinkprop-ui/styles";
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
`@source` is relative to the CSS file. `src/app/globals.css` uses `../../node_modules/@adres/thinkprop-ui/src`. Import the file once from the root layout. Dark mode: add `class="dark"` (or `data-theme="dark"`) on `<html>`.
|
|
29
|
+
|
|
30
|
+
```tsx
|
|
31
|
+
import "./globals.css"
|
|
32
|
+
|
|
33
|
+
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
34
|
+
return (
|
|
35
|
+
<html lang="en">
|
|
36
|
+
<head>
|
|
37
|
+
<link
|
|
38
|
+
rel="stylesheet"
|
|
39
|
+
href="https://api.fontshare.com/v2/css?f[]=switzer@300,400,500,600,700&display=swap"
|
|
40
|
+
/>
|
|
41
|
+
</head>
|
|
42
|
+
<body>{children}</body>
|
|
43
|
+
</html>
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Fonts
|
|
49
|
+
|
|
50
|
+
Switzer is not bundled (its licence forbids redistribution). Load it with the `<link>` above. A CSS `@import` of that URL gets reordered by Vite and breaks the Tailwind import order.
|
|
51
|
+
|
|
52
|
+
## Develop
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npm install
|
|
56
|
+
npm run storybook # http://localhost:6006
|
|
57
|
+
npm run verify # typecheck, tests, build
|
|
58
|
+
npm run validate # theme variables + component knowledge
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
- Components live in `packages/design-system/src/components/` beside their stories.
|
|
62
|
+
- The theme is `packages/design-system/src/theme/theme.css`; type and component tweaks are in `src/styles/overrides.css`.
|
|
63
|
+
- After editing a component with a knowledge file, run `npm run knowledge:sync`.
|
|
64
|
+
|
|
65
|
+
## Release
|
|
66
|
+
|
|
67
|
+
Changesets: `npm run changeset`, then `npm run version:packages`. `release.yml` publishes from `main`. Publish copies this README into the package, which is the file npmjs shows.
|
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 2,
|
|
3
|
+
"generatedBy": "scripts/sync-brand-knowledge.mjs",
|
|
4
|
+
"requiredSemanticCssVars": [
|
|
5
|
+
"--background",
|
|
6
|
+
"--foreground",
|
|
7
|
+
"--foreground-muted",
|
|
8
|
+
"--card",
|
|
9
|
+
"--card-foreground",
|
|
10
|
+
"--popover",
|
|
11
|
+
"--popover-foreground",
|
|
12
|
+
"--primary",
|
|
13
|
+
"--primary-foreground",
|
|
14
|
+
"--secondary",
|
|
15
|
+
"--secondary-foreground",
|
|
16
|
+
"--accent",
|
|
17
|
+
"--accent-foreground",
|
|
18
|
+
"--muted",
|
|
19
|
+
"--muted-foreground",
|
|
20
|
+
"--destructive",
|
|
21
|
+
"--destructive-foreground",
|
|
22
|
+
"--success",
|
|
23
|
+
"--success-foreground",
|
|
24
|
+
"--warning",
|
|
25
|
+
"--warning-foreground",
|
|
26
|
+
"--border",
|
|
27
|
+
"--border-strong",
|
|
28
|
+
"--input",
|
|
29
|
+
"--ring",
|
|
30
|
+
"--font-family-sans",
|
|
31
|
+
"--radius-sm",
|
|
32
|
+
"--radius",
|
|
33
|
+
"--radius-md",
|
|
34
|
+
"--radius-lg",
|
|
35
|
+
"--radius-full",
|
|
36
|
+
"--surface-n1",
|
|
37
|
+
"--surface-0",
|
|
38
|
+
"--surface-1",
|
|
39
|
+
"--surface-2",
|
|
40
|
+
"--surface-3",
|
|
41
|
+
"--radius-badge",
|
|
42
|
+
"--button-radius",
|
|
43
|
+
"--input-radius"
|
|
44
|
+
],
|
|
45
|
+
"brands": [
|
|
46
|
+
{
|
|
47
|
+
"id": "thinkprop",
|
|
48
|
+
"packageDir": "design-system",
|
|
49
|
+
"importPath": "@adres/thinkprop-ui",
|
|
50
|
+
"meta": {
|
|
51
|
+
"name": "ThinkProp",
|
|
52
|
+
"description": "ThinkProp Business brand. Vermilion primary, lime accent, cool blue-gray neutral, secondary = neutral copy, full-pill CTAs, tight UI radii.",
|
|
53
|
+
"id": "thinkprop"
|
|
54
|
+
},
|
|
55
|
+
"cssVars": {
|
|
56
|
+
"light": {
|
|
57
|
+
"--accent": "23 88% 50%",
|
|
58
|
+
"--accent-100": "23 88% 94%",
|
|
59
|
+
"--accent-200": "23 88% 90%",
|
|
60
|
+
"--accent-300": "23 88% 80%",
|
|
61
|
+
"--accent-400": "23 88% 65%",
|
|
62
|
+
"--accent-50": "23 88% 98%",
|
|
63
|
+
"--accent-500": "23 88% 50%",
|
|
64
|
+
"--accent-600": "23 88% 40%",
|
|
65
|
+
"--accent-700": "23 88% 30%",
|
|
66
|
+
"--accent-800": "23 88% 20%",
|
|
67
|
+
"--accent-900": "23 88% 10%",
|
|
68
|
+
"--accent-950": "23 88% 6%",
|
|
69
|
+
"--accent-foreground": "23 88% 40%",
|
|
70
|
+
"--accent-muted": "23 88% 98%",
|
|
71
|
+
"--accent-strong": "23 88% 30%",
|
|
72
|
+
"--accent-stronger": "23 88% 20%",
|
|
73
|
+
"--accent-strongest": "23 88% 10%",
|
|
74
|
+
"--accent-weak": "23 88% 80%",
|
|
75
|
+
"--accent-weaker": "23 88% 90%",
|
|
76
|
+
"--accent-weakest": "23 88% 94%",
|
|
77
|
+
"--background": "30 6% 98%",
|
|
78
|
+
"--border": "30 6% 90%",
|
|
79
|
+
"--border-strong": "30 6% 80%",
|
|
80
|
+
"--button-radius": "9999px",
|
|
81
|
+
"--card": "0 0% 100%",
|
|
82
|
+
"--card-border-color": "transparent",
|
|
83
|
+
"--card-foreground": "30 6% 28%",
|
|
84
|
+
"--card-shadow": "hsl(var(--shadow-color) / 0.10) 0px 1px 0px",
|
|
85
|
+
"--chart-1": "211 36% 48%",
|
|
86
|
+
"--chart-10": "20 10% 70%",
|
|
87
|
+
"--chart-2": "30 88% 56%",
|
|
88
|
+
"--chart-3": "359 70% 61%",
|
|
89
|
+
"--chart-4": "175 31% 59%",
|
|
90
|
+
"--chart-5": "113 34% 47%",
|
|
91
|
+
"--chart-6": "47 82% 61%",
|
|
92
|
+
"--chart-7": "316 25% 58%",
|
|
93
|
+
"--chart-8": "354 100% 81%",
|
|
94
|
+
"--chart-9": "22 24% 49%",
|
|
95
|
+
"--destructive": "6 68% 50%",
|
|
96
|
+
"--destructive-100": "6 68% 92%",
|
|
97
|
+
"--destructive-200": "6 68% 86%",
|
|
98
|
+
"--destructive-300": "6 68% 74%",
|
|
99
|
+
"--destructive-400": "6 68% 62%",
|
|
100
|
+
"--destructive-50": "6 68% 97%",
|
|
101
|
+
"--destructive-500": "6 68% 50%",
|
|
102
|
+
"--destructive-600": "6 68% 40%",
|
|
103
|
+
"--destructive-700": "6 68% 30%",
|
|
104
|
+
"--destructive-800": "6 68% 20%",
|
|
105
|
+
"--destructive-900": "6 68% 10%",
|
|
106
|
+
"--destructive-950": "6 68% 6%",
|
|
107
|
+
"--destructive-foreground": "6 68% 30%",
|
|
108
|
+
"--destructive-muted": "6 68% 97%",
|
|
109
|
+
"--destructive-strong": "6 68% 30%",
|
|
110
|
+
"--destructive-stronger": "6 68% 20%",
|
|
111
|
+
"--destructive-strongest": "6 68% 10%",
|
|
112
|
+
"--destructive-weak": "6 68% 74%",
|
|
113
|
+
"--destructive-weaker": "6 68% 86%",
|
|
114
|
+
"--destructive-weakest": "6 68% 92%",
|
|
115
|
+
"--font-family-sans": "\"Switzer-Variable\", \"Switzer\", \"Inter\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
|
116
|
+
"--foreground": "30 6% 28%",
|
|
117
|
+
"--foreground-muted": "30 6% 45%",
|
|
118
|
+
"--foreground-strong": "30 6% 10%",
|
|
119
|
+
"--input": "30 6% 80%",
|
|
120
|
+
"--input-radius": "0.5rem",
|
|
121
|
+
"--muted": "30 6% 98%",
|
|
122
|
+
"--muted-foreground": "30 6% 45%",
|
|
123
|
+
"--neutral": "30 6% 45%",
|
|
124
|
+
"--neutral-100": "30 6% 94%",
|
|
125
|
+
"--neutral-200": "30 6% 90%",
|
|
126
|
+
"--neutral-300": "30 6% 80%",
|
|
127
|
+
"--neutral-400": "30 6% 65%",
|
|
128
|
+
"--neutral-50": "30 6% 98%",
|
|
129
|
+
"--neutral-500": "30 6% 45%",
|
|
130
|
+
"--neutral-600": "30 6% 35%",
|
|
131
|
+
"--neutral-700": "30 6% 28%",
|
|
132
|
+
"--neutral-800": "30 6% 20%",
|
|
133
|
+
"--neutral-900": "30 6% 10%",
|
|
134
|
+
"--neutral-950": "30 6% 6%",
|
|
135
|
+
"--neutral-muted": "30 6% 98%",
|
|
136
|
+
"--neutral-strong": "30 6% 28%",
|
|
137
|
+
"--neutral-stronger": "30 6% 20%",
|
|
138
|
+
"--neutral-strongest": "30 6% 10%",
|
|
139
|
+
"--neutral-weak": "30 6% 80%",
|
|
140
|
+
"--neutral-weaker": "30 6% 90%",
|
|
141
|
+
"--neutral-weakest": "30 6% 94%",
|
|
142
|
+
"--popover": "0 0% 100%",
|
|
143
|
+
"--popover-foreground": "30 6% 35%",
|
|
144
|
+
"--primary": "208 60% 50%",
|
|
145
|
+
"--primary-100": "208 60% 94%",
|
|
146
|
+
"--primary-200": "208 60% 90%",
|
|
147
|
+
"--primary-300": "208 60% 80%",
|
|
148
|
+
"--primary-400": "208 60% 65%",
|
|
149
|
+
"--primary-50": "208 60% 98%",
|
|
150
|
+
"--primary-500": "208 60% 50%",
|
|
151
|
+
"--primary-600": "208 60% 35%",
|
|
152
|
+
"--primary-700": "208 60% 28%",
|
|
153
|
+
"--primary-800": "208 60% 20%",
|
|
154
|
+
"--primary-900": "208 60% 10%",
|
|
155
|
+
"--primary-950": "208 60% 6%",
|
|
156
|
+
"--primary-foreground": "208 60% 35%",
|
|
157
|
+
"--primary-muted": "208 60% 98%",
|
|
158
|
+
"--primary-strong": "208 60% 28%",
|
|
159
|
+
"--primary-stronger": "208 60% 20%",
|
|
160
|
+
"--primary-strongest": "208 60% 10%",
|
|
161
|
+
"--primary-weak": "208 60% 80%",
|
|
162
|
+
"--primary-weaker": "208 60% 90%",
|
|
163
|
+
"--primary-weakest": "208 60% 94%",
|
|
164
|
+
"--radius": "9999px",
|
|
165
|
+
"--radius-badge": "9999px",
|
|
166
|
+
"--radius-full": "9999px",
|
|
167
|
+
"--radius-lg": "0.625rem",
|
|
168
|
+
"--radius-md": "0.5rem",
|
|
169
|
+
"--radius-sm": "0.25rem",
|
|
170
|
+
"--radius-xl": "0.75rem",
|
|
171
|
+
"--radius-xs": "0.375rem",
|
|
172
|
+
"--ring": "208 60% 50%",
|
|
173
|
+
"--secondary": "208 20% 50%",
|
|
174
|
+
"--secondary-100": "208 20% 94%",
|
|
175
|
+
"--secondary-200": "208 20% 90%",
|
|
176
|
+
"--secondary-300": "208 20% 80%",
|
|
177
|
+
"--secondary-400": "208 20% 65%",
|
|
178
|
+
"--secondary-50": "208 20% 98%",
|
|
179
|
+
"--secondary-500": "208 20% 50%",
|
|
180
|
+
"--secondary-600": "208 20% 35%",
|
|
181
|
+
"--secondary-700": "208 20% 28%",
|
|
182
|
+
"--secondary-800": "208 20% 20%",
|
|
183
|
+
"--secondary-900": "208 20% 10%",
|
|
184
|
+
"--secondary-950": "208 20% 6%",
|
|
185
|
+
"--secondary-foreground": "208 20% 35%",
|
|
186
|
+
"--secondary-muted": "208 20% 98%",
|
|
187
|
+
"--secondary-strong": "208 20% 28%",
|
|
188
|
+
"--secondary-stronger": "208 20% 20%",
|
|
189
|
+
"--secondary-strongest": "208 20% 10%",
|
|
190
|
+
"--secondary-weak": "208 20% 80%",
|
|
191
|
+
"--secondary-weaker": "208 20% 90%",
|
|
192
|
+
"--secondary-weakest": "208 20% 94%",
|
|
193
|
+
"--selected": "30 6% 90%",
|
|
194
|
+
"--success": "154 66% 50%",
|
|
195
|
+
"--success-100": "154 66% 92%",
|
|
196
|
+
"--success-200": "154 66% 86%",
|
|
197
|
+
"--success-300": "154 66% 74%",
|
|
198
|
+
"--success-400": "154 66% 62%",
|
|
199
|
+
"--success-50": "154 66% 97%",
|
|
200
|
+
"--success-500": "154 66% 50%",
|
|
201
|
+
"--success-600": "154 66% 40%",
|
|
202
|
+
"--success-700": "154 66% 30%",
|
|
203
|
+
"--success-800": "154 66% 20%",
|
|
204
|
+
"--success-900": "154 66% 10%",
|
|
205
|
+
"--success-950": "154 66% 6%",
|
|
206
|
+
"--success-foreground": "154 66% 30%",
|
|
207
|
+
"--success-muted": "154 66% 97%",
|
|
208
|
+
"--success-strong": "154 66% 30%",
|
|
209
|
+
"--success-stronger": "154 66% 20%",
|
|
210
|
+
"--success-strongest": "154 66% 10%",
|
|
211
|
+
"--success-weak": "154 66% 74%",
|
|
212
|
+
"--success-weaker": "154 66% 86%",
|
|
213
|
+
"--success-weakest": "154 66% 92%",
|
|
214
|
+
"--surface-0": "30 6% 94%",
|
|
215
|
+
"--surface-1": "30 6% 98%",
|
|
216
|
+
"--surface-2": "100 100% 100%",
|
|
217
|
+
"--surface-3": "30 6% 80%",
|
|
218
|
+
"--surface-n1": "30 6% 90%",
|
|
219
|
+
"--warning": "33 74% 50%",
|
|
220
|
+
"--warning-100": "33 74% 92%",
|
|
221
|
+
"--warning-200": "33 74% 86%",
|
|
222
|
+
"--warning-300": "33 74% 74%",
|
|
223
|
+
"--warning-400": "33 74% 62%",
|
|
224
|
+
"--warning-50": "33 74% 97%",
|
|
225
|
+
"--warning-500": "33 74% 50%",
|
|
226
|
+
"--warning-600": "33 74% 40%",
|
|
227
|
+
"--warning-700": "33 74% 30%",
|
|
228
|
+
"--warning-800": "33 74% 20%",
|
|
229
|
+
"--warning-900": "33 74% 10%",
|
|
230
|
+
"--warning-950": "33 74% 6%",
|
|
231
|
+
"--warning-foreground": "33 74% 30%",
|
|
232
|
+
"--warning-muted": "33 74% 97%",
|
|
233
|
+
"--warning-strong": "33 74% 30%",
|
|
234
|
+
"--warning-stronger": "33 74% 20%",
|
|
235
|
+
"--warning-strongest": "33 74% 10%",
|
|
236
|
+
"--warning-weak": "33 74% 74%",
|
|
237
|
+
"--warning-weaker": "33 74% 86%",
|
|
238
|
+
"--warning-weakest": "33 74% 92%"
|
|
239
|
+
},
|
|
240
|
+
"dark": {
|
|
241
|
+
"--accent": "23 88% 50%",
|
|
242
|
+
"--accent-100": "23 88% 94%",
|
|
243
|
+
"--accent-200": "23 88% 90%",
|
|
244
|
+
"--accent-300": "23 88% 80%",
|
|
245
|
+
"--accent-400": "23 88% 65%",
|
|
246
|
+
"--accent-50": "23 88% 98%",
|
|
247
|
+
"--accent-500": "23 88% 50%",
|
|
248
|
+
"--accent-600": "23 88% 40%",
|
|
249
|
+
"--accent-700": "23 88% 30%",
|
|
250
|
+
"--accent-800": "23 88% 20%",
|
|
251
|
+
"--accent-900": "23 88% 10%",
|
|
252
|
+
"--accent-950": "23 88% 6%",
|
|
253
|
+
"--accent-foreground": "23 88% 65%",
|
|
254
|
+
"--accent-muted": "23 88% 6%",
|
|
255
|
+
"--accent-strong": "23 88% 65%",
|
|
256
|
+
"--accent-stronger": "23 88% 80%",
|
|
257
|
+
"--accent-strongest": "23 88% 90%",
|
|
258
|
+
"--accent-weak": "23 88% 30%",
|
|
259
|
+
"--accent-weaker": "23 88% 20%",
|
|
260
|
+
"--accent-weakest": "23 88% 10%",
|
|
261
|
+
"--background": "30 6% 10%",
|
|
262
|
+
"--border": "30 6% 20%",
|
|
263
|
+
"--border-strong": "30 6% 28%",
|
|
264
|
+
"--button-radius": "9999px",
|
|
265
|
+
"--card": "30 6% 6%",
|
|
266
|
+
"--card-border-color": "transparent",
|
|
267
|
+
"--card-foreground": "30 6% 80%",
|
|
268
|
+
"--card-shadow": "hsl(var(--shadow-color) / 0.10) 0px 1px 0px",
|
|
269
|
+
"--chart-1": "211 70% 65%",
|
|
270
|
+
"--chart-10": "220 15% 72%",
|
|
271
|
+
"--chart-2": "30 95% 63%",
|
|
272
|
+
"--chart-3": "359 85% 70%",
|
|
273
|
+
"--chart-4": "175 55% 65%",
|
|
274
|
+
"--chart-5": "113 50% 58%",
|
|
275
|
+
"--chart-6": "47 90% 68%",
|
|
276
|
+
"--chart-7": "316 68% 68%",
|
|
277
|
+
"--chart-8": "354 100% 85%",
|
|
278
|
+
"--chart-9": "22 55% 62%",
|
|
279
|
+
"--destructive": "6 68% 50%",
|
|
280
|
+
"--destructive-100": "6 68% 92%",
|
|
281
|
+
"--destructive-200": "6 68% 86%",
|
|
282
|
+
"--destructive-300": "6 68% 74%",
|
|
283
|
+
"--destructive-400": "6 68% 62%",
|
|
284
|
+
"--destructive-50": "6 68% 97%",
|
|
285
|
+
"--destructive-500": "6 68% 50%",
|
|
286
|
+
"--destructive-600": "6 68% 40%",
|
|
287
|
+
"--destructive-700": "6 68% 30%",
|
|
288
|
+
"--destructive-800": "6 68% 20%",
|
|
289
|
+
"--destructive-900": "6 68% 10%",
|
|
290
|
+
"--destructive-950": "6 68% 6%",
|
|
291
|
+
"--destructive-foreground": "6 68% 62%",
|
|
292
|
+
"--destructive-muted": "6 68% 6%",
|
|
293
|
+
"--destructive-strong": "6 68% 62%",
|
|
294
|
+
"--destructive-stronger": "6 68% 74%",
|
|
295
|
+
"--destructive-strongest": "6 68% 86%",
|
|
296
|
+
"--destructive-weak": "6 68% 30%",
|
|
297
|
+
"--destructive-weaker": "6 68% 20%",
|
|
298
|
+
"--destructive-weakest": "6 68% 10%",
|
|
299
|
+
"--font-family-sans": "\"Switzer-Variable\", \"Switzer\", \"Inter\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
|
300
|
+
"--foreground": "30 6% 80%",
|
|
301
|
+
"--foreground-muted": "30 6% 45%",
|
|
302
|
+
"--foreground-strong": "30 6% 94%",
|
|
303
|
+
"--input": "30 6% 28%",
|
|
304
|
+
"--input-radius": "0.5rem",
|
|
305
|
+
"--muted": "30 6% 10%",
|
|
306
|
+
"--muted-foreground": "30 6% 45%",
|
|
307
|
+
"--neutral": "30 6% 45%",
|
|
308
|
+
"--neutral-100": "30 6% 94%",
|
|
309
|
+
"--neutral-200": "30 6% 90%",
|
|
310
|
+
"--neutral-300": "30 6% 80%",
|
|
311
|
+
"--neutral-400": "30 6% 65%",
|
|
312
|
+
"--neutral-50": "30 6% 98%",
|
|
313
|
+
"--neutral-500": "30 6% 45%",
|
|
314
|
+
"--neutral-600": "30 6% 35%",
|
|
315
|
+
"--neutral-700": "30 6% 28%",
|
|
316
|
+
"--neutral-800": "30 6% 20%",
|
|
317
|
+
"--neutral-900": "30 6% 10%",
|
|
318
|
+
"--neutral-950": "30 6% 6%",
|
|
319
|
+
"--neutral-muted": "30 6% 6%",
|
|
320
|
+
"--neutral-strong": "30 6% 65%",
|
|
321
|
+
"--neutral-stronger": "30 6% 80%",
|
|
322
|
+
"--neutral-strongest": "30 6% 90%",
|
|
323
|
+
"--neutral-weak": "30 6% 28%",
|
|
324
|
+
"--neutral-weaker": "30 6% 20%",
|
|
325
|
+
"--neutral-weakest": "30 6% 10%",
|
|
326
|
+
"--popover": "30 6% 6%",
|
|
327
|
+
"--popover-foreground": "30 6% 65%",
|
|
328
|
+
"--primary": "208 60% 50%",
|
|
329
|
+
"--primary-100": "208 60% 94%",
|
|
330
|
+
"--primary-200": "208 60% 90%",
|
|
331
|
+
"--primary-300": "208 60% 80%",
|
|
332
|
+
"--primary-400": "208 60% 65%",
|
|
333
|
+
"--primary-50": "208 60% 98%",
|
|
334
|
+
"--primary-500": "208 60% 50%",
|
|
335
|
+
"--primary-600": "208 60% 35%",
|
|
336
|
+
"--primary-700": "208 60% 28%",
|
|
337
|
+
"--primary-800": "208 60% 20%",
|
|
338
|
+
"--primary-900": "208 60% 10%",
|
|
339
|
+
"--primary-950": "208 60% 6%",
|
|
340
|
+
"--primary-foreground": "208 60% 65%",
|
|
341
|
+
"--primary-muted": "208 60% 6%",
|
|
342
|
+
"--primary-strong": "208 60% 65%",
|
|
343
|
+
"--primary-stronger": "208 60% 80%",
|
|
344
|
+
"--primary-strongest": "208 60% 90%",
|
|
345
|
+
"--primary-weak": "208 60% 28%",
|
|
346
|
+
"--primary-weaker": "208 60% 20%",
|
|
347
|
+
"--primary-weakest": "208 60% 10%",
|
|
348
|
+
"--radius": "9999px",
|
|
349
|
+
"--radius-badge": "9999px",
|
|
350
|
+
"--radius-full": "9999px",
|
|
351
|
+
"--radius-lg": "0.625rem",
|
|
352
|
+
"--radius-md": "0.5rem",
|
|
353
|
+
"--radius-sm": "0.25rem",
|
|
354
|
+
"--radius-xl": "0.75rem",
|
|
355
|
+
"--radius-xs": "0.375rem",
|
|
356
|
+
"--ring": "208 60% 50%",
|
|
357
|
+
"--secondary": "208 20% 50%",
|
|
358
|
+
"--secondary-100": "208 20% 94%",
|
|
359
|
+
"--secondary-200": "208 20% 90%",
|
|
360
|
+
"--secondary-300": "208 20% 80%",
|
|
361
|
+
"--secondary-400": "208 20% 65%",
|
|
362
|
+
"--secondary-50": "208 20% 98%",
|
|
363
|
+
"--secondary-500": "208 20% 50%",
|
|
364
|
+
"--secondary-600": "208 20% 35%",
|
|
365
|
+
"--secondary-700": "208 20% 28%",
|
|
366
|
+
"--secondary-800": "208 20% 20%",
|
|
367
|
+
"--secondary-900": "208 20% 10%",
|
|
368
|
+
"--secondary-950": "208 20% 6%",
|
|
369
|
+
"--secondary-foreground": "208 20% 65%",
|
|
370
|
+
"--secondary-muted": "208 20% 6%",
|
|
371
|
+
"--secondary-strong": "208 20% 65%",
|
|
372
|
+
"--secondary-stronger": "208 20% 80%",
|
|
373
|
+
"--secondary-strongest": "208 20% 90%",
|
|
374
|
+
"--secondary-weak": "208 20% 28%",
|
|
375
|
+
"--secondary-weaker": "208 20% 20%",
|
|
376
|
+
"--secondary-weakest": "208 20% 10%",
|
|
377
|
+
"--selected": "30 6% 20%",
|
|
378
|
+
"--success": "154 66% 50%",
|
|
379
|
+
"--success-100": "154 66% 92%",
|
|
380
|
+
"--success-200": "154 66% 86%",
|
|
381
|
+
"--success-300": "154 66% 74%",
|
|
382
|
+
"--success-400": "154 66% 62%",
|
|
383
|
+
"--success-50": "154 66% 97%",
|
|
384
|
+
"--success-500": "154 66% 50%",
|
|
385
|
+
"--success-600": "154 66% 40%",
|
|
386
|
+
"--success-700": "154 66% 30%",
|
|
387
|
+
"--success-800": "154 66% 20%",
|
|
388
|
+
"--success-900": "154 66% 10%",
|
|
389
|
+
"--success-950": "154 66% 6%",
|
|
390
|
+
"--success-foreground": "154 66% 62%",
|
|
391
|
+
"--success-muted": "154 66% 6%",
|
|
392
|
+
"--success-strong": "154 66% 62%",
|
|
393
|
+
"--success-stronger": "154 66% 74%",
|
|
394
|
+
"--success-strongest": "154 66% 86%",
|
|
395
|
+
"--success-weak": "154 66% 30%",
|
|
396
|
+
"--success-weaker": "154 66% 20%",
|
|
397
|
+
"--success-weakest": "154 66% 10%",
|
|
398
|
+
"--surface-0": "30 6% 6%",
|
|
399
|
+
"--surface-1": "30 6% 10%",
|
|
400
|
+
"--surface-2": "30 6% 20%",
|
|
401
|
+
"--surface-3": "30 6% 28%",
|
|
402
|
+
"--surface-n1": "30 6% 4%",
|
|
403
|
+
"--warning": "33 74% 50%",
|
|
404
|
+
"--warning-100": "33 74% 92%",
|
|
405
|
+
"--warning-200": "33 74% 86%",
|
|
406
|
+
"--warning-300": "33 74% 74%",
|
|
407
|
+
"--warning-400": "33 74% 62%",
|
|
408
|
+
"--warning-50": "33 74% 97%",
|
|
409
|
+
"--warning-500": "33 74% 50%",
|
|
410
|
+
"--warning-600": "33 74% 40%",
|
|
411
|
+
"--warning-700": "33 74% 30%",
|
|
412
|
+
"--warning-800": "33 74% 20%",
|
|
413
|
+
"--warning-900": "33 74% 10%",
|
|
414
|
+
"--warning-950": "33 74% 6%",
|
|
415
|
+
"--warning-foreground": "33 74% 62%",
|
|
416
|
+
"--warning-muted": "33 74% 6%",
|
|
417
|
+
"--warning-strong": "33 74% 62%",
|
|
418
|
+
"--warning-stronger": "33 74% 74%",
|
|
419
|
+
"--warning-strongest": "33 74% 86%",
|
|
420
|
+
"--warning-weak": "33 74% 30%",
|
|
421
|
+
"--warning-weaker": "33 74% 20%",
|
|
422
|
+
"--warning-weakest": "33 74% 10%"
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
"tokens": {
|
|
426
|
+
"shape": {
|
|
427
|
+
"softBg": true,
|
|
428
|
+
"cardBorderless": true,
|
|
429
|
+
"cardElevation": "xs",
|
|
430
|
+
"tabsRounded": false
|
|
431
|
+
},
|
|
432
|
+
"voice": {
|
|
433
|
+
"personality": [
|
|
434
|
+
"Professional",
|
|
435
|
+
"Trustworthy",
|
|
436
|
+
"Premium",
|
|
437
|
+
"Clear"
|
|
438
|
+
],
|
|
439
|
+
"avoid": [
|
|
440
|
+
"Cute",
|
|
441
|
+
"Casual",
|
|
442
|
+
"Cluttered"
|
|
443
|
+
]
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
"hasOverrides": false,
|
|
447
|
+
"hasTypography": false
|
|
448
|
+
}
|
|
449
|
+
],
|
|
450
|
+
"index": {
|
|
451
|
+
"byId": {
|
|
452
|
+
"thinkprop": 0
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
---
|
|
2
|
+
# >>> DERIVED - regenerated by `npm run knowledge:sync`. Do not edit. <<<
|
|
3
|
+
derived:
|
|
4
|
+
schemaVersion: 1
|
|
5
|
+
id: accordion
|
|
6
|
+
sourceFile: packages/design-system/src/components/accordion.tsx
|
|
7
|
+
client: true
|
|
8
|
+
category: web-app-data
|
|
9
|
+
categoryFromBarrel: web-app-data
|
|
10
|
+
barrelExported: true
|
|
11
|
+
importPath: "@adres/thinkprop-ui"
|
|
12
|
+
exports:
|
|
13
|
+
- name: Accordion
|
|
14
|
+
kind: component
|
|
15
|
+
radixSource: "@radix-ui/react-accordion#Root"
|
|
16
|
+
typeText: "ForwardRefExoticComponent<(AccordionSingleProps | AccordionMultipleProps) & RefAttributes<HTMLDivElement>>"
|
|
17
|
+
- name: AccordionContent
|
|
18
|
+
kind: component
|
|
19
|
+
typeText: "ForwardRefExoticComponent<Omit<AccordionContentProps & RefAttributes<HTMLDivElement>, \"ref\"> & RefAttributes<HTMLDivElement>>"
|
|
20
|
+
- name: AccordionItem
|
|
21
|
+
kind: component
|
|
22
|
+
typeText: "ForwardRefExoticComponent<Omit<AccordionItemProps & RefAttributes<HTMLDivElement>, \"ref\"> & RefAttributes<HTMLDivElement>>"
|
|
23
|
+
- name: AccordionProps
|
|
24
|
+
kind: type
|
|
25
|
+
- name: AccordionTrigger
|
|
26
|
+
kind: component
|
|
27
|
+
typeText: "ForwardRefExoticComponent<Omit<AccordionTriggerProps & RefAttributes<HTMLButtonElement>, \"ref\"> & RefAttributes<HTMLButtonElement>>"
|
|
28
|
+
primaryExport: Accordion
|
|
29
|
+
subcomponents:
|
|
30
|
+
- AccordionContent
|
|
31
|
+
- AccordionItem
|
|
32
|
+
- AccordionTrigger
|
|
33
|
+
props: {}
|
|
34
|
+
extendsProps: []
|
|
35
|
+
variants: {}
|
|
36
|
+
variantSource: none
|
|
37
|
+
compoundVariants: []
|
|
38
|
+
sizeMaps: []
|
|
39
|
+
dataSlots: []
|
|
40
|
+
dependsOn:
|
|
41
|
+
internal: []
|
|
42
|
+
lib:
|
|
43
|
+
- cn
|
|
44
|
+
hooks: []
|
|
45
|
+
external:
|
|
46
|
+
- "@radix-ui/react-accordion"
|
|
47
|
+
- lucide-react
|
|
48
|
+
- react
|
|
49
|
+
contexts: []
|
|
50
|
+
stories:
|
|
51
|
+
- exportName: Default
|
|
52
|
+
id: components-accordion--default
|
|
53
|
+
- exportName: Multiple
|
|
54
|
+
id: components-accordion--multiple
|
|
55
|
+
storybookTitle: Components/Accordion
|
|
56
|
+
docsId: components-accordion--documentation
|
|
57
|
+
argTypeOptions: {}
|
|
58
|
+
resolvedCleanly: true
|
|
59
|
+
contractHash: "79b72715fcd7"
|
|
60
|
+
factsHash: dcb7c4175015
|
|
61
|
+
# >>> AUTHORED - humans own everything below this line. <<<
|
|
62
|
+
status: stable
|
|
63
|
+
summary: "A vertical stack of expand/collapse sections built on Radix Accordion, single or multi-open."
|
|
64
|
+
useWhen:
|
|
65
|
+
- "a list of items where only the relevant one(s) need to be expanded at a time - FAQs, collapsible settings groups, progressive disclosure of detail"
|
|
66
|
+
useInstead:
|
|
67
|
+
- id: data-list
|
|
68
|
+
when: "the content is a flat set of label/value pairs, not sections that expand and collapse"
|
|
69
|
+
- id: table
|
|
70
|
+
when: "the content is genuinely tabular (multiple columns of comparable data), not a list of expandable sections"
|
|
71
|
+
related:
|
|
72
|
+
- data-list
|
|
73
|
+
- table
|
|
74
|
+
a11y:
|
|
75
|
+
notes:
|
|
76
|
+
- "AccordionTrigger renders inside a Radix header wrapper, giving each section heading semantics for free - do not wrap it in your own heading element too."
|
|
77
|
+
- "Radix manages aria-expanded and the content's visibility/ARIA relationship automatically - no extra ARIA is needed on AccordionItem/AccordionContent."
|
|
78
|
+
keyboard:
|
|
79
|
+
- "Native Radix accordion keyboard behavior: arrow keys move focus between triggers, Home/End jump to the first/last trigger, Enter/Space toggles the focused section."
|
|
80
|
+
radixHandles: true
|
|
81
|
+
pitfalls:
|
|
82
|
+
- "type=\"single\" needs collapsible to allow closing the currently-open item - without it, exactly one item is always open and clicking the open item's own trigger does nothing."
|
|
83
|
+
- "type is a required, mode-changing prop - single allows at most one open item at a time, multiple allows any number open simultaneously; the shape of value/defaultValue (a string vs. a string array) depends on which mode is chosen."
|
|
84
|
+
- "className, type, collapsible, and value cannot be demonstrated in this file's machine-checked canonicalSnippet, because Accordion is a bare Radix re-export with no resolvable props - the same gap as separator/aspect-ratio in 15b-ii. See the fuller example in ## Usage."
|
|
85
|
+
canonicalSnippet: |
|
|
86
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@adres/thinkprop-ui"
|
|
87
|
+
|
|
88
|
+
<Accordion>
|
|
89
|
+
<AccordionItem>
|
|
90
|
+
<AccordionTrigger>What is Adres?</AccordionTrigger>
|
|
91
|
+
<AccordionContent>
|
|
92
|
+
Adres is a multi-brand design system for property and education products.
|
|
93
|
+
</AccordionContent>
|
|
94
|
+
</AccordionItem>
|
|
95
|
+
</Accordion>
|
|
96
|
+
reviewedAt: 2026-09-01
|
|
97
|
+
reviewedAgainstContractHash: "79b72715fcd7"
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Usage
|
|
101
|
+
|
|
102
|
+
`Accordion` stacks expandable sections vertically - reach for it for FAQs,
|
|
103
|
+
collapsible settings groups, or any progressive-disclosure list where only
|
|
104
|
+
the relevant section(s) need to stay expanded. Reach for `DataList` instead
|
|
105
|
+
when the content is flat label/value pairs with nothing to expand, and
|
|
106
|
+
`Table` when the content is genuinely tabular.
|
|
107
|
+
|
|
108
|
+
`type` (`"single"` or `"multiple"`) is required and changes both behavior and
|
|
109
|
+
the shape of `value`/`defaultValue` (a single string vs. a string array).
|
|
110
|
+
With `type="single"`, also pass `collapsible` if the open item should be
|
|
111
|
+
closeable - without it, exactly one item stays open at all times.
|
|
112
|
+
|
|
113
|
+
`type`, `collapsible`, and `value` cannot appear in this file's
|
|
114
|
+
machine-checked `canonicalSnippet` above (see the pitfall on why). The real,
|
|
115
|
+
recommended usage:
|
|
116
|
+
|
|
117
|
+
```tsx
|
|
118
|
+
<Accordion type="single" collapsible className="ax:w-full ax:max-w-md">
|
|
119
|
+
<AccordionItem value="item-1">
|
|
120
|
+
<AccordionTrigger>What is Adres?</AccordionTrigger>
|
|
121
|
+
<AccordionContent>
|
|
122
|
+
Adres is a multi-brand design system for property and education products.
|
|
123
|
+
</AccordionContent>
|
|
124
|
+
</AccordionItem>
|
|
125
|
+
</Accordion>
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Anatomy
|
|
129
|
+
|
|
130
|
+
| Part | Role |
|
|
131
|
+
| --- | --- |
|
|
132
|
+
| `Accordion` | Root. Holds `type` (single/multiple) and the open value(s). A direct Radix `Root` re-export. |
|
|
133
|
+
| `AccordionItem` | One section. Requires a unique `value` used to identify it as open or closed. |
|
|
134
|
+
| `AccordionTrigger` | The clickable header. Renders inside a Radix heading wrapper and rotates a chevron on open. |
|
|
135
|
+
| `AccordionContent` | The collapsible body. Animates open and closed via `data-state`, respecting reduced-motion. |
|