@zabuti/components-mcp 0.0.0-stage → 0.1.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 (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +42 -2
  3. package/dist/index.js +527 -0
  4. package/dist/project-setup.js +424 -0
  5. package/dist/registry.js +73 -0
  6. package/dist/source.js +19 -0
  7. package/package.json +41 -4
  8. package/payload/registry.json +801 -0
  9. package/payload/src/components/ui/accordion.tsx +75 -0
  10. package/payload/src/components/ui/alert-dialog.tsx +151 -0
  11. package/payload/src/components/ui/alert.tsx +69 -0
  12. package/payload/src/components/ui/avatar.tsx +59 -0
  13. package/payload/src/components/ui/badge.tsx +57 -0
  14. package/payload/src/components/ui/breadcrumb.tsx +109 -0
  15. package/payload/src/components/ui/button.tsx +76 -0
  16. package/payload/src/components/ui/calendar.tsx +117 -0
  17. package/payload/src/components/ui/card.tsx +120 -0
  18. package/payload/src/components/ui/chart.tsx +249 -0
  19. package/payload/src/components/ui/checkbox.tsx +38 -0
  20. package/payload/src/components/ui/collapsible.tsx +30 -0
  21. package/payload/src/components/ui/combobox.tsx +127 -0
  22. package/payload/src/components/ui/command.tsx +186 -0
  23. package/payload/src/components/ui/context-menu.tsx +261 -0
  24. package/payload/src/components/ui/date-picker.tsx +140 -0
  25. package/payload/src/components/ui/dialog.tsx +176 -0
  26. package/payload/src/components/ui/dropdown-menu.tsx +277 -0
  27. package/payload/src/components/ui/form.tsx +151 -0
  28. package/payload/src/components/ui/hover-card.tsx +46 -0
  29. package/payload/src/components/ui/input-group.tsx +127 -0
  30. package/payload/src/components/ui/input.tsx +25 -0
  31. package/payload/src/components/ui/label.tsx +28 -0
  32. package/payload/src/components/ui/pagination.tsx +130 -0
  33. package/payload/src/components/ui/popover.tsx +97 -0
  34. package/payload/src/components/ui/progress.tsx +35 -0
  35. package/payload/src/components/ui/radio-group.tsx +49 -0
  36. package/payload/src/components/ui/scroll-area.tsx +67 -0
  37. package/payload/src/components/ui/select.tsx +199 -0
  38. package/payload/src/components/ui/separator.tsx +32 -0
  39. package/payload/src/components/ui/sheet.tsx +155 -0
  40. package/payload/src/components/ui/skeleton.tsx +21 -0
  41. package/payload/src/components/ui/slider.tsx +61 -0
  42. package/payload/src/components/ui/sonner.tsx +31 -0
  43. package/payload/src/components/ui/switch.tsx +40 -0
  44. package/payload/src/components/ui/table.tsx +108 -0
  45. package/payload/src/components/ui/tabs.tsx +98 -0
  46. package/payload/src/components/ui/textarea.tsx +24 -0
  47. package/payload/src/components/ui/toggle-group.tsx +72 -0
  48. package/payload/src/components/ui/toggle.tsx +54 -0
  49. package/payload/src/components/ui/tooltip.tsx +65 -0
  50. package/payload/src/lib/utils.ts +1 -0
  51. package/payload/src/themes/manifest.json +12 -0
  52. package/payload/src/themes/zabuti-ui-sky.css +14 -0
  53. package/payload/src/themes/zabuti-ui-teal.css +14 -0
  54. package/payload/src/zabuti-ui.css +272 -0
@@ -0,0 +1,98 @@
1
+ "use client"
2
+
3
+ /**
4
+ * Tabs — Zabuti UI primitive.
5
+ *
6
+ * Radix Tabs + `class-variance-authority` over the `zabuti-ui.css` token layer.
7
+ * Zabuti-owned, no shadcn dependency; Radix is the behavioural base only.
8
+ *
9
+ * Local surface: `TabsList` `variant="line"` (underline style) beyond the
10
+ * default segmented control; vertical `orientation`.
11
+ */
12
+ import * as React from "react"
13
+ import { cva, type VariantProps } from "class-variance-authority"
14
+ import { cn } from "cn"
15
+ import { Tabs as TabsPrimitive } from "radix-ui"
16
+
17
+ function Tabs({
18
+ className,
19
+ orientation = "horizontal",
20
+ ...props
21
+ }: React.ComponentProps<typeof TabsPrimitive.Root>) {
22
+ return (
23
+ <TabsPrimitive.Root
24
+ data-slot="tabs"
25
+ data-orientation={orientation}
26
+ className={cn(
27
+ "group/tabs flex gap-2 data-horizontal:flex-col",
28
+ className
29
+ )}
30
+ {...props}
31
+ />
32
+ )
33
+ }
34
+
35
+ const tabsListVariants = cva(
36
+ "group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",
37
+ {
38
+ variants: {
39
+ variant: {
40
+ default: "bg-muted",
41
+ line: "gap-1 bg-transparent",
42
+ },
43
+ },
44
+ defaultVariants: {
45
+ variant: "default",
46
+ },
47
+ }
48
+ )
49
+
50
+ function TabsList({
51
+ className,
52
+ variant = "default",
53
+ ...props
54
+ }: React.ComponentProps<typeof TabsPrimitive.List> &
55
+ VariantProps<typeof tabsListVariants>) {
56
+ return (
57
+ <TabsPrimitive.List
58
+ data-slot="tabs-list"
59
+ data-variant={variant}
60
+ className={cn(tabsListVariants({ variant }), className)}
61
+ {...props}
62
+ />
63
+ )
64
+ }
65
+
66
+ function TabsTrigger({
67
+ className,
68
+ ...props
69
+ }: React.ComponentProps<typeof TabsPrimitive.Trigger>) {
70
+ return (
71
+ <TabsPrimitive.Trigger
72
+ data-slot="tabs-trigger"
73
+ className={cn(
74
+ "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
75
+ "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent",
76
+ "data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground",
77
+ "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",
78
+ className
79
+ )}
80
+ {...props}
81
+ />
82
+ )
83
+ }
84
+
85
+ function TabsContent({
86
+ className,
87
+ ...props
88
+ }: React.ComponentProps<typeof TabsPrimitive.Content>) {
89
+ return (
90
+ <TabsPrimitive.Content
91
+ data-slot="tabs-content"
92
+ className={cn("flex-1 text-sm outline-none", className)}
93
+ {...props}
94
+ />
95
+ )
96
+ }
97
+
98
+ export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Textarea — Zabuti UI primitive.
3
+ *
4
+ * Presentational `<textarea>` with `field-sizing-content` + Tailwind over the
5
+ * `zabuti-ui.css` token layer. No Radix, server-safe. Zabuti-owned, no shadcn
6
+ * dependency. Carries the shared field styling.
7
+ */
8
+ import * as React from "react"
9
+ import { cn } from "cn"
10
+
11
+ function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
12
+ return (
13
+ <textarea
14
+ data-slot="textarea"
15
+ className={cn(
16
+ "flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
17
+ className
18
+ )}
19
+ {...props}
20
+ />
21
+ )
22
+ }
23
+
24
+ export { Textarea }
@@ -0,0 +1,72 @@
1
+ "use client"
2
+
3
+ /**
4
+ * Toggle Group — Zabuti UI primitive.
5
+ *
6
+ * Radix ToggleGroup + Tailwind over the `zabuti-ui.css` token layer, sharing
7
+ * `toggleVariants` with the `toggle` primitive via context. Zabuti-owned, no
8
+ * shadcn dependency; Radix is the behavioural base only.
9
+ *
10
+ * Local surface: `variant` / `size` set on the group cascade to every item.
11
+ */
12
+ import * as React from "react"
13
+ import { type VariantProps } from "class-variance-authority"
14
+ import { cn } from "cn"
15
+ import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui"
16
+
17
+ import { toggleVariants } from "@/components/ui/toggle"
18
+
19
+ const ToggleGroupContext = React.createContext<VariantProps<typeof toggleVariants>>({
20
+ size: "default",
21
+ variant: "default",
22
+ })
23
+
24
+ function ToggleGroup({
25
+ className,
26
+ variant,
27
+ size,
28
+ children,
29
+ ...props
30
+ }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>) {
31
+ return (
32
+ <ToggleGroupPrimitive.Root
33
+ data-slot="toggle-group"
34
+ data-variant={variant}
35
+ data-size={size}
36
+ className={cn(
37
+ "group/toggle-group flex w-fit items-center rounded-lg data-[variant=outline]:shadow-sm",
38
+ className
39
+ )}
40
+ {...props}
41
+ >
42
+ <ToggleGroupContext.Provider value={{ variant, size }}>{children}</ToggleGroupContext.Provider>
43
+ </ToggleGroupPrimitive.Root>
44
+ )
45
+ }
46
+
47
+ function ToggleGroupItem({
48
+ className,
49
+ children,
50
+ variant,
51
+ size,
52
+ ...props
53
+ }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>) {
54
+ const context = React.useContext(ToggleGroupContext)
55
+ return (
56
+ <ToggleGroupPrimitive.Item
57
+ data-slot="toggle-group-item"
58
+ data-variant={context.variant ?? variant}
59
+ data-size={context.size ?? size}
60
+ className={cn(
61
+ toggleVariants({ variant: context.variant ?? variant, size: context.size ?? size }),
62
+ "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-lg last:rounded-r-lg focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
63
+ className
64
+ )}
65
+ {...props}
66
+ >
67
+ {children}
68
+ </ToggleGroupPrimitive.Item>
69
+ )
70
+ }
71
+
72
+ export { ToggleGroup, ToggleGroupItem }
@@ -0,0 +1,54 @@
1
+ "use client"
2
+
3
+ /**
4
+ * Toggle — Zabuti UI primitive.
5
+ *
6
+ * Radix Toggle + `class-variance-authority` over the `zabuti-ui.css` token
7
+ * layer. Zabuti-owned, no shadcn dependency; Radix is the behavioural base only.
8
+ * `toggleVariants` is exported for `toggle-group` to reuse.
9
+ *
10
+ * Local surface: `variant` (`default` / `outline`), `size` (`sm` / `default` / `lg`).
11
+ */
12
+ import * as React from "react"
13
+ import { cva, type VariantProps } from "class-variance-authority"
14
+ import { cn } from "cn"
15
+ import { Toggle as TogglePrimitive } from "radix-ui"
16
+
17
+ const toggleVariants = cva(
18
+ "inline-flex items-center justify-center gap-1.5 rounded-lg text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
19
+ {
20
+ variants: {
21
+ variant: {
22
+ default: "bg-transparent",
23
+ outline:
24
+ "border border-input bg-transparent shadow-sm hover:bg-muted hover:text-foreground",
25
+ },
26
+ size: {
27
+ default: "h-8 min-w-8 px-2",
28
+ sm: "h-7 min-w-7 px-1.5",
29
+ lg: "h-9 min-w-9 px-2.5",
30
+ },
31
+ },
32
+ defaultVariants: {
33
+ variant: "default",
34
+ size: "default",
35
+ },
36
+ }
37
+ )
38
+
39
+ function Toggle({
40
+ className,
41
+ variant,
42
+ size,
43
+ ...props
44
+ }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>) {
45
+ return (
46
+ <TogglePrimitive.Root
47
+ data-slot="toggle"
48
+ className={cn(toggleVariants({ variant, size, className }))}
49
+ {...props}
50
+ />
51
+ )
52
+ }
53
+
54
+ export { Toggle, toggleVariants }
@@ -0,0 +1,65 @@
1
+ "use client"
2
+
3
+ /**
4
+ * Tooltip — Zabuti UI primitive.
5
+ *
6
+ * Radix Tooltip + Tailwind over the `zabuti-ui.css` token layer. Zabuti-owned,
7
+ * no shadcn dependency; Radix is the behavioural base only.
8
+ *
9
+ * `TooltipProvider` defaults `delayDuration={0}`; `TooltipContent` renders an
10
+ * arrow.
11
+ */
12
+ import * as React from "react"
13
+ import { cn } from "cn"
14
+ import { Tooltip as TooltipPrimitive } from "radix-ui"
15
+
16
+ function TooltipProvider({
17
+ delayDuration = 0,
18
+ ...props
19
+ }: React.ComponentProps<typeof TooltipPrimitive.Provider>) {
20
+ return (
21
+ <TooltipPrimitive.Provider
22
+ data-slot="tooltip-provider"
23
+ delayDuration={delayDuration}
24
+ {...props}
25
+ />
26
+ )
27
+ }
28
+
29
+ function Tooltip({
30
+ ...props
31
+ }: React.ComponentProps<typeof TooltipPrimitive.Root>) {
32
+ return <TooltipPrimitive.Root data-slot="tooltip" {...props} />
33
+ }
34
+
35
+ function TooltipTrigger({
36
+ ...props
37
+ }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {
38
+ return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />
39
+ }
40
+
41
+ function TooltipContent({
42
+ className,
43
+ sideOffset = 0,
44
+ children,
45
+ ...props
46
+ }: React.ComponentProps<typeof TooltipPrimitive.Content>) {
47
+ return (
48
+ <TooltipPrimitive.Portal>
49
+ <TooltipPrimitive.Content
50
+ data-slot="tooltip-content"
51
+ sideOffset={sideOffset}
52
+ className={cn(
53
+ "z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
54
+ className
55
+ )}
56
+ {...props}
57
+ >
58
+ {children}
59
+ <TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" />
60
+ </TooltipPrimitive.Content>
61
+ </TooltipPrimitive.Portal>
62
+ )
63
+ }
64
+
65
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger }
@@ -0,0 +1 @@
1
+ export { cn } from "cn"
@@ -0,0 +1,12 @@
1
+ [
2
+ {
3
+ "name": "teal",
4
+ "label": "Teal",
5
+ "swatch": "oklch(0.52 0.09 195)"
6
+ },
7
+ {
8
+ "name": "sky",
9
+ "label": "Sky",
10
+ "swatch": "oklch(0.54 0.14 244)"
11
+ }
12
+ ]
@@ -0,0 +1,14 @@
1
+ /* Zabuti theme: Sky — generated from src/themes/themes.ts. Do not edit by hand. */
2
+
3
+ :root {
4
+ --primary: oklch(0.54 0.14 244);
5
+ --primary-foreground: oklch(0.985 0 0);
6
+ --ring: oklch(0.64 0.12 244);
7
+ }
8
+
9
+ .dark {
10
+ --primary: oklch(0.72 0.13 244);
11
+ --primary-foreground: oklch(0.19 0.04 244);
12
+ --ring: oklch(0.6 0.1 244);
13
+ }
14
+
@@ -0,0 +1,14 @@
1
+ /* Zabuti theme: Teal — generated from src/themes/themes.ts. Do not edit by hand. */
2
+
3
+ :root {
4
+ --primary: oklch(0.52 0.09 195);
5
+ --primary-foreground: oklch(0.985 0 0);
6
+ --ring: oklch(0.62 0.08 195);
7
+ }
8
+
9
+ .dark {
10
+ --primary: oklch(0.74 0.11 195);
11
+ --primary-foreground: oklch(0.19 0.03 195);
12
+ --ring: oklch(0.62 0.08 195);
13
+ }
14
+
@@ -0,0 +1,272 @@
1
+ /**
2
+ * Zabuti UI theme layer — the token + variant plumbing the Zabuti primitives
3
+ * need. Import it once after `@import "tailwindcss"` (and `tw-animate-css`).
4
+ * It carries:
5
+ * - the `dark` variant and the `data-*` state variants Radix drives
6
+ * - the `@theme` colour/radius mappings so `bg-primary` etc. resolve
7
+ * - a neutral default `:root` / `.dark` token set — override any of these
8
+ * custom properties in your own stylesheet (loaded after this file) to
9
+ * reskin every primitive.
10
+ *
11
+ * Replaces what a `shadcn init` would have written; no shadcn dependency.
12
+ */
13
+
14
+ @custom-variant dark (&:is(.dark *));
15
+
16
+ /* Radix sets data-state="open|closed|checked|unchecked|active"; these variants
17
+ * let `data-open:` / `data-checked:` / … classes match that or a bare attr. */
18
+ @custom-variant data-open {
19
+ &:where([data-state="open"]),
20
+ &:where([data-open]:not([data-open="false"])) {
21
+ @slot;
22
+ }
23
+ }
24
+ @custom-variant data-closed {
25
+ &:where([data-state="closed"]),
26
+ &:where([data-closed]:not([data-closed="false"])) {
27
+ @slot;
28
+ }
29
+ }
30
+ @custom-variant data-checked {
31
+ &:where([data-state="checked"]),
32
+ &:where([data-checked]:not([data-checked="false"])) {
33
+ @slot;
34
+ }
35
+ }
36
+ @custom-variant data-unchecked {
37
+ &:where([data-state="unchecked"]),
38
+ &:where([data-unchecked]:not([data-unchecked="false"])) {
39
+ @slot;
40
+ }
41
+ }
42
+ @custom-variant data-selected {
43
+ &:where([data-selected="true"]) {
44
+ @slot;
45
+ }
46
+ }
47
+ @custom-variant data-disabled {
48
+ &:where([data-disabled="true"]),
49
+ &:where([data-disabled]:not([data-disabled="false"])) {
50
+ @slot;
51
+ }
52
+ }
53
+ @custom-variant data-active {
54
+ &:where([data-state="active"]),
55
+ &:where([data-active]:not([data-active="false"])) {
56
+ @slot;
57
+ }
58
+ }
59
+ @custom-variant data-horizontal {
60
+ &:where([data-orientation="horizontal"]) {
61
+ @slot;
62
+ }
63
+ }
64
+ @custom-variant data-vertical {
65
+ &:where([data-orientation="vertical"]) {
66
+ @slot;
67
+ }
68
+ }
69
+
70
+ @theme inline {
71
+ --font-heading: var(--font-sans);
72
+ --color-sidebar-ring: var(--sidebar-ring);
73
+ --color-sidebar-border: var(--sidebar-border);
74
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
75
+ --color-sidebar-accent: var(--sidebar-accent);
76
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
77
+ --color-sidebar-primary: var(--sidebar-primary);
78
+ --color-sidebar-foreground: var(--sidebar-foreground);
79
+ --color-sidebar: var(--sidebar);
80
+ --color-chart-5: var(--chart-5);
81
+ --color-chart-4: var(--chart-4);
82
+ --color-chart-3: var(--chart-3);
83
+ --color-chart-2: var(--chart-2);
84
+ --color-chart-1: var(--chart-1);
85
+ --color-ring: var(--ring);
86
+ --color-input: var(--input);
87
+ --color-border: var(--border);
88
+ --color-destructive: var(--destructive);
89
+ --color-accent-foreground: var(--accent-foreground);
90
+ --color-accent: var(--accent);
91
+ --color-muted-foreground: var(--muted-foreground);
92
+ --color-muted: var(--muted);
93
+ --color-secondary-foreground: var(--secondary-foreground);
94
+ --color-secondary: var(--secondary);
95
+ --color-primary-foreground: var(--primary-foreground);
96
+ --color-primary: var(--primary);
97
+ --color-popover-foreground: var(--popover-foreground);
98
+ --color-popover: var(--popover);
99
+ --color-card-foreground: var(--card-foreground);
100
+ --color-card: var(--card);
101
+ --color-foreground: var(--foreground);
102
+ --color-background: var(--background);
103
+ --radius-sm: calc(var(--radius) * 0.6);
104
+ --radius-md: calc(var(--radius) * 0.8);
105
+ --radius-lg: var(--radius);
106
+ --radius-xl: calc(var(--radius) * 1.4);
107
+ --radius-2xl: calc(var(--radius) * 1.8);
108
+ --radius-3xl: calc(var(--radius) * 2.2);
109
+ --radius-4xl: calc(var(--radius) * 2.6);
110
+
111
+ /* Accordion open/close — Radix supplies --radix-accordion-content-height. */
112
+ --animate-accordion-down: accordion-down 0.2s ease-out;
113
+ --animate-accordion-up: accordion-up 0.2s ease-out;
114
+ }
115
+
116
+ @keyframes accordion-down {
117
+ from {
118
+ height: 0;
119
+ }
120
+ to {
121
+ height: var(--radix-accordion-content-height);
122
+ }
123
+ }
124
+ @keyframes accordion-up {
125
+ from {
126
+ height: var(--radix-accordion-content-height);
127
+ }
128
+ to {
129
+ height: 0;
130
+ }
131
+ }
132
+
133
+ :root {
134
+ --radius: 0.625rem;
135
+
136
+ /* Categorical chart palette — 6 slots, fixed order, never cycled. Contrast-
137
+ * validated (dataviz skill) against the card surface in each mode. Consumers
138
+ * may override these to brand-align charts; hold any replacement to the full
139
+ * validator gate. Dark steps are the same six hues re-stepped for the dark
140
+ * surface (>= 3:1), not an automatic flip. */
141
+ --zbti-chart-1: #2a78d6; /* blue */
142
+ --zbti-chart-2: #eb6834; /* orange */
143
+ --zbti-chart-3: #1baf7a; /* aqua */
144
+ --zbti-chart-4: #eda100; /* yellow */
145
+ --zbti-chart-5: #e87ba4; /* magenta */
146
+ --zbti-chart-6: #008300; /* green */
147
+
148
+ /* Status palette — fixed, never themed (dataviz skill). Reserved for
149
+ * good/warning/serious/critical state; always paired with an icon + label,
150
+ * never carrying meaning by colour alone. The same four steps hold in dark
151
+ * mode (all clear 3:1 on the dark surface), so no `.dark` override. */
152
+ --zbti-status-good: #0ca30c;
153
+ --zbti-status-warning: #fab219;
154
+ --zbti-status-serious: #ec835a;
155
+ --zbti-status-critical: #d03b3b;
156
+
157
+ --background: oklch(1 0 0);
158
+ --foreground: oklch(0.145 0 0);
159
+ --card: oklch(1 0 0);
160
+ --card-foreground: oklch(0.145 0 0);
161
+ --popover: oklch(1 0 0);
162
+ --popover-foreground: oklch(0.145 0 0);
163
+ --primary: oklch(0.205 0 0);
164
+ --primary-foreground: oklch(0.985 0 0);
165
+ --secondary: oklch(0.97 0 0);
166
+ --secondary-foreground: oklch(0.205 0 0);
167
+ --muted: oklch(0.97 0 0);
168
+ --muted-foreground: oklch(0.556 0 0);
169
+ --accent: oklch(0.97 0 0);
170
+ --accent-foreground: oklch(0.205 0 0);
171
+ --destructive: oklch(0.577 0.245 27.325);
172
+ --border: oklch(0.922 0 0);
173
+ --input: oklch(0.922 0 0);
174
+ --ring: oklch(0.708 0 0);
175
+ --chart-1: oklch(0.646 0.222 41.116);
176
+ --chart-2: oklch(0.6 0.118 184.704);
177
+ --chart-3: oklch(0.398 0.07 227.392);
178
+ --chart-4: oklch(0.828 0.189 84.429);
179
+ --chart-5: oklch(0.769 0.188 70.08);
180
+ --sidebar: oklch(0.985 0 0);
181
+ --sidebar-foreground: oklch(0.145 0 0);
182
+ --sidebar-primary: oklch(0.205 0 0);
183
+ --sidebar-primary-foreground: oklch(0.985 0 0);
184
+ --sidebar-accent: oklch(0.97 0 0);
185
+ --sidebar-accent-foreground: oklch(0.205 0 0);
186
+ --sidebar-border: oklch(0.922 0 0);
187
+ --sidebar-ring: oklch(0.708 0 0);
188
+ }
189
+
190
+ .dark {
191
+ --zbti-chart-1: #3987e5; /* blue */
192
+ --zbti-chart-2: #d95926; /* orange */
193
+ --zbti-chart-3: #199e70; /* aqua */
194
+ --zbti-chart-4: #c98500; /* yellow */
195
+ --zbti-chart-5: #d55181; /* magenta */
196
+ --zbti-chart-6: #008300; /* green */
197
+
198
+ --background: oklch(0.145 0 0);
199
+ --foreground: oklch(0.985 0 0);
200
+ --card: oklch(0.205 0 0);
201
+ --card-foreground: oklch(0.985 0 0);
202
+ --popover: oklch(0.205 0 0);
203
+ --popover-foreground: oklch(0.985 0 0);
204
+ --primary: oklch(0.922 0 0);
205
+ --primary-foreground: oklch(0.205 0 0);
206
+ --secondary: oklch(0.269 0 0);
207
+ --secondary-foreground: oklch(0.985 0 0);
208
+ --muted: oklch(0.269 0 0);
209
+ --muted-foreground: oklch(0.708 0 0);
210
+ --accent: oklch(0.269 0 0);
211
+ --accent-foreground: oklch(0.985 0 0);
212
+ --destructive: oklch(0.704 0.191 22.216);
213
+ --border: oklch(1 0 0 / 10%);
214
+ --input: oklch(1 0 0 / 15%);
215
+ --ring: oklch(0.556 0 0);
216
+ --chart-1: oklch(0.488 0.243 264.376);
217
+ --chart-2: oklch(0.696 0.17 162.48);
218
+ --chart-3: oklch(0.769 0.188 70.08);
219
+ --chart-4: oklch(0.627 0.265 303.9);
220
+ --chart-5: oklch(0.645 0.246 16.439);
221
+ --sidebar: oklch(0.205 0 0);
222
+ --sidebar-foreground: oklch(0.985 0 0);
223
+ --sidebar-primary: oklch(0.488 0.243 264.376);
224
+ --sidebar-primary-foreground: oklch(0.985 0 0);
225
+ --sidebar-accent: oklch(0.269 0 0);
226
+ --sidebar-accent-foreground: oklch(0.985 0 0);
227
+ --sidebar-border: oklch(1 0 0 / 10%);
228
+ --sidebar-ring: oklch(0.556 0 0);
229
+ }
230
+
231
+ /* Per-value status tints (Grid Reports pills, card fields, calendar chips, Gantt
232
+ * bars). The tint colours are authored as light-surface pastels; in dark mode
233
+ * they are blended toward the card so a near-white fill doesn't glare and the
234
+ * ink is lifted enough to stay legible. Consumers get this for free — it's one
235
+ * rule, not a per-component prop. Call sites pass `--tint-bg` / `--tint-fg`. */
236
+ .zbti-tint {
237
+ background-color: var(--tint-bg);
238
+ color: var(--tint-fg);
239
+ }
240
+ .dark .zbti-tint {
241
+ background-color: color-mix(in oklch, var(--tint-bg) 20%, var(--card));
242
+ color: color-mix(in oklch, var(--tint-fg), white 62%);
243
+ }
244
+ .zbti-gantt-track {
245
+ background-color: var(--tint-bg);
246
+ }
247
+ .zbti-gantt-fill {
248
+ background-color: var(--tint-fg);
249
+ }
250
+ .dark .zbti-gantt-track {
251
+ background-color: color-mix(in oklch, var(--tint-bg) 22%, var(--card));
252
+ }
253
+ .dark .zbti-gantt-fill {
254
+ background-color: color-mix(in oklch, var(--tint-fg), white 22%);
255
+ }
256
+
257
+ /* The base every Zabuti surface assumes. Without it, Tailwind v4 draws borders in
258
+ the text colour (a card divider comes out black) and the page keeps the
259
+ browser's background and font. Shipped here (2026-11-14, found by a cold
260
+ install into a fresh Vite app) so importing this sheet is enough; every site
261
+ used to paste it into its own CSS. */
262
+ @layer base {
263
+ * {
264
+ @apply border-border outline-ring/50;
265
+ }
266
+ body {
267
+ @apply bg-background text-foreground;
268
+ }
269
+ html {
270
+ @apply font-sans;
271
+ }
272
+ }