@tulipfarm/sprout 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.
- package/LICENSE +21 -0
- package/README.md +183 -2
- package/dist/components/accordion.d.ts +28 -0
- package/dist/components/accordion.js +26 -0
- package/dist/components/alert-dialog.d.ts +60 -0
- package/dist/components/alert-dialog.js +69 -0
- package/dist/components/alert.d.ts +30 -0
- package/dist/components/alert.js +35 -0
- package/dist/components/aspect-ratio.d.ts +7 -0
- package/dist/components/aspect-ratio.js +6 -0
- package/dist/components/attachment.d.ts +118 -0
- package/dist/components/attachment.js +285 -0
- package/dist/components/avatar.d.ts +32 -0
- package/dist/components/avatar.js +73 -0
- package/dist/components/badge.d.ts +21 -0
- package/dist/components/badge.js +27 -0
- package/dist/components/brand-icon.d.ts +28 -0
- package/dist/components/brand-icon.js +78 -0
- package/dist/components/breadcrumb.d.ts +29 -0
- package/dist/components/breadcrumb.js +44 -0
- package/dist/components/button-group.d.ts +28 -0
- package/dist/components/button-group.js +36 -0
- package/dist/components/button.d.ts +79 -0
- package/dist/components/button.js +93 -0
- package/dist/components/calendar.d.ts +27 -0
- package/dist/components/calendar.js +107 -0
- package/dist/components/canvas.d.ts +78 -0
- package/dist/components/canvas.js +180 -0
- package/dist/components/card.d.ts +43 -0
- package/dist/components/card.js +42 -0
- package/dist/components/carousel.d.ts +57 -0
- package/dist/components/carousel.js +422 -0
- package/dist/components/chart.d.ts +112 -0
- package/dist/components/chart.js +172 -0
- package/dist/components/chat-confirmation.d.ts +42 -0
- package/dist/components/chat-confirmation.js +62 -0
- package/dist/components/chat-plan.d.ts +21 -0
- package/dist/components/chat-plan.js +35 -0
- package/dist/components/chat-sources.d.ts +64 -0
- package/dist/components/chat-sources.js +66 -0
- package/dist/components/checkbox.d.ts +16 -0
- package/dist/components/checkbox.js +17 -0
- package/dist/components/choice-list.d.ts +53 -0
- package/dist/components/choice-list.js +36 -0
- package/dist/components/code-block.d.ts +35 -0
- package/dist/components/code-block.js +95 -0
- package/dist/components/collapsible.d.ts +24 -0
- package/dist/components/collapsible.js +27 -0
- package/dist/components/combobox.d.ts +95 -0
- package/dist/components/combobox.js +106 -0
- package/dist/components/command.d.ts +94 -0
- package/dist/components/command.js +414 -0
- package/dist/components/context-menu.d.ts +57 -0
- package/dist/components/context-menu.js +60 -0
- package/dist/components/dialog.d.ts +60 -0
- package/dist/components/dialog.js +79 -0
- package/dist/components/direction.d.ts +6 -0
- package/dist/components/direction.js +6 -0
- package/dist/components/dropdown-menu.d.ts +62 -0
- package/dist/components/dropdown-menu.js +59 -0
- package/dist/components/field.d.ts +117 -0
- package/dist/components/field.js +150 -0
- package/dist/components/file-viewer.d.ts +120 -0
- package/dist/components/file-viewer.js +373 -0
- package/dist/components/form.d.ts +87 -0
- package/dist/components/form.js +55 -0
- package/dist/components/glass-banner.d.ts +27 -0
- package/dist/components/glass-banner.js +116 -0
- package/dist/components/gradient-banner.d.ts +37 -0
- package/dist/components/gradient-banner.js +43 -0
- package/dist/components/hover-card.d.ts +27 -0
- package/dist/components/hover-card.js +26 -0
- package/dist/components/input-group.d.ts +68 -0
- package/dist/components/input-group.js +88 -0
- package/dist/components/input-otp.d.ts +38 -0
- package/dist/components/input-otp.js +43 -0
- package/dist/components/input.d.ts +16 -0
- package/dist/components/input.js +18 -0
- package/dist/components/kbd.d.ts +12 -0
- package/dist/components/kbd.js +11 -0
- package/dist/components/label.d.ts +8 -0
- package/dist/components/label.js +10 -0
- package/dist/components/mention-list.d.ts +54 -0
- package/dist/components/mention-list.js +31 -0
- package/dist/components/menubar.d.ts +64 -0
- package/dist/components/menubar.js +68 -0
- package/dist/components/message-actions.d.ts +34 -0
- package/dist/components/message-actions.js +68 -0
- package/dist/components/message-response.d.ts +20 -0
- package/dist/components/message-response.js +46 -0
- package/dist/components/message-scroller.d.ts +71 -0
- package/dist/components/message-scroller.js +217 -0
- package/dist/components/message.d.ts +49 -0
- package/dist/components/message.js +59 -0
- package/dist/components/navigation-menu.d.ts +45 -0
- package/dist/components/navigation-menu.js +54 -0
- package/dist/components/notice-banner.d.ts +14 -0
- package/dist/components/notice-banner.js +11 -0
- package/dist/components/page-content.d.ts +7 -0
- package/dist/components/page-content.js +9 -0
- package/dist/components/page-header.d.ts +37 -0
- package/dist/components/page-header.js +53 -0
- package/dist/components/pagination.d.ts +29 -0
- package/dist/components/pagination.js +29 -0
- package/dist/components/plan-outline.d.ts +60 -0
- package/dist/components/plan-outline.js +108 -0
- package/dist/components/popover.d.ts +34 -0
- package/dist/components/popover.js +35 -0
- package/dist/components/progress.d.ts +27 -0
- package/dist/components/progress.js +35 -0
- package/dist/components/prompt-list.d.ts +23 -0
- package/dist/components/prompt-list.js +11 -0
- package/dist/components/questionnaire.d.ts +148 -0
- package/dist/components/questionnaire.js +1001 -0
- package/dist/components/radio-group.d.ts +16 -0
- package/dist/components/radio-group.js +21 -0
- package/dist/components/reasoning-effort.d.ts +24 -0
- package/dist/components/reasoning-effort.js +269 -0
- package/dist/components/resizable.d.ts +67 -0
- package/dist/components/resizable.js +536 -0
- package/dist/components/result-card.d.ts +58 -0
- package/dist/components/result-card.js +88 -0
- package/dist/components/review-card.d.ts +62 -0
- package/dist/components/review-card.js +49 -0
- package/dist/components/rich-text-editor.d.ts +51 -0
- package/dist/components/rich-text-editor.js +248 -0
- package/dist/components/schema-diagram.d.ts +52 -0
- package/dist/components/schema-diagram.js +226 -0
- package/dist/components/scroll-area.d.ts +22 -0
- package/dist/components/scroll-area.js +19 -0
- package/dist/components/search-dialog.d.ts +103 -0
- package/dist/components/search-dialog.js +64 -0
- package/dist/components/search-field.d.ts +17 -0
- package/dist/components/search-field.js +27 -0
- package/dist/components/select.d.ts +57 -0
- package/dist/components/select.js +57 -0
- package/dist/components/selection-slot.d.ts +18 -0
- package/dist/components/selection-slot.js +53 -0
- package/dist/components/separator.d.ts +48 -0
- package/dist/components/separator.js +54 -0
- package/dist/components/settings-list.d.ts +26 -0
- package/dist/components/settings-list.js +17 -0
- package/dist/components/sheet.d.ts +70 -0
- package/dist/components/sheet.js +77 -0
- package/dist/components/sidebar.d.ts +70 -0
- package/dist/components/sidebar.js +187 -0
- package/dist/components/skeleton.d.ts +31 -0
- package/dist/components/skeleton.js +32 -0
- package/dist/components/slider.d.ts +17 -0
- package/dist/components/slider.js +24 -0
- package/dist/components/spinner.d.ts +37 -0
- package/dist/components/spinner.js +43 -0
- package/dist/components/state-panel-samples.d.ts +25 -0
- package/dist/components/state-panel-samples.js +423 -0
- package/dist/components/state-panel.d.ts +35 -0
- package/dist/components/state-panel.js +29 -0
- package/dist/components/state-sample.d.ts +63 -0
- package/dist/components/state-sample.js +42 -0
- package/dist/components/switch.d.ts +12 -0
- package/dist/components/switch.js +14 -0
- package/dist/components/table-nuqs.d.ts +16 -0
- package/dist/components/table-nuqs.js +59 -0
- package/dist/components/table.d.ts +120 -0
- package/dist/components/table.js +663 -0
- package/dist/components/tabs.d.ts +37 -0
- package/dist/components/tabs.js +36 -0
- package/dist/components/textarea.d.ts +18 -0
- package/dist/components/textarea.js +19 -0
- package/dist/components/toast.d.ts +45 -0
- package/dist/components/toast.js +83 -0
- package/dist/components/toggle-group.d.ts +30 -0
- package/dist/components/toggle-group.js +39 -0
- package/dist/components/toggle.d.ts +27 -0
- package/dist/components/toggle.js +21 -0
- package/dist/components/tool-activity.d.ts +79 -0
- package/dist/components/tool-activity.js +226 -0
- package/dist/components/toolbar-status.d.ts +21 -0
- package/dist/components/toolbar-status.js +14 -0
- package/dist/components/tooltip.d.ts +31 -0
- package/dist/components/tooltip.js +99 -0
- package/dist/components/typed-text.d.ts +17 -0
- package/dist/components/typed-text.js +56 -0
- package/dist/index.d.ts +88 -0
- package/dist/index.js +88 -0
- package/dist/internal/brand-glyphs.d.ts +342 -0
- package/dist/internal/brand-glyphs.js +238 -0
- package/dist/internal/classes.d.ts +3 -0
- package/dist/internal/classes.js +20 -0
- package/dist/internal/fieldset.d.ts +6 -0
- package/dist/internal/fieldset.js +38 -0
- package/dist/internal/file-kind.d.ts +4 -0
- package/dist/internal/file-kind.js +62 -0
- package/dist/internal/languages.d.ts +7 -0
- package/dist/internal/languages.js +1010 -0
- package/dist/internal/message-scroller.d.ts +102 -0
- package/dist/internal/message-scroller.js +637 -0
- package/dist/internal/pressable.d.ts +2 -0
- package/dist/internal/pressable.js +29 -0
- package/dist/internal/syntax.d.ts +14 -0
- package/dist/internal/syntax.js +137 -0
- package/dist/styles/accordion.css +102 -0
- package/dist/styles/alert-dialog.css +198 -0
- package/dist/styles/alert.css +149 -0
- package/dist/styles/aspect-ratio.css +8 -0
- package/dist/styles/attachment.css +720 -0
- package/dist/styles/avatar.css +186 -0
- package/dist/styles/badge.css +178 -0
- package/dist/styles/brand-icon.css +104 -0
- package/dist/styles/breadcrumb.css +121 -0
- package/dist/styles/button-group.css +113 -0
- package/dist/styles/button.css +380 -0
- package/dist/styles/calendar.css +295 -0
- package/dist/styles/canvas.css +327 -0
- package/dist/styles/card.css +146 -0
- package/dist/styles/carousel.css +107 -0
- package/dist/styles/chart.css +227 -0
- package/dist/styles/chat-confirmation.css +29 -0
- package/dist/styles/chat-plan.css +109 -0
- package/dist/styles/chat-sources.css +191 -0
- package/dist/styles/checkbox.css +123 -0
- package/dist/styles/choice-list.css +343 -0
- package/dist/styles/code-block.css +211 -0
- package/dist/styles/collapsible.css +72 -0
- package/dist/styles/combobox.css +347 -0
- package/dist/styles/command.css +233 -0
- package/dist/styles/context-menu.css +151 -0
- package/dist/styles/dialog.css +237 -0
- package/dist/styles/dropdown-menu.css +150 -0
- package/dist/styles/field.css +341 -0
- package/dist/styles/file-viewer.css +278 -0
- package/dist/styles/form.css +155 -0
- package/dist/styles/glass-banner.css +308 -0
- package/dist/styles/gradient-banner.css +256 -0
- package/dist/styles/hover-card.css +95 -0
- package/dist/styles/index.css +262 -0
- package/dist/styles/input-group.css +290 -0
- package/dist/styles/input-otp.css +138 -0
- package/dist/styles/input.css +99 -0
- package/dist/styles/kbd.css +59 -0
- package/dist/styles/label.css +89 -0
- package/dist/styles/mention-list.css +166 -0
- package/dist/styles/menubar.css +226 -0
- package/dist/styles/message-actions.css +83 -0
- package/dist/styles/message-response.css +176 -0
- package/dist/styles/message-scroller.css +136 -0
- package/dist/styles/message.css +310 -0
- package/dist/styles/navigation-menu.css +291 -0
- package/dist/styles/notice-banner.css +68 -0
- package/dist/styles/page-content.css +21 -0
- package/dist/styles/page-header.css +156 -0
- package/dist/styles/pagination.css +72 -0
- package/dist/styles/plan-outline.css +393 -0
- package/dist/styles/popover.css +140 -0
- package/dist/styles/progress.css +93 -0
- package/dist/styles/prompt-list.css +165 -0
- package/dist/styles/questionnaire.css +323 -0
- package/dist/styles/radio-group.css +120 -0
- package/dist/styles/reasoning-effort.css +157 -0
- package/dist/styles/resizable.css +108 -0
- package/dist/styles/result-card.css +215 -0
- package/dist/styles/review-card.css +235 -0
- package/dist/styles/rich-text-editor.css +169 -0
- package/dist/styles/schema-diagram.css +419 -0
- package/dist/styles/scroll-area.css +77 -0
- package/dist/styles/search-dialog.css +363 -0
- package/dist/styles/search-field.css +17 -0
- package/dist/styles/select.css +285 -0
- package/dist/styles/selection-slot.css +31 -0
- package/dist/styles/separator.css +206 -0
- package/dist/styles/settings-list.css +81 -0
- package/dist/styles/sheet.css +361 -0
- package/dist/styles/sidebar.css +363 -0
- package/dist/styles/skeleton.css +80 -0
- package/dist/styles/slider.css +142 -0
- package/dist/styles/spinner.css +39 -0
- package/dist/styles/state-panel-samples.css +41 -0
- package/dist/styles/state-panel.css +182 -0
- package/dist/styles/state-sample.css +285 -0
- package/dist/styles/switch.css +128 -0
- package/dist/styles/table.css +604 -0
- package/dist/styles/tabs.css +223 -0
- package/dist/styles/textarea.css +78 -0
- package/dist/styles/themes/chatgpt.css +125 -0
- package/dist/styles/themes/claude.css +125 -0
- package/dist/styles/themes/cloudflare.css +125 -0
- package/dist/styles/themes/discord.css +125 -0
- package/dist/styles/themes/github.css +125 -0
- package/dist/styles/themes/grok.css +125 -0
- package/dist/styles/themes/linear.css +126 -0
- package/dist/styles/themes/neutral.css +125 -0
- package/dist/styles/themes/notion.css +125 -0
- package/dist/styles/themes/perplexity.css +125 -0
- package/dist/styles/themes/raycast.css +125 -0
- package/dist/styles/themes/spotify.css +125 -0
- package/dist/styles/themes/stripe.css +125 -0
- package/dist/styles/themes/supabase.css +125 -0
- package/dist/styles/themes/tulipfarm.css +125 -0
- package/dist/styles/themes/vercel.css +126 -0
- package/dist/styles/toast.css +197 -0
- package/dist/styles/toggle-group.css +161 -0
- package/dist/styles/toggle.css +119 -0
- package/dist/styles/tool-activity.css +396 -0
- package/dist/styles/toolbar-status.css +52 -0
- package/dist/styles/tooltip.css +122 -0
- package/dist/styles/typed-text.css +17 -0
- package/package.json +443 -4
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* Supabase: Dark slate and emerald.
|
|
2
|
+
*
|
|
3
|
+
* One file is the whole theme: font, radius, and every color token for light
|
|
4
|
+
* and dark. Import it after "@tulipfarm/sprout/styles.css", then set
|
|
5
|
+
* data-sprout-theme="supabase" on <html>, or on any element to theme only
|
|
6
|
+
* that subtree.
|
|
7
|
+
*/
|
|
8
|
+
@layer base {
|
|
9
|
+
[data-sprout-theme="supabase"] {
|
|
10
|
+
--sprout-font: ui-sans-serif, system-ui, sans-serif;
|
|
11
|
+
--sprout-radius-control: 0.375rem;
|
|
12
|
+
--sprout-radius-panel: 0.5rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-sprout-theme="supabase"],
|
|
16
|
+
.light[data-sprout-theme="supabase"],
|
|
17
|
+
.light [data-sprout-theme="supabase"] {
|
|
18
|
+
--sprout-canvas: #fcfcfc;
|
|
19
|
+
--sprout-surface: #ffffff;
|
|
20
|
+
--sprout-hover: #f1f1f1;
|
|
21
|
+
--sprout-active: #e8e8e8;
|
|
22
|
+
--sprout-text: #171717;
|
|
23
|
+
--sprout-muted: #636363;
|
|
24
|
+
--sprout-line: #e6e6e6;
|
|
25
|
+
--sprout-border: #8b8b8b;
|
|
26
|
+
--sprout-border-strong: #6f6f6f;
|
|
27
|
+
--sprout-input: #dadada;
|
|
28
|
+
--sprout-primary: #147a4c;
|
|
29
|
+
--sprout-primary-hover: #126b43;
|
|
30
|
+
--sprout-primary-active: #105f3b;
|
|
31
|
+
--sprout-on-primary: #ffffff;
|
|
32
|
+
--sprout-focus: #147a4c;
|
|
33
|
+
--sprout-danger: #b32d34;
|
|
34
|
+
--sprout-danger-hover: #98252b;
|
|
35
|
+
--sprout-on-danger: #fff8f8;
|
|
36
|
+
--sprout-info: #1f5fb8;
|
|
37
|
+
--sprout-info-subtle: #ebf1fd;
|
|
38
|
+
--sprout-danger-subtle: #fdeeef;
|
|
39
|
+
--sprout-success: #1d6a37;
|
|
40
|
+
--sprout-success-subtle: #e8f4eb;
|
|
41
|
+
--sprout-warning: #8a4b08;
|
|
42
|
+
--sprout-warning-subtle: #fdf1dc;
|
|
43
|
+
--sprout-primary-subtle: color-mix(
|
|
44
|
+
in oklab,
|
|
45
|
+
var(--sprout-primary) 10%,
|
|
46
|
+
var(--sprout-surface)
|
|
47
|
+
);
|
|
48
|
+
--sprout-secondary: #efefef;
|
|
49
|
+
--sprout-overlay: rgb(18 18 18 / 0.35);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.dark[data-sprout-theme="supabase"],
|
|
53
|
+
.dark [data-sprout-theme="supabase"] {
|
|
54
|
+
--sprout-canvas: #121212;
|
|
55
|
+
--sprout-surface: #171717;
|
|
56
|
+
--sprout-hover: #282828;
|
|
57
|
+
--sprout-active: #333333;
|
|
58
|
+
--sprout-text: #ededed;
|
|
59
|
+
--sprout-muted: #a0a0a0;
|
|
60
|
+
--sprout-line: #2e2e2e;
|
|
61
|
+
--sprout-border: #777777;
|
|
62
|
+
--sprout-border-strong: #939393;
|
|
63
|
+
--sprout-input: #424242;
|
|
64
|
+
--sprout-primary: #3ecf8e;
|
|
65
|
+
--sprout-primary-hover: #55d59c;
|
|
66
|
+
--sprout-primary-active: #68daa7;
|
|
67
|
+
--sprout-on-primary: #111111;
|
|
68
|
+
--sprout-focus: #3ecf8e;
|
|
69
|
+
--sprout-danger: #ff9197;
|
|
70
|
+
--sprout-danger-hover: #ffadb1;
|
|
71
|
+
--sprout-on-danger: #3c1014;
|
|
72
|
+
--sprout-info: #8fb8f5;
|
|
73
|
+
--sprout-info-subtle: #1f2c45;
|
|
74
|
+
--sprout-danger-subtle: #3a2124;
|
|
75
|
+
--sprout-success: #82d29a;
|
|
76
|
+
--sprout-success-subtle: #1c3223;
|
|
77
|
+
--sprout-warning: #eec27e;
|
|
78
|
+
--sprout-warning-subtle: #34291b;
|
|
79
|
+
--sprout-primary-subtle: color-mix(
|
|
80
|
+
in oklab,
|
|
81
|
+
var(--sprout-primary) 16%,
|
|
82
|
+
var(--sprout-surface)
|
|
83
|
+
);
|
|
84
|
+
--sprout-secondary: #2a2a2a;
|
|
85
|
+
--sprout-overlay: rgb(8 8 8 / 0.65);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media (prefers-color-scheme: dark) {
|
|
89
|
+
:root:not(.light):not(.dark)[data-sprout-theme="supabase"],
|
|
90
|
+
:root:not(.light):not(.dark) [data-sprout-theme="supabase"] {
|
|
91
|
+
--sprout-canvas: #121212;
|
|
92
|
+
--sprout-surface: #171717;
|
|
93
|
+
--sprout-hover: #282828;
|
|
94
|
+
--sprout-active: #333333;
|
|
95
|
+
--sprout-text: #ededed;
|
|
96
|
+
--sprout-muted: #a0a0a0;
|
|
97
|
+
--sprout-line: #2e2e2e;
|
|
98
|
+
--sprout-border: #777777;
|
|
99
|
+
--sprout-border-strong: #939393;
|
|
100
|
+
--sprout-input: #424242;
|
|
101
|
+
--sprout-primary: #3ecf8e;
|
|
102
|
+
--sprout-primary-hover: #55d59c;
|
|
103
|
+
--sprout-primary-active: #68daa7;
|
|
104
|
+
--sprout-on-primary: #111111;
|
|
105
|
+
--sprout-focus: #3ecf8e;
|
|
106
|
+
--sprout-danger: #ff9197;
|
|
107
|
+
--sprout-danger-hover: #ffadb1;
|
|
108
|
+
--sprout-on-danger: #3c1014;
|
|
109
|
+
--sprout-info: #8fb8f5;
|
|
110
|
+
--sprout-info-subtle: #1f2c45;
|
|
111
|
+
--sprout-danger-subtle: #3a2124;
|
|
112
|
+
--sprout-success: #82d29a;
|
|
113
|
+
--sprout-success-subtle: #1c3223;
|
|
114
|
+
--sprout-warning: #eec27e;
|
|
115
|
+
--sprout-warning-subtle: #34291b;
|
|
116
|
+
--sprout-primary-subtle: color-mix(
|
|
117
|
+
in oklab,
|
|
118
|
+
var(--sprout-primary) 16%,
|
|
119
|
+
var(--sprout-surface)
|
|
120
|
+
);
|
|
121
|
+
--sprout-secondary: #2a2a2a;
|
|
122
|
+
--sprout-overlay: rgb(8 8 8 / 0.65);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* TulipFarm: Neutral grays with TulipFarm green.
|
|
2
|
+
*
|
|
3
|
+
* One file is the whole theme: font, radius, and every color token for light
|
|
4
|
+
* and dark. Import it after "@tulipfarm/sprout/styles.css", then set
|
|
5
|
+
* data-sprout-theme="tulipfarm" on <html>, or on any element to theme only
|
|
6
|
+
* that subtree.
|
|
7
|
+
*/
|
|
8
|
+
@layer base {
|
|
9
|
+
[data-sprout-theme="tulipfarm"] {
|
|
10
|
+
--sprout-font: ui-sans-serif, system-ui, sans-serif;
|
|
11
|
+
--sprout-radius-control: 0.375rem;
|
|
12
|
+
--sprout-radius-panel: 0.75rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-sprout-theme="tulipfarm"],
|
|
16
|
+
.light[data-sprout-theme="tulipfarm"],
|
|
17
|
+
.light [data-sprout-theme="tulipfarm"] {
|
|
18
|
+
--sprout-canvas: #f8f8f8;
|
|
19
|
+
--sprout-surface: #fdfdfd;
|
|
20
|
+
--sprout-hover: #eeeeee;
|
|
21
|
+
--sprout-active: #e3e3e3;
|
|
22
|
+
--sprout-text: #242424;
|
|
23
|
+
--sprout-muted: #626262;
|
|
24
|
+
--sprout-line: #e0e0e0;
|
|
25
|
+
--sprout-border: #909090;
|
|
26
|
+
--sprout-border-strong: #707070;
|
|
27
|
+
--sprout-input: #d4d4d4;
|
|
28
|
+
--sprout-primary: #286440;
|
|
29
|
+
--sprout-primary-hover: #1e5032;
|
|
30
|
+
--sprout-primary-active: #164027;
|
|
31
|
+
--sprout-on-primary: #f5fbf6;
|
|
32
|
+
--sprout-focus: #327c4e;
|
|
33
|
+
--sprout-danger: #b32d34;
|
|
34
|
+
--sprout-danger-hover: #98252b;
|
|
35
|
+
--sprout-on-danger: #fff8f8;
|
|
36
|
+
--sprout-info: #1f5fb8;
|
|
37
|
+
--sprout-info-subtle: #ebf1fd;
|
|
38
|
+
--sprout-danger-subtle: #fdeeef;
|
|
39
|
+
--sprout-success: #1d6a37;
|
|
40
|
+
--sprout-success-subtle: #e8f4eb;
|
|
41
|
+
--sprout-warning: #8a4b08;
|
|
42
|
+
--sprout-warning-subtle: #fdf1dc;
|
|
43
|
+
--sprout-primary-subtle: color-mix(
|
|
44
|
+
in oklab,
|
|
45
|
+
var(--sprout-primary) 10%,
|
|
46
|
+
var(--sprout-surface)
|
|
47
|
+
);
|
|
48
|
+
--sprout-secondary: #ececec;
|
|
49
|
+
--sprout-overlay: rgb(18 18 18 / 0.35);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.dark[data-sprout-theme="tulipfarm"],
|
|
53
|
+
.dark [data-sprout-theme="tulipfarm"] {
|
|
54
|
+
--sprout-canvas: #151515;
|
|
55
|
+
--sprout-surface: #1d1d1d;
|
|
56
|
+
--sprout-hover: #2b2b2b;
|
|
57
|
+
--sprout-active: #363636;
|
|
58
|
+
--sprout-text: #f0f0f0;
|
|
59
|
+
--sprout-muted: #adadad;
|
|
60
|
+
--sprout-line: #383838;
|
|
61
|
+
--sprout-border: #808080;
|
|
62
|
+
--sprout-border-strong: #a0a0a0;
|
|
63
|
+
--sprout-input: #474747;
|
|
64
|
+
--sprout-primary: #a2d8af;
|
|
65
|
+
--sprout-primary-hover: #b8e3c1;
|
|
66
|
+
--sprout-primary-active: #c9ecd0;
|
|
67
|
+
--sprout-on-primary: #142e1c;
|
|
68
|
+
--sprout-focus: #a2d8af;
|
|
69
|
+
--sprout-danger: #ff9197;
|
|
70
|
+
--sprout-danger-hover: #ffadb1;
|
|
71
|
+
--sprout-on-danger: #3c1014;
|
|
72
|
+
--sprout-info: #8fb8f5;
|
|
73
|
+
--sprout-info-subtle: #1f2c45;
|
|
74
|
+
--sprout-danger-subtle: #3a2124;
|
|
75
|
+
--sprout-success: #82d29a;
|
|
76
|
+
--sprout-success-subtle: #1c3223;
|
|
77
|
+
--sprout-warning: #eec27e;
|
|
78
|
+
--sprout-warning-subtle: #34291b;
|
|
79
|
+
--sprout-primary-subtle: color-mix(
|
|
80
|
+
in oklab,
|
|
81
|
+
var(--sprout-primary) 16%,
|
|
82
|
+
var(--sprout-surface)
|
|
83
|
+
);
|
|
84
|
+
--sprout-secondary: #2c2c2c;
|
|
85
|
+
--sprout-overlay: rgb(8 8 8 / 0.65);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media (prefers-color-scheme: dark) {
|
|
89
|
+
:root:not(.light):not(.dark)[data-sprout-theme="tulipfarm"],
|
|
90
|
+
:root:not(.light):not(.dark) [data-sprout-theme="tulipfarm"] {
|
|
91
|
+
--sprout-canvas: #151515;
|
|
92
|
+
--sprout-surface: #1d1d1d;
|
|
93
|
+
--sprout-hover: #2b2b2b;
|
|
94
|
+
--sprout-active: #363636;
|
|
95
|
+
--sprout-text: #f0f0f0;
|
|
96
|
+
--sprout-muted: #adadad;
|
|
97
|
+
--sprout-line: #383838;
|
|
98
|
+
--sprout-border: #808080;
|
|
99
|
+
--sprout-border-strong: #a0a0a0;
|
|
100
|
+
--sprout-input: #474747;
|
|
101
|
+
--sprout-primary: #a2d8af;
|
|
102
|
+
--sprout-primary-hover: #b8e3c1;
|
|
103
|
+
--sprout-primary-active: #c9ecd0;
|
|
104
|
+
--sprout-on-primary: #142e1c;
|
|
105
|
+
--sprout-focus: #a2d8af;
|
|
106
|
+
--sprout-danger: #ff9197;
|
|
107
|
+
--sprout-danger-hover: #ffadb1;
|
|
108
|
+
--sprout-on-danger: #3c1014;
|
|
109
|
+
--sprout-info: #8fb8f5;
|
|
110
|
+
--sprout-info-subtle: #1f2c45;
|
|
111
|
+
--sprout-danger-subtle: #3a2124;
|
|
112
|
+
--sprout-success: #82d29a;
|
|
113
|
+
--sprout-success-subtle: #1c3223;
|
|
114
|
+
--sprout-warning: #eec27e;
|
|
115
|
+
--sprout-warning-subtle: #34291b;
|
|
116
|
+
--sprout-primary-subtle: color-mix(
|
|
117
|
+
in oklab,
|
|
118
|
+
var(--sprout-primary) 16%,
|
|
119
|
+
var(--sprout-surface)
|
|
120
|
+
);
|
|
121
|
+
--sprout-secondary: #2c2c2c;
|
|
122
|
+
--sprout-overlay: rgb(8 8 8 / 0.65);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/* Vercel: Geist, high contrast, tight corners.
|
|
2
|
+
*
|
|
3
|
+
* One file is the whole theme: font, radius, and every color token for light
|
|
4
|
+
* and dark. Import it after "@tulipfarm/sprout/styles.css", then set
|
|
5
|
+
* data-sprout-theme="vercel" on <html>, or on any element to theme only
|
|
6
|
+
* that subtree.
|
|
7
|
+
*/
|
|
8
|
+
@layer base {
|
|
9
|
+
[data-sprout-theme="vercel"] {
|
|
10
|
+
--sprout-font:
|
|
11
|
+
"Geist Variable", Geist, ui-sans-serif, system-ui, sans-serif;
|
|
12
|
+
--sprout-radius-control: 0.375rem;
|
|
13
|
+
--sprout-radius-panel: 0.75rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-sprout-theme="vercel"],
|
|
17
|
+
.light[data-sprout-theme="vercel"],
|
|
18
|
+
.light [data-sprout-theme="vercel"] {
|
|
19
|
+
--sprout-canvas: #fafafa;
|
|
20
|
+
--sprout-surface: #ffffff;
|
|
21
|
+
--sprout-hover: #f1f1f1;
|
|
22
|
+
--sprout-active: #e8e8e8;
|
|
23
|
+
--sprout-text: #171717;
|
|
24
|
+
--sprout-muted: #666666;
|
|
25
|
+
--sprout-line: #ebebeb;
|
|
26
|
+
--sprout-border: #8b8b8b;
|
|
27
|
+
--sprout-border-strong: #6f6f6f;
|
|
28
|
+
--sprout-input: #dadada;
|
|
29
|
+
--sprout-primary: #171717;
|
|
30
|
+
--sprout-primary-hover: #141414;
|
|
31
|
+
--sprout-primary-active: #121212;
|
|
32
|
+
--sprout-on-primary: #ffffff;
|
|
33
|
+
--sprout-focus: #171717;
|
|
34
|
+
--sprout-danger: #b32d34;
|
|
35
|
+
--sprout-danger-hover: #98252b;
|
|
36
|
+
--sprout-on-danger: #fff8f8;
|
|
37
|
+
--sprout-info: #1f5fb8;
|
|
38
|
+
--sprout-info-subtle: #ebf1fd;
|
|
39
|
+
--sprout-danger-subtle: #fdeeef;
|
|
40
|
+
--sprout-success: #1d6a37;
|
|
41
|
+
--sprout-success-subtle: #e8f4eb;
|
|
42
|
+
--sprout-warning: #8a4b08;
|
|
43
|
+
--sprout-warning-subtle: #fdf1dc;
|
|
44
|
+
--sprout-primary-subtle: color-mix(
|
|
45
|
+
in oklab,
|
|
46
|
+
var(--sprout-primary) 10%,
|
|
47
|
+
var(--sprout-surface)
|
|
48
|
+
);
|
|
49
|
+
--sprout-secondary: #efefef;
|
|
50
|
+
--sprout-overlay: rgb(18 18 18 / 0.35);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.dark[data-sprout-theme="vercel"],
|
|
54
|
+
.dark [data-sprout-theme="vercel"] {
|
|
55
|
+
--sprout-canvas: #000000;
|
|
56
|
+
--sprout-surface: #0a0a0a;
|
|
57
|
+
--sprout-hover: #1c1c1c;
|
|
58
|
+
--sprout-active: #282828;
|
|
59
|
+
--sprout-text: #ededed;
|
|
60
|
+
--sprout-muted: #a1a1a1;
|
|
61
|
+
--sprout-line: #2e2e2e;
|
|
62
|
+
--sprout-border: #707070;
|
|
63
|
+
--sprout-border-strong: #8e8e8e;
|
|
64
|
+
--sprout-input: #373737;
|
|
65
|
+
--sprout-primary: #ededed;
|
|
66
|
+
--sprout-primary-hover: #efefef;
|
|
67
|
+
--sprout-primary-active: #f1f1f1;
|
|
68
|
+
--sprout-on-primary: #111111;
|
|
69
|
+
--sprout-focus: #ededed;
|
|
70
|
+
--sprout-danger: #ff9197;
|
|
71
|
+
--sprout-danger-hover: #ffadb1;
|
|
72
|
+
--sprout-on-danger: #3c1014;
|
|
73
|
+
--sprout-info: #8fb8f5;
|
|
74
|
+
--sprout-info-subtle: #1f2c45;
|
|
75
|
+
--sprout-danger-subtle: #3a2124;
|
|
76
|
+
--sprout-success: #82d29a;
|
|
77
|
+
--sprout-success-subtle: #1c3223;
|
|
78
|
+
--sprout-warning: #eec27e;
|
|
79
|
+
--sprout-warning-subtle: #34291b;
|
|
80
|
+
--sprout-primary-subtle: color-mix(
|
|
81
|
+
in oklab,
|
|
82
|
+
var(--sprout-primary) 16%,
|
|
83
|
+
var(--sprout-surface)
|
|
84
|
+
);
|
|
85
|
+
--sprout-secondary: #1e1e1e;
|
|
86
|
+
--sprout-overlay: rgb(8 8 8 / 0.65);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@media (prefers-color-scheme: dark) {
|
|
90
|
+
:root:not(.light):not(.dark)[data-sprout-theme="vercel"],
|
|
91
|
+
:root:not(.light):not(.dark) [data-sprout-theme="vercel"] {
|
|
92
|
+
--sprout-canvas: #000000;
|
|
93
|
+
--sprout-surface: #0a0a0a;
|
|
94
|
+
--sprout-hover: #1c1c1c;
|
|
95
|
+
--sprout-active: #282828;
|
|
96
|
+
--sprout-text: #ededed;
|
|
97
|
+
--sprout-muted: #a1a1a1;
|
|
98
|
+
--sprout-line: #2e2e2e;
|
|
99
|
+
--sprout-border: #707070;
|
|
100
|
+
--sprout-border-strong: #8e8e8e;
|
|
101
|
+
--sprout-input: #373737;
|
|
102
|
+
--sprout-primary: #ededed;
|
|
103
|
+
--sprout-primary-hover: #efefef;
|
|
104
|
+
--sprout-primary-active: #f1f1f1;
|
|
105
|
+
--sprout-on-primary: #111111;
|
|
106
|
+
--sprout-focus: #ededed;
|
|
107
|
+
--sprout-danger: #ff9197;
|
|
108
|
+
--sprout-danger-hover: #ffadb1;
|
|
109
|
+
--sprout-on-danger: #3c1014;
|
|
110
|
+
--sprout-info: #8fb8f5;
|
|
111
|
+
--sprout-info-subtle: #1f2c45;
|
|
112
|
+
--sprout-danger-subtle: #3a2124;
|
|
113
|
+
--sprout-success: #82d29a;
|
|
114
|
+
--sprout-success-subtle: #1c3223;
|
|
115
|
+
--sprout-warning: #eec27e;
|
|
116
|
+
--sprout-warning-subtle: #34291b;
|
|
117
|
+
--sprout-primary-subtle: color-mix(
|
|
118
|
+
in oklab,
|
|
119
|
+
var(--sprout-primary) 16%,
|
|
120
|
+
var(--sprout-surface)
|
|
121
|
+
);
|
|
122
|
+
--sprout-secondary: #1e1e1e;
|
|
123
|
+
--sprout-overlay: rgb(8 8 8 / 0.65);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.sprout-toast-viewport {
|
|
3
|
+
position: fixed;
|
|
4
|
+
inset-inline: 16px;
|
|
5
|
+
bottom: 16px;
|
|
6
|
+
z-index: 50;
|
|
7
|
+
width: auto;
|
|
8
|
+
max-width: 24rem;
|
|
9
|
+
margin-inline: auto;
|
|
10
|
+
outline: none;
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
}
|
|
13
|
+
@media (min-width: 640px) {
|
|
14
|
+
.sprout-toast-viewport {
|
|
15
|
+
inset-inline: auto 16px;
|
|
16
|
+
width: 100%;
|
|
17
|
+
margin-inline: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.sprout-toast {
|
|
22
|
+
--sprout-toast-gap: 0.625rem;
|
|
23
|
+
--sprout-toast-peek: 0.625rem;
|
|
24
|
+
--sprout-toast-height: var(--toast-frontmost-height, var(--toast-height));
|
|
25
|
+
--sprout-toast-scale: max(0, calc(1 - var(--toast-index) * 0.06));
|
|
26
|
+
--sprout-toast-shrink: calc(1 - var(--sprout-toast-scale));
|
|
27
|
+
--sprout-toast-offset-y: calc(
|
|
28
|
+
var(--toast-offset-y) * -1 - var(--toast-index) *
|
|
29
|
+
var(--sprout-toast-gap) + var(--toast-swipe-movement-y)
|
|
30
|
+
);
|
|
31
|
+
position: absolute;
|
|
32
|
+
right: 0;
|
|
33
|
+
bottom: 0;
|
|
34
|
+
z-index: calc(1000 - var(--toast-index));
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: var(--sprout-toast-height);
|
|
38
|
+
border: 1px solid var(--sprout-line);
|
|
39
|
+
border-radius: var(--sprout-radius-panel);
|
|
40
|
+
background: var(--sprout-surface);
|
|
41
|
+
color: var(--sprout-text);
|
|
42
|
+
box-shadow: var(--sprout-shadow-overlay);
|
|
43
|
+
font-family: var(--sprout-font);
|
|
44
|
+
font-size: var(--sprout-text-sm);
|
|
45
|
+
line-height: 1.25rem;
|
|
46
|
+
outline: none;
|
|
47
|
+
pointer-events: auto;
|
|
48
|
+
transform-origin: bottom center;
|
|
49
|
+
transform: translateX(var(--toast-swipe-movement-x))
|
|
50
|
+
translateY(
|
|
51
|
+
calc(
|
|
52
|
+
var(--toast-swipe-movement-y) - var(--toast-index) *
|
|
53
|
+
var(--sprout-toast-peek) - var(--sprout-toast-shrink) *
|
|
54
|
+
var(--sprout-toast-height)
|
|
55
|
+
)
|
|
56
|
+
)
|
|
57
|
+
scale(var(--sprout-toast-scale));
|
|
58
|
+
user-select: none;
|
|
59
|
+
will-change: transform;
|
|
60
|
+
}
|
|
61
|
+
/* Bridges the gap between expanded toasts so hover doesn't collapse the stack. */
|
|
62
|
+
.sprout-toast::after {
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 100%;
|
|
65
|
+
left: 0;
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: calc(var(--sprout-toast-gap) + 1px);
|
|
68
|
+
content: "";
|
|
69
|
+
}
|
|
70
|
+
.sprout-toast:focus-visible {
|
|
71
|
+
outline: 2px solid var(--sprout-focus);
|
|
72
|
+
outline-offset: 2px;
|
|
73
|
+
}
|
|
74
|
+
.sprout-toast[data-expanded] {
|
|
75
|
+
height: var(--toast-height);
|
|
76
|
+
transform: translateX(var(--toast-swipe-movement-x))
|
|
77
|
+
translateY(var(--sprout-toast-offset-y));
|
|
78
|
+
}
|
|
79
|
+
.sprout-toast[data-limited] {
|
|
80
|
+
opacity: 0;
|
|
81
|
+
}
|
|
82
|
+
.sprout-toast[data-ending-style][data-swipe-direction="down"] {
|
|
83
|
+
transform: translateY(calc(var(--toast-swipe-movement-y) + 150%));
|
|
84
|
+
}
|
|
85
|
+
.sprout-toast[data-ending-style][data-swipe-direction="up"] {
|
|
86
|
+
transform: translateY(calc(var(--toast-swipe-movement-y) - 150%));
|
|
87
|
+
}
|
|
88
|
+
.sprout-toast[data-ending-style][data-swipe-direction="left"] {
|
|
89
|
+
transform: translateX(calc(var(--toast-swipe-movement-x) - 150%))
|
|
90
|
+
translateY(var(--sprout-toast-offset-y));
|
|
91
|
+
}
|
|
92
|
+
.sprout-toast[data-ending-style][data-swipe-direction="right"] {
|
|
93
|
+
transform: translateX(calc(var(--toast-swipe-movement-x) + 150%))
|
|
94
|
+
translateY(var(--sprout-toast-offset-y));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.sprout-toast-content {
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
gap: 10px;
|
|
101
|
+
box-sizing: border-box;
|
|
102
|
+
height: 100%;
|
|
103
|
+
padding: 12px 10px 12px 14px;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
}
|
|
106
|
+
.sprout-toast-content[data-behind]:not([data-expanded]) {
|
|
107
|
+
opacity: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.sprout-toast-icon {
|
|
111
|
+
display: inline-flex;
|
|
112
|
+
flex-shrink: 0;
|
|
113
|
+
align-self: flex-start;
|
|
114
|
+
margin-top: 2px;
|
|
115
|
+
color: var(--sprout-text);
|
|
116
|
+
}
|
|
117
|
+
.sprout-toast-icon > svg {
|
|
118
|
+
width: 16px;
|
|
119
|
+
height: 16px;
|
|
120
|
+
pointer-events: none;
|
|
121
|
+
}
|
|
122
|
+
.sprout-toast-icon[data-type="error"] {
|
|
123
|
+
color: var(--sprout-danger);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.sprout-toast-text {
|
|
127
|
+
display: flex;
|
|
128
|
+
flex: 1;
|
|
129
|
+
flex-direction: column;
|
|
130
|
+
gap: 2px;
|
|
131
|
+
min-width: 0;
|
|
132
|
+
overflow-wrap: anywhere;
|
|
133
|
+
}
|
|
134
|
+
.sprout-toast-title {
|
|
135
|
+
margin: 0;
|
|
136
|
+
font-size: var(--sprout-text-sm);
|
|
137
|
+
font-weight: 500;
|
|
138
|
+
line-height: 1.25rem;
|
|
139
|
+
}
|
|
140
|
+
.sprout-toast-description {
|
|
141
|
+
margin: 0;
|
|
142
|
+
color: var(--sprout-muted);
|
|
143
|
+
font-size: var(--sprout-text-sm);
|
|
144
|
+
line-height: 1.25rem;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.sprout-toast-action {
|
|
148
|
+
flex-shrink: 0;
|
|
149
|
+
}
|
|
150
|
+
.sprout-toast-close {
|
|
151
|
+
position: relative;
|
|
152
|
+
flex-shrink: 0;
|
|
153
|
+
align-self: flex-start;
|
|
154
|
+
color: var(--sprout-muted);
|
|
155
|
+
}
|
|
156
|
+
.sprout-toast-close::after {
|
|
157
|
+
position: absolute;
|
|
158
|
+
inset: -8px;
|
|
159
|
+
content: "";
|
|
160
|
+
}
|
|
161
|
+
.sprout-toast-close:hover {
|
|
162
|
+
color: var(--sprout-text);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@media (forced-colors: active) {
|
|
166
|
+
.sprout-toast {
|
|
167
|
+
border-color: CanvasText;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
172
|
+
.sprout-toast {
|
|
173
|
+
transition:
|
|
174
|
+
transform var(--sprout-motion-normal) var(--sprout-motion-ease),
|
|
175
|
+
opacity var(--sprout-motion-normal) var(--sprout-motion-ease),
|
|
176
|
+
height var(--sprout-motion-fast) var(--sprout-motion-ease);
|
|
177
|
+
}
|
|
178
|
+
.sprout-toast-content {
|
|
179
|
+
transition: opacity var(--sprout-motion-fast) var(--sprout-motion-ease);
|
|
180
|
+
}
|
|
181
|
+
.sprout-toast[data-starting-style],
|
|
182
|
+
.sprout-toast[data-ending-style]:not([data-limited]):not(
|
|
183
|
+
[data-swipe-direction]
|
|
184
|
+
) {
|
|
185
|
+
transform: translateY(150%);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@media (prefers-reduced-motion: reduce) {
|
|
190
|
+
.sprout-toast {
|
|
191
|
+
transition: opacity var(--sprout-motion-fast) linear;
|
|
192
|
+
}
|
|
193
|
+
.sprout-toast:is([data-starting-style], [data-ending-style]) {
|
|
194
|
+
opacity: 0;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|