@autumnsgrove/groveengine 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/index.d.ts +2 -0
- package/dist/auth/index.js +5 -0
- package/dist/components/admin/GutterManager.svelte +4 -4
- package/dist/components/admin/MarkdownEditor.svelte +381 -1311
- package/dist/components/admin/MarkdownEditor.svelte.d.ts +2 -8
- package/dist/components/admin/composables/index.d.ts +7 -0
- package/dist/components/admin/composables/index.js +12 -0
- package/dist/components/admin/composables/useAmbientSounds.svelte.d.ts +53 -0
- package/dist/components/admin/composables/useAmbientSounds.svelte.js +192 -0
- package/dist/components/admin/composables/useCommandPalette.svelte.d.ts +17 -0
- package/dist/components/admin/composables/useCommandPalette.svelte.js +118 -0
- package/dist/components/admin/composables/useDraftManager.svelte.d.ts +17 -0
- package/dist/components/admin/composables/useDraftManager.svelte.js +154 -0
- package/dist/components/admin/composables/useEditorTheme.svelte.d.ts +195 -0
- package/dist/components/admin/composables/useEditorTheme.svelte.js +182 -0
- package/dist/components/admin/composables/useSlashCommands.svelte.d.ts +32 -0
- package/dist/components/admin/composables/useSlashCommands.svelte.js +166 -0
- package/dist/components/admin/composables/useSnippets.svelte.d.ts +5 -0
- package/dist/components/admin/composables/useSnippets.svelte.js +122 -0
- package/dist/components/admin/composables/useWritingSession.svelte.d.ts +13 -0
- package/dist/components/admin/composables/useWritingSession.svelte.js +100 -0
- package/dist/components/custom/ContentWithGutter.svelte +1 -1
- package/dist/components/custom/GutterItem.svelte +2 -2
- package/dist/config/ai-models.d.ts +25 -0
- package/dist/config/ai-models.js +50 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.js +4 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -6
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +4 -0
- package/dist/ui/components/charts/ActivityOverview.svelte +293 -0
- package/dist/ui/components/charts/ActivityOverview.svelte.d.ts +12 -0
- package/dist/ui/components/charts/LOCBar.svelte +129 -0
- package/dist/ui/components/charts/LOCBar.svelte.d.ts +21 -0
- package/dist/ui/components/charts/RepoBreakdown.svelte +136 -0
- package/dist/ui/components/charts/RepoBreakdown.svelte.d.ts +16 -0
- package/dist/ui/components/charts/Sparkline.svelte +139 -0
- package/dist/ui/components/charts/Sparkline.svelte.d.ts +6 -0
- package/dist/ui/components/charts/index.d.ts +5 -0
- package/dist/ui/components/charts/index.js +11 -0
- package/dist/ui/components/content/PlanCard.svelte +91 -0
- package/dist/ui/components/content/PlanCard.svelte.d.ts +13 -0
- package/dist/ui/components/content/ProductCard.svelte +125 -0
- package/dist/ui/components/content/ProductCard.svelte.d.ts +14 -0
- package/dist/ui/components/content/SearchCard.svelte +60 -0
- package/dist/ui/components/content/SearchCard.svelte.d.ts +10 -0
- package/dist/ui/components/content/index.d.ts +4 -0
- package/dist/ui/components/content/index.js +10 -0
- package/dist/ui/components/forms/SearchInput.svelte +89 -0
- package/dist/ui/components/forms/SearchInput.svelte.d.ts +11 -0
- package/dist/ui/components/forms/index.d.ts +2 -0
- package/dist/ui/components/forms/index.js +8 -0
- package/dist/ui/components/gallery/index.d.ts +5 -0
- package/dist/ui/components/gallery/index.js +13 -0
- package/dist/ui/components/icons/IconLegend.svelte +83 -0
- package/dist/ui/components/icons/IconLegend.svelte.d.ts +11 -0
- package/dist/ui/components/icons/Icons.svelte +115 -0
- package/dist/ui/components/icons/Icons.svelte.d.ts +8 -0
- package/dist/ui/components/icons/index.d.ts +3 -0
- package/dist/ui/components/icons/index.js +9 -0
- package/dist/ui/components/indicators/CreditBalance.svelte +67 -0
- package/dist/ui/components/indicators/CreditBalance.svelte.d.ts +9 -0
- package/dist/ui/components/indicators/ScoreBar.svelte +63 -0
- package/dist/ui/components/indicators/ScoreBar.svelte.d.ts +9 -0
- package/dist/ui/components/indicators/StatusBadge.svelte +46 -0
- package/dist/ui/components/indicators/StatusBadge.svelte.d.ts +7 -0
- package/dist/ui/components/indicators/index.d.ts +4 -0
- package/dist/ui/components/indicators/index.js +10 -0
- package/dist/{components/ui → ui/components/primitives}/accordion/accordion-content.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/accordion/accordion-item.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/accordion/accordion-trigger.svelte +1 -1
- package/dist/ui/components/primitives/badge/badge.svelte +50 -0
- package/dist/ui/components/primitives/badge/badge.svelte.d.ts +60 -0
- package/dist/ui/components/primitives/badge/index.d.ts +2 -0
- package/dist/ui/components/primitives/badge/index.js +2 -0
- package/dist/ui/components/primitives/button/button.svelte +82 -0
- package/dist/ui/components/primitives/button/button.svelte.d.ts +132 -0
- package/dist/ui/components/primitives/button/index.d.ts +2 -0
- package/dist/ui/components/primitives/button/index.js +4 -0
- package/dist/ui/components/primitives/card/card-content.svelte +16 -0
- package/dist/ui/components/primitives/card/card-content.svelte.d.ts +5 -0
- package/dist/ui/components/primitives/card/card-description.svelte +16 -0
- package/dist/ui/components/primitives/card/card-description.svelte.d.ts +5 -0
- package/dist/ui/components/primitives/card/card-footer.svelte +16 -0
- package/dist/ui/components/primitives/card/card-footer.svelte.d.ts +5 -0
- package/dist/ui/components/primitives/card/card-header.svelte +16 -0
- package/dist/ui/components/primitives/card/card-header.svelte.d.ts +5 -0
- package/dist/ui/components/primitives/card/card-title.svelte +25 -0
- package/dist/ui/components/primitives/card/card-title.svelte.d.ts +8 -0
- package/dist/ui/components/primitives/card/card.svelte +20 -0
- package/dist/ui/components/primitives/card/card.svelte.d.ts +5 -0
- package/dist/ui/components/primitives/card/index.d.ts +7 -0
- package/dist/ui/components/primitives/card/index.js +9 -0
- package/dist/{components/ui → ui/components/primitives}/dialog/dialog-content.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/dialog/dialog-description.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/dialog/dialog-footer.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/dialog/dialog-header.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/dialog/dialog-overlay.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/dialog/dialog-title.svelte +1 -1
- package/dist/ui/components/primitives/input/index.d.ts +2 -0
- package/dist/ui/components/primitives/input/index.js +4 -0
- package/dist/ui/components/primitives/input/input.svelte +46 -0
- package/dist/ui/components/primitives/input/input.svelte.d.ts +13 -0
- package/dist/{components/ui → ui/components/primitives}/select/select-content.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/select/select-group-heading.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/select/select-item.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/select/select-scroll-down-button.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/select/select-scroll-up-button.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/select/select-separator.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/select/select-trigger.svelte +1 -1
- package/dist/ui/components/primitives/separator/index.d.ts +2 -0
- package/dist/ui/components/primitives/separator/index.js +4 -0
- package/dist/ui/components/primitives/separator/separator.svelte +22 -0
- package/dist/ui/components/primitives/separator/separator.svelte.d.ts +4 -0
- package/dist/{components/ui → ui/components/primitives}/sheet/sheet-content.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/sheet/sheet-description.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/sheet/sheet-footer.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/sheet/sheet-header.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/sheet/sheet-overlay.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/sheet/sheet-title.svelte +1 -1
- package/dist/ui/components/primitives/skeleton/index.d.ts +2 -0
- package/dist/ui/components/primitives/skeleton/index.js +4 -0
- package/dist/ui/components/primitives/skeleton/skeleton.svelte +17 -0
- package/dist/ui/components/primitives/skeleton/skeleton.svelte.d.ts +5 -0
- package/dist/{components/ui → ui/components/primitives}/table/table-body.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/table/table-caption.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/table/table-cell.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/table/table-footer.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/table/table-head.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/table/table-header.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/table/table-row.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/table/table.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/tabs/tabs-content.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/tabs/tabs-list.svelte +1 -1
- package/dist/{components/ui → ui/components/primitives}/tabs/tabs-trigger.svelte +1 -1
- package/dist/ui/components/primitives/textarea/index.d.ts +2 -0
- package/dist/ui/components/primitives/textarea/index.js +4 -0
- package/dist/ui/components/primitives/textarea/textarea.svelte +24 -0
- package/dist/ui/components/primitives/textarea/textarea.svelte.d.ts +6 -0
- package/dist/ui/components/states/EmptyState.svelte +28 -0
- package/dist/ui/components/states/EmptyState.svelte.d.ts +10 -0
- package/dist/ui/components/states/Loading.svelte +62 -0
- package/dist/ui/components/states/Loading.svelte.d.ts +7 -0
- package/dist/ui/components/states/LoadingSkeleton.svelte +46 -0
- package/dist/ui/components/states/LoadingSkeleton.svelte.d.ts +8 -0
- package/dist/ui/components/states/ThemeToggle.svelte +138 -0
- package/dist/ui/components/states/ThemeToggle.svelte.d.ts +6 -0
- package/dist/ui/components/states/index.d.ts +5 -0
- package/dist/ui/components/states/index.js +11 -0
- package/dist/{components → ui/components}/ui/Accordion.svelte +1 -1
- package/dist/ui/components/ui/Badge.svelte +52 -0
- package/dist/ui/components/ui/Badge.svelte.d.ts +28 -0
- package/dist/ui/components/ui/Button.svelte +77 -0
- package/dist/ui/components/ui/Button.svelte.d.ts +34 -0
- package/dist/ui/components/ui/Card.svelte +102 -0
- package/dist/ui/components/ui/Card.svelte.d.ts +46 -0
- package/dist/ui/components/ui/CollapsibleSection.svelte +65 -0
- package/dist/ui/components/ui/CollapsibleSection.svelte.d.ts +10 -0
- package/dist/{components → ui/components}/ui/Dialog.svelte +1 -1
- package/dist/ui/components/ui/Input.svelte +81 -0
- package/dist/ui/components/ui/Input.svelte.d.ts +35 -0
- package/dist/{components → ui/components}/ui/Select.svelte +1 -1
- package/dist/{components → ui/components}/ui/Sheet.svelte +1 -1
- package/dist/ui/components/ui/Skeleton.svelte +31 -0
- package/dist/ui/components/ui/Skeleton.svelte.d.ts +26 -0
- package/dist/ui/components/ui/Spinner.svelte +45 -0
- package/dist/ui/components/ui/Spinner.svelte.d.ts +15 -0
- package/dist/{components → ui/components}/ui/Table.svelte +2 -2
- package/dist/{components → ui/components}/ui/Table.svelte.d.ts +1 -1
- package/dist/{components → ui/components}/ui/Tabs.svelte +2 -2
- package/dist/ui/components/ui/Textarea.svelte +81 -0
- package/dist/ui/components/ui/Textarea.svelte.d.ts +35 -0
- package/dist/{components → ui/components}/ui/Toast.svelte +1 -1
- package/dist/ui/components/ui/index.d.ts +18 -0
- package/dist/ui/components/ui/index.js +28 -0
- package/dist/{components → ui/components}/ui/toast.d.ts +1 -1
- package/dist/{components → ui/components}/ui/toast.js +2 -2
- package/dist/ui/index.d.ts +10 -0
- package/dist/ui/index.js +22 -0
- package/dist/ui/stores/theme.d.ts +12 -0
- package/dist/ui/stores/theme.js +52 -0
- package/dist/ui/styles/content.css +514 -0
- package/dist/ui/styles/grove.css +715 -0
- package/dist/ui/styles/tokens.css +429 -0
- package/dist/ui/tailwind.preset.d.ts +340 -0
- package/dist/ui/tailwind.preset.js +441 -0
- package/dist/ui/tokens/animation.d.ts +417 -0
- package/dist/ui/tokens/animation.js +139 -0
- package/dist/ui/tokens/colors.d.ts +183 -0
- package/dist/ui/tokens/colors.js +97 -0
- package/dist/ui/tokens/effects.d.ts +111 -0
- package/dist/ui/tokens/effects.js +61 -0
- package/dist/ui/tokens/index.d.ts +6 -0
- package/dist/ui/tokens/index.js +19 -0
- package/dist/ui/tokens/spacing.d.ts +89 -0
- package/dist/ui/tokens/spacing.js +49 -0
- package/dist/ui/tokens/typography.d.ts +85 -0
- package/dist/ui/tokens/typography.js +68 -0
- package/dist/ui/utils/cn.d.ts +13 -0
- package/dist/ui/utils/cn.js +24 -0
- package/dist/ui/utils/index.d.ts +2 -0
- package/dist/ui/utils/index.js +8 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/index.js +14 -0
- package/dist/utils/markdown.d.ts +11 -0
- package/dist/utils/markdown.js +25 -0
- package/dist/utils/sanitize.js +2 -3
- package/package.json +73 -10
- package/dist/components/ui/index.d.ts +0 -14
- package/dist/components/ui/index.js +0 -18
- /package/dist/{components → ui/components}/gallery/ImageGallery.svelte +0 -0
- /package/dist/{components → ui/components}/gallery/ImageGallery.svelte.d.ts +0 -0
- /package/dist/{components → ui/components}/gallery/Lightbox.svelte +0 -0
- /package/dist/{components → ui/components}/gallery/Lightbox.svelte.d.ts +0 -0
- /package/dist/{components → ui/components}/gallery/LightboxCaption.svelte +0 -0
- /package/dist/{components → ui/components}/gallery/LightboxCaption.svelte.d.ts +0 -0
- /package/dist/{components → ui/components}/gallery/ZoomableImage.svelte +0 -0
- /package/dist/{components → ui/components}/gallery/ZoomableImage.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/accordion/accordion-content.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/accordion/accordion-item.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/accordion/accordion-trigger.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/accordion/index.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/accordion/index.js +0 -0
- /package/dist/{components/ui → ui/components/primitives}/dialog/dialog-content.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/dialog/dialog-description.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/dialog/dialog-footer.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/dialog/dialog-header.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/dialog/dialog-overlay.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/dialog/dialog-title.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/dialog/index.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/dialog/index.js +0 -0
- /package/dist/{components/ui → ui/components/primitives}/select/index.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/select/index.js +0 -0
- /package/dist/{components/ui → ui/components/primitives}/select/select-content.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/select/select-group-heading.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/select/select-item.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/select/select-scroll-down-button.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/select/select-scroll-up-button.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/select/select-separator.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/select/select-trigger.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/sheet/index.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/sheet/index.js +0 -0
- /package/dist/{components/ui → ui/components/primitives}/sheet/sheet-content.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/sheet/sheet-description.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/sheet/sheet-footer.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/sheet/sheet-header.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/sheet/sheet-overlay.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/sheet/sheet-title.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/table/index.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/table/index.js +0 -0
- /package/dist/{components/ui → ui/components/primitives}/table/table-body.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/table/table-caption.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/table/table-cell.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/table/table-footer.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/table/table-head.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/table/table-header.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/table/table-row.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/table/table.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/tabs/index.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/tabs/index.js +0 -0
- /package/dist/{components/ui → ui/components/primitives}/tabs/tabs-content.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/tabs/tabs-list.svelte.d.ts +0 -0
- /package/dist/{components/ui → ui/components/primitives}/tabs/tabs-trigger.svelte.d.ts +0 -0
- /package/dist/{components → ui/components}/ui/Accordion.svelte.d.ts +0 -0
- /package/dist/{components → ui/components}/ui/Dialog.svelte.d.ts +0 -0
- /package/dist/{components → ui/components}/ui/Select.svelte.d.ts +0 -0
- /package/dist/{components → ui/components}/ui/Sheet.svelte.d.ts +0 -0
- /package/dist/{components → ui/components}/ui/Tabs.svelte.d.ts +0 -0
- /package/dist/{components → ui/components}/ui/Toast.svelte.d.ts +0 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grove Design System - Color Tokens
|
|
3
|
+
*
|
|
4
|
+
* All color values for the Grove design system.
|
|
5
|
+
*/
|
|
6
|
+
export declare const grove: {
|
|
7
|
+
readonly 50: "#f0fdf4";
|
|
8
|
+
readonly 100: "#dcfce7";
|
|
9
|
+
readonly 200: "#bbf7d0";
|
|
10
|
+
readonly 300: "#86efac";
|
|
11
|
+
readonly 400: "#4ade80";
|
|
12
|
+
readonly 500: "#22c55e";
|
|
13
|
+
readonly 600: "#16a34a";
|
|
14
|
+
readonly 700: "#15803d";
|
|
15
|
+
readonly 800: "#166534";
|
|
16
|
+
readonly 900: "#14532d";
|
|
17
|
+
readonly 950: "#052e16";
|
|
18
|
+
};
|
|
19
|
+
export declare const cream: {
|
|
20
|
+
readonly DEFAULT: "#fefdfb";
|
|
21
|
+
readonly 50: "#fefdfb";
|
|
22
|
+
readonly 100: "#fdfcf8";
|
|
23
|
+
readonly 200: "#faf8f3";
|
|
24
|
+
readonly 300: "#f5f2ea";
|
|
25
|
+
readonly 400: "#ede9de";
|
|
26
|
+
readonly 500: "#e2ddd0";
|
|
27
|
+
};
|
|
28
|
+
export declare const bark: {
|
|
29
|
+
readonly DEFAULT: "#3d2914";
|
|
30
|
+
readonly 50: "#f9f6f3";
|
|
31
|
+
readonly 100: "#f0e9e1";
|
|
32
|
+
readonly 200: "#e0d2c2";
|
|
33
|
+
readonly 300: "#ccb59c";
|
|
34
|
+
readonly 400: "#b69575";
|
|
35
|
+
readonly 500: "#a57c5a";
|
|
36
|
+
readonly 600: "#8a6347";
|
|
37
|
+
readonly 700: "#6f4d39";
|
|
38
|
+
readonly 800: "#5a3f30";
|
|
39
|
+
readonly 900: "#3d2914";
|
|
40
|
+
readonly 950: "#2a1b0d";
|
|
41
|
+
};
|
|
42
|
+
export declare const semantic: {
|
|
43
|
+
readonly primary: {
|
|
44
|
+
readonly DEFAULT: "#16a34a";
|
|
45
|
+
readonly foreground: "#ffffff";
|
|
46
|
+
readonly hover: "#15803d";
|
|
47
|
+
readonly active: "#166534";
|
|
48
|
+
};
|
|
49
|
+
readonly secondary: {
|
|
50
|
+
readonly DEFAULT: "#e2ddd0";
|
|
51
|
+
readonly foreground: "#3d2914";
|
|
52
|
+
readonly hover: "#ede9de";
|
|
53
|
+
readonly active: "#f5f2ea";
|
|
54
|
+
};
|
|
55
|
+
readonly background: "#fefdfb";
|
|
56
|
+
readonly foreground: "#3d2914";
|
|
57
|
+
readonly muted: {
|
|
58
|
+
readonly DEFAULT: "#f5f2ea";
|
|
59
|
+
readonly foreground: "#6f4d39";
|
|
60
|
+
};
|
|
61
|
+
readonly accent: {
|
|
62
|
+
readonly DEFAULT: "#dcfce7";
|
|
63
|
+
readonly foreground: "#166534";
|
|
64
|
+
};
|
|
65
|
+
readonly border: "#faf8f3";
|
|
66
|
+
readonly input: "#faf8f3";
|
|
67
|
+
readonly ring: "#22c55e";
|
|
68
|
+
};
|
|
69
|
+
export declare const status: {
|
|
70
|
+
readonly success: {
|
|
71
|
+
readonly DEFAULT: "#22c55e";
|
|
72
|
+
readonly light: "#dcfce7";
|
|
73
|
+
readonly foreground: "#166534";
|
|
74
|
+
};
|
|
75
|
+
readonly warning: {
|
|
76
|
+
readonly DEFAULT: "#f59e0b";
|
|
77
|
+
readonly light: "#fef3c7";
|
|
78
|
+
readonly foreground: "#92400e";
|
|
79
|
+
};
|
|
80
|
+
readonly error: {
|
|
81
|
+
readonly DEFAULT: "#dc2626";
|
|
82
|
+
readonly light: "#fee2e2";
|
|
83
|
+
readonly foreground: "#991b1b";
|
|
84
|
+
};
|
|
85
|
+
readonly info: {
|
|
86
|
+
readonly DEFAULT: "#0ea5e9";
|
|
87
|
+
readonly light: "#e0f2fe";
|
|
88
|
+
readonly foreground: "#075985";
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
export declare const colors: {
|
|
92
|
+
readonly grove: {
|
|
93
|
+
readonly 50: "#f0fdf4";
|
|
94
|
+
readonly 100: "#dcfce7";
|
|
95
|
+
readonly 200: "#bbf7d0";
|
|
96
|
+
readonly 300: "#86efac";
|
|
97
|
+
readonly 400: "#4ade80";
|
|
98
|
+
readonly 500: "#22c55e";
|
|
99
|
+
readonly 600: "#16a34a";
|
|
100
|
+
readonly 700: "#15803d";
|
|
101
|
+
readonly 800: "#166534";
|
|
102
|
+
readonly 900: "#14532d";
|
|
103
|
+
readonly 950: "#052e16";
|
|
104
|
+
};
|
|
105
|
+
readonly cream: {
|
|
106
|
+
readonly DEFAULT: "#fefdfb";
|
|
107
|
+
readonly 50: "#fefdfb";
|
|
108
|
+
readonly 100: "#fdfcf8";
|
|
109
|
+
readonly 200: "#faf8f3";
|
|
110
|
+
readonly 300: "#f5f2ea";
|
|
111
|
+
readonly 400: "#ede9de";
|
|
112
|
+
readonly 500: "#e2ddd0";
|
|
113
|
+
};
|
|
114
|
+
readonly bark: {
|
|
115
|
+
readonly DEFAULT: "#3d2914";
|
|
116
|
+
readonly 50: "#f9f6f3";
|
|
117
|
+
readonly 100: "#f0e9e1";
|
|
118
|
+
readonly 200: "#e0d2c2";
|
|
119
|
+
readonly 300: "#ccb59c";
|
|
120
|
+
readonly 400: "#b69575";
|
|
121
|
+
readonly 500: "#a57c5a";
|
|
122
|
+
readonly 600: "#8a6347";
|
|
123
|
+
readonly 700: "#6f4d39";
|
|
124
|
+
readonly 800: "#5a3f30";
|
|
125
|
+
readonly 900: "#3d2914";
|
|
126
|
+
readonly 950: "#2a1b0d";
|
|
127
|
+
};
|
|
128
|
+
readonly semantic: {
|
|
129
|
+
readonly primary: {
|
|
130
|
+
readonly DEFAULT: "#16a34a";
|
|
131
|
+
readonly foreground: "#ffffff";
|
|
132
|
+
readonly hover: "#15803d";
|
|
133
|
+
readonly active: "#166534";
|
|
134
|
+
};
|
|
135
|
+
readonly secondary: {
|
|
136
|
+
readonly DEFAULT: "#e2ddd0";
|
|
137
|
+
readonly foreground: "#3d2914";
|
|
138
|
+
readonly hover: "#ede9de";
|
|
139
|
+
readonly active: "#f5f2ea";
|
|
140
|
+
};
|
|
141
|
+
readonly background: "#fefdfb";
|
|
142
|
+
readonly foreground: "#3d2914";
|
|
143
|
+
readonly muted: {
|
|
144
|
+
readonly DEFAULT: "#f5f2ea";
|
|
145
|
+
readonly foreground: "#6f4d39";
|
|
146
|
+
};
|
|
147
|
+
readonly accent: {
|
|
148
|
+
readonly DEFAULT: "#dcfce7";
|
|
149
|
+
readonly foreground: "#166534";
|
|
150
|
+
};
|
|
151
|
+
readonly border: "#faf8f3";
|
|
152
|
+
readonly input: "#faf8f3";
|
|
153
|
+
readonly ring: "#22c55e";
|
|
154
|
+
};
|
|
155
|
+
readonly status: {
|
|
156
|
+
readonly success: {
|
|
157
|
+
readonly DEFAULT: "#22c55e";
|
|
158
|
+
readonly light: "#dcfce7";
|
|
159
|
+
readonly foreground: "#166534";
|
|
160
|
+
};
|
|
161
|
+
readonly warning: {
|
|
162
|
+
readonly DEFAULT: "#f59e0b";
|
|
163
|
+
readonly light: "#fef3c7";
|
|
164
|
+
readonly foreground: "#92400e";
|
|
165
|
+
};
|
|
166
|
+
readonly error: {
|
|
167
|
+
readonly DEFAULT: "#dc2626";
|
|
168
|
+
readonly light: "#fee2e2";
|
|
169
|
+
readonly foreground: "#991b1b";
|
|
170
|
+
};
|
|
171
|
+
readonly info: {
|
|
172
|
+
readonly DEFAULT: "#0ea5e9";
|
|
173
|
+
readonly light: "#e0f2fe";
|
|
174
|
+
readonly foreground: "#075985";
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
export type GroveColor = typeof grove;
|
|
179
|
+
export type CreamColor = typeof cream;
|
|
180
|
+
export type BarkColor = typeof bark;
|
|
181
|
+
export type SemanticColor = typeof semantic;
|
|
182
|
+
export type StatusColor = typeof status;
|
|
183
|
+
export type Colors = typeof colors;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grove Design System - Color Tokens
|
|
3
|
+
*
|
|
4
|
+
* All color values for the Grove design system.
|
|
5
|
+
*/
|
|
6
|
+
export const grove = {
|
|
7
|
+
50: '#f0fdf4',
|
|
8
|
+
100: '#dcfce7',
|
|
9
|
+
200: '#bbf7d0',
|
|
10
|
+
300: '#86efac',
|
|
11
|
+
400: '#4ade80',
|
|
12
|
+
500: '#22c55e',
|
|
13
|
+
600: '#16a34a', // PRIMARY
|
|
14
|
+
700: '#15803d',
|
|
15
|
+
800: '#166534',
|
|
16
|
+
900: '#14532d',
|
|
17
|
+
950: '#052e16',
|
|
18
|
+
};
|
|
19
|
+
export const cream = {
|
|
20
|
+
DEFAULT: '#fefdfb',
|
|
21
|
+
50: '#fefdfb',
|
|
22
|
+
100: '#fdfcf8',
|
|
23
|
+
200: '#faf8f3',
|
|
24
|
+
300: '#f5f2ea',
|
|
25
|
+
400: '#ede9de',
|
|
26
|
+
500: '#e2ddd0',
|
|
27
|
+
};
|
|
28
|
+
export const bark = {
|
|
29
|
+
DEFAULT: '#3d2914',
|
|
30
|
+
50: '#f9f6f3',
|
|
31
|
+
100: '#f0e9e1',
|
|
32
|
+
200: '#e0d2c2',
|
|
33
|
+
300: '#ccb59c',
|
|
34
|
+
400: '#b69575',
|
|
35
|
+
500: '#a57c5a',
|
|
36
|
+
600: '#8a6347',
|
|
37
|
+
700: '#6f4d39',
|
|
38
|
+
800: '#5a3f30',
|
|
39
|
+
900: '#3d2914', // PRIMARY
|
|
40
|
+
950: '#2a1b0d',
|
|
41
|
+
};
|
|
42
|
+
export const semantic = {
|
|
43
|
+
primary: {
|
|
44
|
+
DEFAULT: grove[600],
|
|
45
|
+
foreground: '#ffffff',
|
|
46
|
+
hover: grove[700],
|
|
47
|
+
active: grove[800],
|
|
48
|
+
},
|
|
49
|
+
secondary: {
|
|
50
|
+
DEFAULT: cream[500],
|
|
51
|
+
foreground: bark.DEFAULT,
|
|
52
|
+
hover: cream[400],
|
|
53
|
+
active: cream[300],
|
|
54
|
+
},
|
|
55
|
+
background: cream.DEFAULT,
|
|
56
|
+
foreground: bark.DEFAULT,
|
|
57
|
+
muted: {
|
|
58
|
+
DEFAULT: cream[300],
|
|
59
|
+
foreground: bark[700],
|
|
60
|
+
},
|
|
61
|
+
accent: {
|
|
62
|
+
DEFAULT: grove[100],
|
|
63
|
+
foreground: grove[800],
|
|
64
|
+
},
|
|
65
|
+
border: cream[200],
|
|
66
|
+
input: cream[200],
|
|
67
|
+
ring: grove[500],
|
|
68
|
+
};
|
|
69
|
+
export const status = {
|
|
70
|
+
success: {
|
|
71
|
+
DEFAULT: grove[500],
|
|
72
|
+
light: grove[100],
|
|
73
|
+
foreground: grove[800],
|
|
74
|
+
},
|
|
75
|
+
warning: {
|
|
76
|
+
DEFAULT: '#f59e0b',
|
|
77
|
+
light: '#fef3c7',
|
|
78
|
+
foreground: '#92400e',
|
|
79
|
+
},
|
|
80
|
+
error: {
|
|
81
|
+
DEFAULT: '#dc2626',
|
|
82
|
+
light: '#fee2e2',
|
|
83
|
+
foreground: '#991b1b',
|
|
84
|
+
},
|
|
85
|
+
info: {
|
|
86
|
+
DEFAULT: '#0ea5e9',
|
|
87
|
+
light: '#e0f2fe',
|
|
88
|
+
foreground: '#075985',
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
export const colors = {
|
|
92
|
+
grove,
|
|
93
|
+
cream,
|
|
94
|
+
bark,
|
|
95
|
+
semantic,
|
|
96
|
+
status,
|
|
97
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grove Design System - Effect Tokens
|
|
3
|
+
*
|
|
4
|
+
* Borders, shadows, and visual effects.
|
|
5
|
+
*/
|
|
6
|
+
export declare const borderRadius: {
|
|
7
|
+
readonly none: "0";
|
|
8
|
+
readonly sm: "0.125rem";
|
|
9
|
+
readonly DEFAULT: "0.25rem";
|
|
10
|
+
readonly md: "0.375rem";
|
|
11
|
+
readonly lg: "0.5rem";
|
|
12
|
+
readonly grove: "0.75rem";
|
|
13
|
+
readonly 'grove-lg': "1rem";
|
|
14
|
+
readonly 'grove-xl': "1.5rem";
|
|
15
|
+
readonly full: "9999px";
|
|
16
|
+
};
|
|
17
|
+
export declare const borderWidth: {
|
|
18
|
+
readonly DEFAULT: "1px";
|
|
19
|
+
readonly '0': "0";
|
|
20
|
+
readonly '2': "2px";
|
|
21
|
+
readonly '4': "4px";
|
|
22
|
+
};
|
|
23
|
+
export declare const boxShadow: {
|
|
24
|
+
readonly 'grove-sm': "0 1px 2px 0 rgb(61 41 20 / 0.05)";
|
|
25
|
+
readonly grove: "0 2px 8px -2px rgb(61 41 20 / 0.08), 0 1px 2px -1px rgb(61 41 20 / 0.04)";
|
|
26
|
+
readonly 'grove-md': "0 4px 12px -4px rgb(61 41 20 / 0.1), 0 2px 4px -2px rgb(61 41 20 / 0.05)";
|
|
27
|
+
readonly 'grove-lg': "0 8px 24px -8px rgb(61 41 20 / 0.12), 0 4px 8px -4px rgb(61 41 20 / 0.06)";
|
|
28
|
+
readonly 'grove-xl': "0 16px 48px -16px rgb(61 41 20 / 0.15), 0 8px 16px -8px rgb(61 41 20 / 0.08)";
|
|
29
|
+
readonly 'grove-inner': "inset 0 1px 2px 0 rgb(61 41 20 / 0.05)";
|
|
30
|
+
readonly 'grove-glow': "0 0 0 3px rgb(22 163 74 / 0.15)";
|
|
31
|
+
readonly focus: "0 0 0 2px #fefdfb, 0 0 0 4px #22c55e";
|
|
32
|
+
readonly 'focus-error': "0 0 0 2px #fefdfb, 0 0 0 4px #dc2626";
|
|
33
|
+
};
|
|
34
|
+
export declare const blur: {
|
|
35
|
+
readonly grove: "8px";
|
|
36
|
+
readonly 'grove-lg': "16px";
|
|
37
|
+
};
|
|
38
|
+
export declare const opacity: {
|
|
39
|
+
readonly '0': "0";
|
|
40
|
+
readonly '5': "0.05";
|
|
41
|
+
readonly '10': "0.1";
|
|
42
|
+
readonly '20': "0.2";
|
|
43
|
+
readonly '25': "0.25";
|
|
44
|
+
readonly '30': "0.3";
|
|
45
|
+
readonly '40': "0.4";
|
|
46
|
+
readonly '50': "0.5";
|
|
47
|
+
readonly '60': "0.6";
|
|
48
|
+
readonly '70': "0.7";
|
|
49
|
+
readonly '75': "0.75";
|
|
50
|
+
readonly '80': "0.8";
|
|
51
|
+
readonly '90': "0.9";
|
|
52
|
+
readonly '95': "0.95";
|
|
53
|
+
readonly '100': "1";
|
|
54
|
+
};
|
|
55
|
+
export declare const effects: {
|
|
56
|
+
readonly borderRadius: {
|
|
57
|
+
readonly none: "0";
|
|
58
|
+
readonly sm: "0.125rem";
|
|
59
|
+
readonly DEFAULT: "0.25rem";
|
|
60
|
+
readonly md: "0.375rem";
|
|
61
|
+
readonly lg: "0.5rem";
|
|
62
|
+
readonly grove: "0.75rem";
|
|
63
|
+
readonly 'grove-lg': "1rem";
|
|
64
|
+
readonly 'grove-xl': "1.5rem";
|
|
65
|
+
readonly full: "9999px";
|
|
66
|
+
};
|
|
67
|
+
readonly borderWidth: {
|
|
68
|
+
readonly DEFAULT: "1px";
|
|
69
|
+
readonly '0': "0";
|
|
70
|
+
readonly '2': "2px";
|
|
71
|
+
readonly '4': "4px";
|
|
72
|
+
};
|
|
73
|
+
readonly boxShadow: {
|
|
74
|
+
readonly 'grove-sm': "0 1px 2px 0 rgb(61 41 20 / 0.05)";
|
|
75
|
+
readonly grove: "0 2px 8px -2px rgb(61 41 20 / 0.08), 0 1px 2px -1px rgb(61 41 20 / 0.04)";
|
|
76
|
+
readonly 'grove-md': "0 4px 12px -4px rgb(61 41 20 / 0.1), 0 2px 4px -2px rgb(61 41 20 / 0.05)";
|
|
77
|
+
readonly 'grove-lg': "0 8px 24px -8px rgb(61 41 20 / 0.12), 0 4px 8px -4px rgb(61 41 20 / 0.06)";
|
|
78
|
+
readonly 'grove-xl': "0 16px 48px -16px rgb(61 41 20 / 0.15), 0 8px 16px -8px rgb(61 41 20 / 0.08)";
|
|
79
|
+
readonly 'grove-inner': "inset 0 1px 2px 0 rgb(61 41 20 / 0.05)";
|
|
80
|
+
readonly 'grove-glow': "0 0 0 3px rgb(22 163 74 / 0.15)";
|
|
81
|
+
readonly focus: "0 0 0 2px #fefdfb, 0 0 0 4px #22c55e";
|
|
82
|
+
readonly 'focus-error': "0 0 0 2px #fefdfb, 0 0 0 4px #dc2626";
|
|
83
|
+
};
|
|
84
|
+
readonly blur: {
|
|
85
|
+
readonly grove: "8px";
|
|
86
|
+
readonly 'grove-lg': "16px";
|
|
87
|
+
};
|
|
88
|
+
readonly opacity: {
|
|
89
|
+
readonly '0': "0";
|
|
90
|
+
readonly '5': "0.05";
|
|
91
|
+
readonly '10': "0.1";
|
|
92
|
+
readonly '20': "0.2";
|
|
93
|
+
readonly '25': "0.25";
|
|
94
|
+
readonly '30': "0.3";
|
|
95
|
+
readonly '40': "0.4";
|
|
96
|
+
readonly '50': "0.5";
|
|
97
|
+
readonly '60': "0.6";
|
|
98
|
+
readonly '70': "0.7";
|
|
99
|
+
readonly '75': "0.75";
|
|
100
|
+
readonly '80': "0.8";
|
|
101
|
+
readonly '90': "0.9";
|
|
102
|
+
readonly '95': "0.95";
|
|
103
|
+
readonly '100': "1";
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export type BorderRadius = typeof borderRadius;
|
|
107
|
+
export type BorderWidth = typeof borderWidth;
|
|
108
|
+
export type BoxShadow = typeof boxShadow;
|
|
109
|
+
export type Blur = typeof blur;
|
|
110
|
+
export type Opacity = typeof opacity;
|
|
111
|
+
export type Effects = typeof effects;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grove Design System - Effect Tokens
|
|
3
|
+
*
|
|
4
|
+
* Borders, shadows, and visual effects.
|
|
5
|
+
*/
|
|
6
|
+
export const borderRadius = {
|
|
7
|
+
'none': '0',
|
|
8
|
+
'sm': '0.125rem', // 2px
|
|
9
|
+
'DEFAULT': '0.25rem', // 4px
|
|
10
|
+
'md': '0.375rem', // 6px
|
|
11
|
+
'lg': '0.5rem', // 8px
|
|
12
|
+
'grove': '0.75rem', // 12px - Primary Grove radius
|
|
13
|
+
'grove-lg': '1rem', // 16px
|
|
14
|
+
'grove-xl': '1.5rem', // 24px
|
|
15
|
+
'full': '9999px',
|
|
16
|
+
};
|
|
17
|
+
export const borderWidth = {
|
|
18
|
+
'DEFAULT': '1px',
|
|
19
|
+
'0': '0',
|
|
20
|
+
'2': '2px',
|
|
21
|
+
'4': '4px',
|
|
22
|
+
};
|
|
23
|
+
export const boxShadow = {
|
|
24
|
+
'grove-sm': '0 1px 2px 0 rgb(61 41 20 / 0.05)',
|
|
25
|
+
'grove': '0 2px 8px -2px rgb(61 41 20 / 0.08), 0 1px 2px -1px rgb(61 41 20 / 0.04)',
|
|
26
|
+
'grove-md': '0 4px 12px -4px rgb(61 41 20 / 0.1), 0 2px 4px -2px rgb(61 41 20 / 0.05)',
|
|
27
|
+
'grove-lg': '0 8px 24px -8px rgb(61 41 20 / 0.12), 0 4px 8px -4px rgb(61 41 20 / 0.06)',
|
|
28
|
+
'grove-xl': '0 16px 48px -16px rgb(61 41 20 / 0.15), 0 8px 16px -8px rgb(61 41 20 / 0.08)',
|
|
29
|
+
'grove-inner': 'inset 0 1px 2px 0 rgb(61 41 20 / 0.05)',
|
|
30
|
+
'grove-glow': '0 0 0 3px rgb(22 163 74 / 0.15)',
|
|
31
|
+
'focus': '0 0 0 2px #fefdfb, 0 0 0 4px #22c55e',
|
|
32
|
+
'focus-error': '0 0 0 2px #fefdfb, 0 0 0 4px #dc2626',
|
|
33
|
+
};
|
|
34
|
+
export const blur = {
|
|
35
|
+
'grove': '8px',
|
|
36
|
+
'grove-lg': '16px',
|
|
37
|
+
};
|
|
38
|
+
export const opacity = {
|
|
39
|
+
'0': '0',
|
|
40
|
+
'5': '0.05',
|
|
41
|
+
'10': '0.1',
|
|
42
|
+
'20': '0.2',
|
|
43
|
+
'25': '0.25',
|
|
44
|
+
'30': '0.3',
|
|
45
|
+
'40': '0.4',
|
|
46
|
+
'50': '0.5',
|
|
47
|
+
'60': '0.6',
|
|
48
|
+
'70': '0.7',
|
|
49
|
+
'75': '0.75',
|
|
50
|
+
'80': '0.8',
|
|
51
|
+
'90': '0.9',
|
|
52
|
+
'95': '0.95',
|
|
53
|
+
'100': '1',
|
|
54
|
+
};
|
|
55
|
+
export const effects = {
|
|
56
|
+
borderRadius,
|
|
57
|
+
borderWidth,
|
|
58
|
+
boxShadow,
|
|
59
|
+
blur,
|
|
60
|
+
opacity,
|
|
61
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// GroveUI - Design Tokens
|
|
2
|
+
//
|
|
3
|
+
// This module exports design tokens for the Grove Design System:
|
|
4
|
+
// colors, typography, spacing, effects, animation
|
|
5
|
+
//
|
|
6
|
+
// Usage:
|
|
7
|
+
// import { colors, grove, bark, cream } from '@groveengine/ui/tokens';
|
|
8
|
+
// Design tokens will be added here after extraction from GroveEngine
|
|
9
|
+
// The tokens define the visual language of the Grove platform:
|
|
10
|
+
// - Grove Green: Primary brand color (#16a34a)
|
|
11
|
+
// - Bark Brown: Text and dark accents (#3d2914)
|
|
12
|
+
// - Cream: Background and light surfaces (#fefdfb)
|
|
13
|
+
// Design token exports
|
|
14
|
+
export * from './colors.js';
|
|
15
|
+
export * from './typography.js';
|
|
16
|
+
export * from './spacing.js';
|
|
17
|
+
export * from './effects.js';
|
|
18
|
+
export * from './animation.js';
|
|
19
|
+
export const TOKENS_VERSION = '0.2.0';
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grove Design System - Spacing & Sizing Tokens
|
|
3
|
+
*
|
|
4
|
+
* Consistent spacing scale for margins, padding, and gaps.
|
|
5
|
+
*/
|
|
6
|
+
export declare const spacing: {
|
|
7
|
+
readonly '0': "0";
|
|
8
|
+
readonly px: "1px";
|
|
9
|
+
readonly '0.5': "0.125rem";
|
|
10
|
+
readonly '1': "0.25rem";
|
|
11
|
+
readonly '1.5': "0.375rem";
|
|
12
|
+
readonly '2': "0.5rem";
|
|
13
|
+
readonly '2.5': "0.625rem";
|
|
14
|
+
readonly '3': "0.75rem";
|
|
15
|
+
readonly '3.5': "0.875rem";
|
|
16
|
+
readonly '4': "1rem";
|
|
17
|
+
readonly '5': "1.25rem";
|
|
18
|
+
readonly '6': "1.5rem";
|
|
19
|
+
readonly '7': "1.75rem";
|
|
20
|
+
readonly '8': "2rem";
|
|
21
|
+
readonly '9': "2.25rem";
|
|
22
|
+
readonly '10': "2.5rem";
|
|
23
|
+
readonly '11': "2.75rem";
|
|
24
|
+
readonly '12': "3rem";
|
|
25
|
+
readonly '14': "3.5rem";
|
|
26
|
+
readonly '16': "4rem";
|
|
27
|
+
readonly '18': "4.5rem";
|
|
28
|
+
readonly '20': "5rem";
|
|
29
|
+
readonly '22': "5.5rem";
|
|
30
|
+
readonly '24': "6rem";
|
|
31
|
+
readonly '30': "7.5rem";
|
|
32
|
+
};
|
|
33
|
+
export declare const containerSizes: {
|
|
34
|
+
readonly sm: "640px";
|
|
35
|
+
readonly md: "768px";
|
|
36
|
+
readonly lg: "1024px";
|
|
37
|
+
readonly xl: "1280px";
|
|
38
|
+
readonly '2xl': "1536px";
|
|
39
|
+
};
|
|
40
|
+
export declare const contentWidths: {
|
|
41
|
+
readonly prose: "65ch";
|
|
42
|
+
readonly 'prose-wide': "75ch";
|
|
43
|
+
readonly 'prose-narrow': "55ch";
|
|
44
|
+
};
|
|
45
|
+
export declare const sizing: {
|
|
46
|
+
readonly spacing: {
|
|
47
|
+
readonly '0': "0";
|
|
48
|
+
readonly px: "1px";
|
|
49
|
+
readonly '0.5': "0.125rem";
|
|
50
|
+
readonly '1': "0.25rem";
|
|
51
|
+
readonly '1.5': "0.375rem";
|
|
52
|
+
readonly '2': "0.5rem";
|
|
53
|
+
readonly '2.5': "0.625rem";
|
|
54
|
+
readonly '3': "0.75rem";
|
|
55
|
+
readonly '3.5': "0.875rem";
|
|
56
|
+
readonly '4': "1rem";
|
|
57
|
+
readonly '5': "1.25rem";
|
|
58
|
+
readonly '6': "1.5rem";
|
|
59
|
+
readonly '7': "1.75rem";
|
|
60
|
+
readonly '8': "2rem";
|
|
61
|
+
readonly '9': "2.25rem";
|
|
62
|
+
readonly '10': "2.5rem";
|
|
63
|
+
readonly '11': "2.75rem";
|
|
64
|
+
readonly '12': "3rem";
|
|
65
|
+
readonly '14': "3.5rem";
|
|
66
|
+
readonly '16': "4rem";
|
|
67
|
+
readonly '18': "4.5rem";
|
|
68
|
+
readonly '20': "5rem";
|
|
69
|
+
readonly '22': "5.5rem";
|
|
70
|
+
readonly '24': "6rem";
|
|
71
|
+
readonly '30': "7.5rem";
|
|
72
|
+
};
|
|
73
|
+
readonly containerSizes: {
|
|
74
|
+
readonly sm: "640px";
|
|
75
|
+
readonly md: "768px";
|
|
76
|
+
readonly lg: "1024px";
|
|
77
|
+
readonly xl: "1280px";
|
|
78
|
+
readonly '2xl': "1536px";
|
|
79
|
+
};
|
|
80
|
+
readonly contentWidths: {
|
|
81
|
+
readonly prose: "65ch";
|
|
82
|
+
readonly 'prose-wide': "75ch";
|
|
83
|
+
readonly 'prose-narrow': "55ch";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export type Spacing = typeof spacing;
|
|
87
|
+
export type ContainerSizes = typeof containerSizes;
|
|
88
|
+
export type ContentWidths = typeof contentWidths;
|
|
89
|
+
export type Sizing = typeof sizing;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grove Design System - Spacing & Sizing Tokens
|
|
3
|
+
*
|
|
4
|
+
* Consistent spacing scale for margins, padding, and gaps.
|
|
5
|
+
*/
|
|
6
|
+
export const spacing = {
|
|
7
|
+
'0': '0',
|
|
8
|
+
'px': '1px',
|
|
9
|
+
'0.5': '0.125rem', // 2px
|
|
10
|
+
'1': '0.25rem', // 4px
|
|
11
|
+
'1.5': '0.375rem', // 6px
|
|
12
|
+
'2': '0.5rem', // 8px
|
|
13
|
+
'2.5': '0.625rem', // 10px
|
|
14
|
+
'3': '0.75rem', // 12px
|
|
15
|
+
'3.5': '0.875rem', // 14px
|
|
16
|
+
'4': '1rem', // 16px
|
|
17
|
+
'5': '1.25rem', // 20px
|
|
18
|
+
'6': '1.5rem', // 24px
|
|
19
|
+
'7': '1.75rem', // 28px
|
|
20
|
+
'8': '2rem', // 32px
|
|
21
|
+
'9': '2.25rem', // 36px
|
|
22
|
+
'10': '2.5rem', // 40px
|
|
23
|
+
'11': '2.75rem', // 44px
|
|
24
|
+
'12': '3rem', // 48px
|
|
25
|
+
'14': '3.5rem', // 56px
|
|
26
|
+
'16': '4rem', // 64px
|
|
27
|
+
'18': '4.5rem', // 72px
|
|
28
|
+
'20': '5rem', // 80px
|
|
29
|
+
'22': '5.5rem', // 88px
|
|
30
|
+
'24': '6rem', // 96px
|
|
31
|
+
'30': '7.5rem', // 120px
|
|
32
|
+
};
|
|
33
|
+
export const containerSizes = {
|
|
34
|
+
'sm': '640px',
|
|
35
|
+
'md': '768px',
|
|
36
|
+
'lg': '1024px',
|
|
37
|
+
'xl': '1280px',
|
|
38
|
+
'2xl': '1536px',
|
|
39
|
+
};
|
|
40
|
+
export const contentWidths = {
|
|
41
|
+
'prose': '65ch',
|
|
42
|
+
'prose-wide': '75ch',
|
|
43
|
+
'prose-narrow': '55ch',
|
|
44
|
+
};
|
|
45
|
+
export const sizing = {
|
|
46
|
+
spacing,
|
|
47
|
+
containerSizes,
|
|
48
|
+
contentWidths,
|
|
49
|
+
};
|