@tosui/react 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.js +109 -0
- package/dist/components/Accordion/Accordion.js.map +1 -0
- package/dist/components/Accordion/accordion.module.css +36 -0
- package/dist/components/Accordion/accordion.module.css.js +27 -0
- package/dist/components/Accordion/accordion.module.css.js.map +1 -0
- package/dist/components/Alert/Alert.js +109 -0
- package/dist/components/Alert/Alert.js.map +1 -0
- package/dist/components/Alert/alert.module.css +27 -0
- package/dist/components/Alert/alert.module.css.js +24 -0
- package/dist/components/Alert/alert.module.css.js.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.js +72 -0
- package/dist/components/Avatar/Avatar.js.map +1 -0
- package/dist/components/Avatar/avatar.module.css +14 -0
- package/dist/components/Avatar/avatar.module.css.js +15 -0
- package/dist/components/Avatar/avatar.module.css.js.map +1 -0
- package/dist/components/Badge/Badge.js +66 -0
- package/dist/components/Badge/Badge.js.map +1 -0
- package/dist/components/Badge/badge.module.css +3 -0
- package/dist/components/Badge/badge.module.css.js +9 -0
- package/dist/components/Badge/badge.module.css.js.map +1 -0
- package/dist/components/Box/Box.js +217 -0
- package/dist/components/Box/Box.js.map +1 -0
- package/dist/components/Box/borders/borders.js +91 -0
- package/dist/components/Box/borders/borders.js.map +1 -0
- package/dist/components/Box/borders/borders.module.css +49 -0
- package/dist/components/Box/borders/borders.module.css.js +46 -0
- package/dist/components/Box/borders/borders.module.css.js.map +1 -0
- package/dist/components/Box/colors/colors.js +45 -0
- package/dist/components/Box/colors/colors.js.map +1 -0
- package/dist/components/Box/colors/colors.module.css +113 -0
- package/dist/components/Box/colors/colors.module.css.js +114 -0
- package/dist/components/Box/colors/colors.module.css.js.map +1 -0
- package/dist/components/Box/display/display.js +52 -0
- package/dist/components/Box/display/display.js.map +1 -0
- package/dist/components/Box/display/display.module.css +375 -0
- package/dist/components/Box/display/display.module.css.js +318 -0
- package/dist/components/Box/display/display.module.css.js.map +1 -0
- package/dist/components/Box/flexbox/flexbox.js +139 -0
- package/dist/components/Box/flexbox/flexbox.js.map +1 -0
- package/dist/components/Box/flexbox/flexbox.module.css +65 -0
- package/dist/components/Box/flexbox/flexbox.module.css.js +62 -0
- package/dist/components/Box/flexbox/flexbox.module.css.js.map +1 -0
- package/dist/components/Box/grid/grid.js +49 -0
- package/dist/components/Box/grid/grid.js.map +1 -0
- package/dist/components/Box/grid/grid.module.css +19 -0
- package/dist/components/Box/grid/grid.module.css.js +20 -0
- package/dist/components/Box/grid/grid.module.css.js.map +1 -0
- package/dist/components/Box/inset/inset.js +96 -0
- package/dist/components/Box/inset/inset.js.map +1 -0
- package/dist/components/Box/inset/inset.module.css +187 -0
- package/dist/components/Box/inset/inset.module.css.js +174 -0
- package/dist/components/Box/inset/inset.module.css.js.map +1 -0
- package/dist/components/Box/interactions/interactions.js +45 -0
- package/dist/components/Box/interactions/interactions.js.map +1 -0
- package/dist/components/Box/interactions/interactions.module.css +43 -0
- package/dist/components/Box/interactions/interactions.module.css.js +44 -0
- package/dist/components/Box/interactions/interactions.module.css.js.map +1 -0
- package/dist/components/Box/margin/margin.js +96 -0
- package/dist/components/Box/margin/margin.js.map +1 -0
- package/dist/components/Box/margin/margin.module.css +187 -0
- package/dist/components/Box/margin/margin.module.css.js +174 -0
- package/dist/components/Box/margin/margin.module.css.js.map +1 -0
- package/dist/components/Box/opacity/opacity.js +52 -0
- package/dist/components/Box/opacity/opacity.js.map +1 -0
- package/dist/components/Box/opacity/opacity.module.css +51 -0
- package/dist/components/Box/opacity/opacity.module.css.js +174 -0
- package/dist/components/Box/opacity/opacity.module.css.js.map +1 -0
- package/dist/components/Box/overflow/overflow.js +69 -0
- package/dist/components/Box/overflow/overflow.js.map +1 -0
- package/dist/components/Box/overflow/overflow.module.css +155 -0
- package/dist/components/Box/overflow/overflow.module.css.js +510 -0
- package/dist/components/Box/overflow/overflow.module.css.js.map +1 -0
- package/dist/components/Box/padding/padding.js +96 -0
- package/dist/components/Box/padding/padding.js.map +1 -0
- package/dist/components/Box/padding/padding.module.css +187 -0
- package/dist/components/Box/padding/padding.module.css.js +174 -0
- package/dist/components/Box/padding/padding.module.css.js.map +1 -0
- package/dist/components/Box/position/position.js +52 -0
- package/dist/components/Box/position/position.js.map +1 -0
- package/dist/components/Box/position/position.module.css +234 -0
- package/dist/components/Box/position/position.module.css.js +214 -0
- package/dist/components/Box/position/position.module.css.js.map +1 -0
- package/dist/components/Box/reset/reset.js +6 -0
- package/dist/components/Box/reset/reset.js.map +1 -0
- package/dist/components/Box/reset/reset.module.css +23 -0
- package/dist/components/Box/reset/reset.module.css.js +9 -0
- package/dist/components/Box/reset/reset.module.css.js.map +1 -0
- package/dist/components/Box/roundness/roundness.js +92 -0
- package/dist/components/Box/roundness/roundness.js.map +1 -0
- package/dist/components/Box/roundness/roundness.module.css +47 -0
- package/dist/components/Box/roundness/roundness.module.css.js +46 -0
- package/dist/components/Box/roundness/roundness.module.css.js.map +1 -0
- package/dist/components/Box/shadows/shadows.js +52 -0
- package/dist/components/Box/shadows/shadows.js.map +1 -0
- package/dist/components/Box/shadows/shadows.module.css +51 -0
- package/dist/components/Box/shadows/shadows.module.css.js +174 -0
- package/dist/components/Box/shadows/shadows.module.css.js.map +1 -0
- package/dist/components/Box/shared/constants.js +21 -0
- package/dist/components/Box/shared/constants.js.map +1 -0
- package/dist/components/Box/shared/spacing.js +10 -0
- package/dist/components/Box/shared/spacing.js.map +1 -0
- package/dist/components/Box/sizing/sizing.js +75 -0
- package/dist/components/Box/sizing/sizing.js.map +1 -0
- package/dist/components/Box/sizing/sizing.module.css +281 -0
- package/dist/components/Box/sizing/sizing.module.css.js +258 -0
- package/dist/components/Box/sizing/sizing.module.css.js.map +1 -0
- package/dist/components/Box/text/text.js +45 -0
- package/dist/components/Box/text/text.js.map +1 -0
- package/dist/components/Box/text/text.module.css +29 -0
- package/dist/components/Box/text/text.module.css.js +30 -0
- package/dist/components/Box/text/text.module.css.js.map +1 -0
- package/dist/components/Box/typography/typography.js +27 -0
- package/dist/components/Box/typography/typography.js.map +1 -0
- package/dist/components/Box/typography/typography.module.css +26 -0
- package/dist/components/Box/typography/typography.module.css.js +25 -0
- package/dist/components/Box/typography/typography.module.css.js.map +1 -0
- package/dist/components/Box/zIndex/zIndex.js +52 -0
- package/dist/components/Box/zIndex/zIndex.js.map +1 -0
- package/dist/components/Box/zIndex/zIndex.module.css +90 -0
- package/dist/components/Box/zIndex/zIndex.module.css.js +300 -0
- package/dist/components/Box/zIndex/zIndex.module.css.js.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +78 -0
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/components/Breadcrumb/breadcrumb.module.css +25 -0
- package/dist/components/Breadcrumb/breadcrumb.module.css.js +21 -0
- package/dist/components/Breadcrumb/breadcrumb.module.css.js.map +1 -0
- package/dist/components/Button/Button.js +129 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/button.module.css +17 -0
- package/dist/components/Button/button.module.css.js +18 -0
- package/dist/components/Button/button.module.css.js.map +1 -0
- package/dist/components/Card/Card.js +60 -0
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/components/Card/card.module.css +16 -0
- package/dist/components/Card/card.module.css.js +18 -0
- package/dist/components/Card/card.module.css.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.js +74 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Checkbox/checkbox.module.css +65 -0
- package/dist/components/Checkbox/checkbox.module.css.js +15 -0
- package/dist/components/Checkbox/checkbox.module.css.js.map +1 -0
- package/dist/components/Code/Code.js +32 -0
- package/dist/components/Code/Code.js.map +1 -0
- package/dist/components/Container/Container.js +44 -0
- package/dist/components/Container/Container.js.map +1 -0
- package/dist/components/Divider/Divider.js +48 -0
- package/dist/components/Divider/Divider.js.map +1 -0
- package/dist/components/Flex/Flex.js +48 -0
- package/dist/components/Flex/Flex.js.map +1 -0
- package/dist/components/FormField/FormField.js +52 -0
- package/dist/components/FormField/FormField.js.map +1 -0
- package/dist/components/Grid/Grid.js +41 -0
- package/dist/components/Grid/Grid.js.map +1 -0
- package/dist/components/HStack/HStack.js +17 -0
- package/dist/components/HStack/HStack.js.map +1 -0
- package/dist/components/Heading/Heading.js +42 -0
- package/dist/components/Heading/Heading.js.map +1 -0
- package/dist/components/IconButton/IconButton.js +93 -0
- package/dist/components/IconButton/IconButton.js.map +1 -0
- package/dist/components/IconButton/iconbutton.module.css +18 -0
- package/dist/components/IconButton/iconbutton.module.css.js +18 -0
- package/dist/components/IconButton/iconbutton.module.css.js.map +1 -0
- package/dist/components/Image/Image.d.ts.map +1 -1
- package/dist/components/Image/Image.js +101 -0
- package/dist/components/Image/Image.js.map +1 -0
- package/dist/components/Image/image.module.css +44 -0
- package/dist/components/Image/image.module.css.js +36 -0
- package/dist/components/Image/image.module.css.js.map +1 -0
- package/dist/components/Input/Input.js +57 -0
- package/dist/components/Input/Input.js.map +1 -0
- package/dist/components/Input/input.module.css +29 -0
- package/dist/components/Input/input.module.css.js +12 -0
- package/dist/components/Input/input.module.css.js.map +1 -0
- package/dist/components/Label/Label.js +36 -0
- package/dist/components/Label/Label.js.map +1 -0
- package/dist/components/Link/Link.js +38 -0
- package/dist/components/Link/Link.js.map +1 -0
- package/dist/components/Link/link.module.css +28 -0
- package/dist/components/Link/link.module.css.js +16 -0
- package/dist/components/Link/link.module.css.js.map +1 -0
- package/dist/components/List/List.js +51 -0
- package/dist/components/List/List.js.map +1 -0
- package/dist/components/List/list.module.css +45 -0
- package/dist/components/List/list.module.css.js +24 -0
- package/dist/components/List/list.module.css.js.map +1 -0
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/Menu.js +143 -0
- package/dist/components/Menu/Menu.js.map +1 -0
- package/dist/components/Menu/menu.module.css +24 -0
- package/dist/components/Menu/menu.module.css.js +18 -0
- package/dist/components/Menu/menu.module.css.js.map +1 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +130 -0
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/modal.module.css +26 -0
- package/dist/components/Modal/modal.module.css.js +21 -0
- package/dist/components/Modal/modal.module.css.js.map +1 -0
- package/dist/components/Pagination/Pagination.js +125 -0
- package/dist/components/Pagination/Pagination.js.map +1 -0
- package/dist/components/Pagination/pagination.module.css +3 -0
- package/dist/components/Pagination/pagination.module.css.js +9 -0
- package/dist/components/Pagination/pagination.module.css.js.map +1 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Popover/Popover.js +144 -0
- package/dist/components/Popover/Popover.js.map +1 -0
- package/dist/components/Popover/popover.module.css +11 -0
- package/dist/components/Popover/popover.module.css.js +15 -0
- package/dist/components/Popover/popover.module.css.js.map +1 -0
- package/dist/components/Progress/Progress.js +54 -0
- package/dist/components/Progress/Progress.js.map +1 -0
- package/dist/components/Progress/progress.module.css +24 -0
- package/dist/components/Progress/progress.module.css.js +15 -0
- package/dist/components/Progress/progress.module.css.js.map +1 -0
- package/dist/components/Radio/Radio.js +70 -0
- package/dist/components/Radio/Radio.js.map +1 -0
- package/dist/components/Radio/radio.module.css +48 -0
- package/dist/components/Radio/radio.module.css.js +12 -0
- package/dist/components/Radio/radio.module.css.js.map +1 -0
- package/dist/components/Select/Select.js +57 -0
- package/dist/components/Select/Select.js.map +1 -0
- package/dist/components/Select/select.module.css +43 -0
- package/dist/components/Select/select.module.css.js +12 -0
- package/dist/components/Select/select.module.css.js.map +1 -0
- package/dist/components/Skeleton/Skeleton.js +37 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/Skeleton/skeleton.module.css +26 -0
- package/dist/components/Skeleton/skeleton.module.css.js +9 -0
- package/dist/components/Skeleton/skeleton.module.css.js.map +1 -0
- package/dist/components/Spacer/Spacer.js +16 -0
- package/dist/components/Spacer/Spacer.js.map +1 -0
- package/dist/components/Spinner/Spinner.js +41 -0
- package/dist/components/Spinner/Spinner.js.map +1 -0
- package/dist/components/Spinner/spinner.module.css +21 -0
- package/dist/components/Spinner/spinner.module.css.js +9 -0
- package/dist/components/Spinner/spinner.module.css.js.map +1 -0
- package/dist/components/Stack/Stack.js +35 -0
- package/dist/components/Stack/Stack.js.map +1 -0
- package/dist/components/Switch/Switch.js +83 -0
- package/dist/components/Switch/Switch.js.map +1 -0
- package/dist/components/Switch/switch.module.css +48 -0
- package/dist/components/Switch/switch.module.css.js +15 -0
- package/dist/components/Switch/switch.module.css.js.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +87 -0
- package/dist/components/Tabs/Tabs.js.map +1 -0
- package/dist/components/Tabs/tabs.module.css +55 -0
- package/dist/components/Tabs/tabs.module.css.js +27 -0
- package/dist/components/Tabs/tabs.module.css.js.map +1 -0
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +40 -0
- package/dist/components/Text/Text.js.map +1 -0
- package/dist/components/Text/text.module.css +9 -0
- package/dist/components/Text/text.module.css.js +12 -0
- package/dist/components/Text/text.module.css.js.map +1 -0
- package/dist/components/Textarea/Textarea.js +70 -0
- package/dist/components/Textarea/Textarea.js.map +1 -0
- package/dist/components/Textarea/textarea.module.css +46 -0
- package/dist/components/Textarea/textarea.module.css.js +24 -0
- package/dist/components/Textarea/textarea.module.css.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +135 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/Tooltip/tooltip.module.css +4 -0
- package/dist/components/Tooltip/tooltip.module.css.js +9 -0
- package/dist/components/Tooltip/tooltip.module.css.js.map +1 -0
- package/dist/components/VStack/VStack.js +17 -0
- package/dist/components/VStack/VStack.js.map +1 -0
- package/dist/fonts.css +23 -1
- package/dist/index.css +3320 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +99 -5521
- package/dist/index.js.map +1 -1
- package/dist/styles/styles.css +353 -0
- package/package.json +8 -4
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* === LIGHT MODE === */
|
|
3
|
+
|
|
4
|
+
/* Surface & Text Colors */
|
|
5
|
+
--t-light-foreground: #000000;
|
|
6
|
+
--t-light-foreground-muted: #374151;
|
|
7
|
+
--t-light-foreground-subtle: #6b7280;
|
|
8
|
+
--t-light-foreground-inverted: #ffffff;
|
|
9
|
+
--t-light-foreground-inverted-muted: #d1d5db;
|
|
10
|
+
--t-light-foreground-inverted-subtle: #9ca3af;
|
|
11
|
+
--t-light-border: #d1d5db;
|
|
12
|
+
--t-light-border-muted: #e5e7eb;
|
|
13
|
+
--t-light-background: #ffffff;
|
|
14
|
+
--t-light-surface: #f9fafb;
|
|
15
|
+
|
|
16
|
+
/* Brand Colors - Primary */
|
|
17
|
+
--t-light-primary-default: #2563eb;
|
|
18
|
+
--t-light-primary-emphasis: #1d4ed8;
|
|
19
|
+
--t-light-primary-subtle: #dbeafe;
|
|
20
|
+
|
|
21
|
+
/* Brand Colors - Accent */
|
|
22
|
+
--t-light-accent-default: #7c3aed;
|
|
23
|
+
--t-light-accent-emphasis: #6d28d9;
|
|
24
|
+
--t-light-accent-subtle: #ede9fe;
|
|
25
|
+
|
|
26
|
+
/* Semantic/Feedback - Success */
|
|
27
|
+
--t-light-success-default: #16a34a;
|
|
28
|
+
--t-light-success-emphasis: #15803d;
|
|
29
|
+
--t-light-success-subtle: #dcfce7;
|
|
30
|
+
|
|
31
|
+
/* Semantic/Feedback - Warning */
|
|
32
|
+
--t-light-warning-default: #f59e0b;
|
|
33
|
+
--t-light-warning-emphasis: #d97706;
|
|
34
|
+
--t-light-warning-subtle: #fef3c7;
|
|
35
|
+
|
|
36
|
+
/* Semantic/Feedback - Error */
|
|
37
|
+
--t-light-error-default: #dc2626;
|
|
38
|
+
--t-light-error-emphasis: #b91c1c;
|
|
39
|
+
--t-light-error-subtle: #fee2e2;
|
|
40
|
+
|
|
41
|
+
/* Semantic/Feedback - Info */
|
|
42
|
+
--t-light-info-default: #0891b2;
|
|
43
|
+
--t-light-info-emphasis: #0e7490;
|
|
44
|
+
--t-light-info-subtle: #cffafe;
|
|
45
|
+
|
|
46
|
+
/* Shadows */
|
|
47
|
+
--t-light-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
48
|
+
--t-light-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
49
|
+
0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
50
|
+
--t-light-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
51
|
+
0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
52
|
+
|
|
53
|
+
/* Skeleton Shimmer */
|
|
54
|
+
--t-light-skeleton-shimmer: rgba(0, 0, 0, 0.06);
|
|
55
|
+
|
|
56
|
+
/* === DARK MODE === */
|
|
57
|
+
|
|
58
|
+
/* Surface & Text Colors */
|
|
59
|
+
--t-dark-foreground: #ffffff;
|
|
60
|
+
--t-dark-foreground-muted: #d1d5db;
|
|
61
|
+
--t-dark-foreground-subtle: #6b7280;
|
|
62
|
+
--t-dark-foreground-inverted: #000000;
|
|
63
|
+
--t-dark-foreground-inverted-muted: #374151;
|
|
64
|
+
--t-dark-foreground-inverted-subtle: #6b7280;
|
|
65
|
+
--t-dark-border: #262626;
|
|
66
|
+
--t-dark-border-muted: #1a1a1a;
|
|
67
|
+
--t-dark-background: #0e0e0e;
|
|
68
|
+
--t-dark-surface: #141414;
|
|
69
|
+
|
|
70
|
+
/* Brand Colors - Primary */
|
|
71
|
+
--t-dark-primary-default: #4588e8;
|
|
72
|
+
--t-dark-primary-emphasis: #3270d0;
|
|
73
|
+
--t-dark-primary-subtle: #172554;
|
|
74
|
+
|
|
75
|
+
/* Brand Colors - Accent */
|
|
76
|
+
--t-dark-accent-default: #a78bfa;
|
|
77
|
+
--t-dark-accent-emphasis: #8b5cf6;
|
|
78
|
+
--t-dark-accent-subtle: #4c1d95;
|
|
79
|
+
|
|
80
|
+
/* Semantic/Feedback - Success */
|
|
81
|
+
--t-dark-success-default: #4ade80;
|
|
82
|
+
--t-dark-success-emphasis: #22c55e;
|
|
83
|
+
--t-dark-success-subtle: #14532d;
|
|
84
|
+
|
|
85
|
+
/* Semantic/Feedback - Warning */
|
|
86
|
+
--t-dark-warning-default: #fbbf24;
|
|
87
|
+
--t-dark-warning-emphasis: #f59e0b;
|
|
88
|
+
--t-dark-warning-subtle: #78350f;
|
|
89
|
+
|
|
90
|
+
/* Semantic/Feedback - Error */
|
|
91
|
+
--t-dark-error-default: #f87171;
|
|
92
|
+
--t-dark-error-emphasis: #ef4444;
|
|
93
|
+
--t-dark-error-subtle: #7f1d1d;
|
|
94
|
+
|
|
95
|
+
/* Semantic/Feedback - Info */
|
|
96
|
+
--t-dark-info-default: #22d3ee;
|
|
97
|
+
--t-dark-info-emphasis: #06b6d4;
|
|
98
|
+
--t-dark-info-subtle: #164e63;
|
|
99
|
+
|
|
100
|
+
/* Shadows */
|
|
101
|
+
--t-dark-shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.1);
|
|
102
|
+
--t-dark-shadow-md: 0 0 0 1px rgba(255, 255, 255, 0.15),
|
|
103
|
+
0 4px 6px rgba(0, 0, 0, 0.3);
|
|
104
|
+
--t-dark-shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.2),
|
|
105
|
+
0 10px 15px rgba(0, 0, 0, 0.4);
|
|
106
|
+
|
|
107
|
+
/* Skeleton Shimmer */
|
|
108
|
+
--t-dark-skeleton-shimmer: rgba(255, 255, 255, 0.12);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Tosui Base Styles
|
|
113
|
+
*
|
|
114
|
+
* Import this file to enable Tosui design token CSS variables.
|
|
115
|
+
* Components use CSS Modules for scoped styling and consistent resets.
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
/* === BASE RESET === */
|
|
119
|
+
|
|
120
|
+
body {
|
|
121
|
+
margin: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* === DESIGN TOKENS === */
|
|
125
|
+
|
|
126
|
+
:root {
|
|
127
|
+
/* Surface & Text Colors (Light Mode) */
|
|
128
|
+
--t-color-foreground: var(--t-light-foreground);
|
|
129
|
+
--t-color-foreground-muted: var(--t-light-foreground-muted);
|
|
130
|
+
--t-color-foreground-subtle: var(--t-light-foreground-subtle);
|
|
131
|
+
--t-color-foreground-inverted: var(--t-light-foreground-inverted);
|
|
132
|
+
--t-color-foreground-inverted-muted: var(--t-light-foreground-inverted-muted);
|
|
133
|
+
--t-color-foreground-inverted-subtle: var(
|
|
134
|
+
--t-light-foreground-inverted-subtle
|
|
135
|
+
);
|
|
136
|
+
--t-color-border: var(--t-light-border);
|
|
137
|
+
--t-color-border-muted: var(--t-light-border-muted);
|
|
138
|
+
--t-color-background: var(--t-light-background);
|
|
139
|
+
--t-color-surface: var(--t-light-surface);
|
|
140
|
+
|
|
141
|
+
/* Brand Colors - Primary */
|
|
142
|
+
--t-color-primary-default: var(--t-light-primary-default);
|
|
143
|
+
--t-color-primary-emphasis: var(--t-light-primary-emphasis);
|
|
144
|
+
--t-color-primary-subtle: var(--t-light-primary-subtle);
|
|
145
|
+
|
|
146
|
+
/* Brand Colors - Accent */
|
|
147
|
+
--t-color-accent-default: var(--t-light-accent-default);
|
|
148
|
+
--t-color-accent-emphasis: var(--t-light-accent-emphasis);
|
|
149
|
+
--t-color-accent-subtle: var(--t-light-accent-subtle);
|
|
150
|
+
|
|
151
|
+
/* Semantic/Feedback - Success */
|
|
152
|
+
--t-color-success-default: var(--t-light-success-default);
|
|
153
|
+
--t-color-success-emphasis: var(--t-light-success-emphasis);
|
|
154
|
+
--t-color-success-subtle: var(--t-light-success-subtle);
|
|
155
|
+
|
|
156
|
+
/* Semantic/Feedback - Warning */
|
|
157
|
+
--t-color-warning-default: var(--t-light-warning-default);
|
|
158
|
+
--t-color-warning-emphasis: var(--t-light-warning-emphasis);
|
|
159
|
+
--t-color-warning-subtle: var(--t-light-warning-subtle);
|
|
160
|
+
|
|
161
|
+
/* Semantic/Feedback - Error */
|
|
162
|
+
--t-color-error-default: var(--t-light-error-default);
|
|
163
|
+
--t-color-error-emphasis: var(--t-light-error-emphasis);
|
|
164
|
+
--t-color-error-subtle: var(--t-light-error-subtle);
|
|
165
|
+
|
|
166
|
+
/* Semantic/Feedback - Info */
|
|
167
|
+
--t-color-info-default: var(--t-light-info-default);
|
|
168
|
+
--t-color-info-emphasis: var(--t-light-info-emphasis);
|
|
169
|
+
--t-color-info-subtle: var(--t-light-info-subtle);
|
|
170
|
+
|
|
171
|
+
/* Spacing (customizable base unit, multipliers 0-32) */
|
|
172
|
+
--t-spacing-unit: 4px;
|
|
173
|
+
|
|
174
|
+
/* Font Sizes */
|
|
175
|
+
--t-font-size-xs: 12px;
|
|
176
|
+
--t-font-size-sm: 14px;
|
|
177
|
+
--t-font-size-md: 16px;
|
|
178
|
+
--t-font-size-lg: 18px;
|
|
179
|
+
--t-font-size-xl: 20px;
|
|
180
|
+
--t-font-size-2xl: 24px;
|
|
181
|
+
--t-font-size-3xl: 30px;
|
|
182
|
+
--t-font-size-4xl: 36px;
|
|
183
|
+
--t-font-size-5xl: 48px;
|
|
184
|
+
|
|
185
|
+
/* Font Weights */
|
|
186
|
+
--t-font-weight-normal: 400;
|
|
187
|
+
--t-font-weight-medium: 500;
|
|
188
|
+
--t-font-weight-semibold: 600;
|
|
189
|
+
--t-font-weight-bold: 700;
|
|
190
|
+
|
|
191
|
+
/* Line Heights */
|
|
192
|
+
--t-line-height-tight: 1.25;
|
|
193
|
+
--t-line-height-normal: 1.5;
|
|
194
|
+
--t-line-height-relaxed: 1.75;
|
|
195
|
+
|
|
196
|
+
/* Font Families */
|
|
197
|
+
--t-font-family-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
198
|
+
"Helvetica Neue", Arial, sans-serif;
|
|
199
|
+
--t-font-family-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
200
|
+
"Helvetica Neue", Arial, sans-serif;
|
|
201
|
+
--t-font-family-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono",
|
|
202
|
+
"Courier New", monospace;
|
|
203
|
+
|
|
204
|
+
/* Border Radius */
|
|
205
|
+
--t-radius-none: 0px;
|
|
206
|
+
--t-radius-sm: 4px;
|
|
207
|
+
--t-radius-md: 8px;
|
|
208
|
+
--t-radius-lg: 12px;
|
|
209
|
+
--t-radius-full: 9999px;
|
|
210
|
+
|
|
211
|
+
/* Border Width */
|
|
212
|
+
--t-border-width-none: 0px;
|
|
213
|
+
--t-border-width-thin: 1px;
|
|
214
|
+
--t-border-width-medium: 2px;
|
|
215
|
+
--t-border-width-thick: 4px;
|
|
216
|
+
|
|
217
|
+
/* Shadows */
|
|
218
|
+
--t-shadow-none: none;
|
|
219
|
+
--t-shadow-sm: var(--t-light-shadow-sm);
|
|
220
|
+
--t-shadow-md: var(--t-light-shadow-md);
|
|
221
|
+
--t-shadow-lg: var(--t-light-shadow-lg);
|
|
222
|
+
|
|
223
|
+
/* Skeleton */
|
|
224
|
+
--t-skeleton-shimmer: var(--t-light-skeleton-shimmer);
|
|
225
|
+
|
|
226
|
+
/* Transitions */
|
|
227
|
+
--t-transition-fast: 150ms;
|
|
228
|
+
--t-transition-normal: 250ms;
|
|
229
|
+
--t-transition-slow: 350ms;
|
|
230
|
+
--t-transition-easing: ease-in-out;
|
|
231
|
+
|
|
232
|
+
/* Breakpoints (for reference - use in media queries) */
|
|
233
|
+
--t-breakpoint-xs: 639px;
|
|
234
|
+
--t-breakpoint-sm: 767px;
|
|
235
|
+
--t-breakpoint-md: 1023px;
|
|
236
|
+
--t-breakpoint-lg: 1279px;
|
|
237
|
+
--t-breakpoint-xl: 1535px;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* === DARK MODE === */
|
|
241
|
+
|
|
242
|
+
@media (prefers-color-scheme: dark) {
|
|
243
|
+
html:not([data-theme="light"]),
|
|
244
|
+
html[data-theme="auto"] {
|
|
245
|
+
/* Surface & Text Colors (Light Mode) */
|
|
246
|
+
--t-color-foreground: var(--t-dark-foreground);
|
|
247
|
+
--t-color-foreground-muted: var(--t-dark-foreground-muted);
|
|
248
|
+
--t-color-foreground-subtle: var(--t-dark-foreground-subtle);
|
|
249
|
+
--t-color-foreground-inverted: var(--t-dark-foreground-inverted);
|
|
250
|
+
--t-color-foreground-inverted-muted: var(
|
|
251
|
+
--t-dark-foreground-inverted-muted
|
|
252
|
+
);
|
|
253
|
+
--t-color-foreground-inverted-subtle: var(
|
|
254
|
+
--t-dark-foreground-inverted-subtle
|
|
255
|
+
);
|
|
256
|
+
--t-color-border: var(--t-dark-border);
|
|
257
|
+
--t-color-border-muted: var(--t-dark-border-muted);
|
|
258
|
+
--t-color-background: var(--t-dark-background);
|
|
259
|
+
--t-color-surface: var(--t-dark-surface);
|
|
260
|
+
|
|
261
|
+
/* Brand Colors - Primary */
|
|
262
|
+
--t-color-primary-default: var(--t-dark-primary-default);
|
|
263
|
+
--t-color-primary-emphasis: var(--t-dark-primary-emphasis);
|
|
264
|
+
--t-color-primary-subtle: var(--t-dark-primary-subtle);
|
|
265
|
+
|
|
266
|
+
/* Brand Colors - Accent */
|
|
267
|
+
--t-color-accent-default: var(--t-dark-accent-default);
|
|
268
|
+
--t-color-accent-emphasis: var(--t-dark-accent-emphasis);
|
|
269
|
+
--t-color-accent-subtle: var(--t-dark-accent-subtle);
|
|
270
|
+
|
|
271
|
+
/* Semantic/Feedback - Success */
|
|
272
|
+
--t-color-success-default: var(--t-dark-success-default);
|
|
273
|
+
--t-color-success-emphasis: var(--t-dark-success-emphasis);
|
|
274
|
+
--t-color-success-subtle: var(--t-dark-success-subtle);
|
|
275
|
+
|
|
276
|
+
/* Semantic/Feedback - Warning */
|
|
277
|
+
--t-color-warning-default: var(--t-dark-warning-default);
|
|
278
|
+
--t-color-warning-emphasis: var(--t-dark-warning-emphasis);
|
|
279
|
+
--t-color-warning-subtle: var(--t-dark-warning-subtle);
|
|
280
|
+
|
|
281
|
+
/* Semantic/Feedback - Error */
|
|
282
|
+
--t-color-error-default: var(--t-dark-error-default);
|
|
283
|
+
--t-color-error-emphasis: var(--t-dark-error-emphasis);
|
|
284
|
+
--t-color-error-subtle: var(--t-dark-error-subtle);
|
|
285
|
+
|
|
286
|
+
/* Semantic/Feedback - Info */
|
|
287
|
+
--t-color-info-default: var(--t-dark-info-default);
|
|
288
|
+
--t-color-info-emphasis: var(--t-dark-info-emphasis);
|
|
289
|
+
--t-color-info-subtle: var(--t-dark-info-subtle);
|
|
290
|
+
|
|
291
|
+
/* Shadows */
|
|
292
|
+
--t-shadow-sm: var(--t-dark-shadow-sm);
|
|
293
|
+
--t-shadow-md: var(--t-dark-shadow-md);
|
|
294
|
+
--t-shadow-lg: var(--t-dark-shadow-lg);
|
|
295
|
+
|
|
296
|
+
/* Skeleton */
|
|
297
|
+
--t-skeleton-shimmer: var(--t-dark-skeleton-shimmer);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
:root[data-theme="dark"] {
|
|
302
|
+
/* Surface & Text Colors (Light Mode) */
|
|
303
|
+
--t-color-foreground: var(--t-dark-foreground);
|
|
304
|
+
--t-color-foreground-muted: var(--t-dark-foreground-muted);
|
|
305
|
+
--t-color-foreground-subtle: var(--t-dark-foreground-subtle);
|
|
306
|
+
--t-color-foreground-inverted: var(--t-dark-foreground-inverted);
|
|
307
|
+
--t-color-foreground-inverted-muted: var(--t-dark-foreground-inverted-muted);
|
|
308
|
+
--t-color-foreground-inverted-subtle: var(
|
|
309
|
+
--t-dark-foreground-inverted-subtle
|
|
310
|
+
);
|
|
311
|
+
--t-color-border: var(--t-dark-border);
|
|
312
|
+
--t-color-border-muted: var(--t-dark-border-muted);
|
|
313
|
+
--t-color-background: var(--t-dark-background);
|
|
314
|
+
--t-color-surface: var(--t-dark-surface);
|
|
315
|
+
|
|
316
|
+
/* Brand Colors - Primary */
|
|
317
|
+
--t-color-primary-default: var(--t-dark-primary-default);
|
|
318
|
+
--t-color-primary-emphasis: var(--t-dark-primary-emphasis);
|
|
319
|
+
--t-color-primary-subtle: var(--t-dark-primary-subtle);
|
|
320
|
+
|
|
321
|
+
/* Brand Colors - Accent */
|
|
322
|
+
--t-color-accent-default: var(--t-dark-accent-default);
|
|
323
|
+
--t-color-accent-emphasis: var(--t-dark-accent-emphasis);
|
|
324
|
+
--t-color-accent-subtle: var(--t-dark-accent-subtle);
|
|
325
|
+
|
|
326
|
+
/* Semantic/Feedback - Success */
|
|
327
|
+
--t-color-success-default: var(--t-dark-success-default);
|
|
328
|
+
--t-color-success-emphasis: var(--t-dark-success-emphasis);
|
|
329
|
+
--t-color-success-subtle: var(--t-dark-success-subtle);
|
|
330
|
+
|
|
331
|
+
/* Semantic/Feedback - Warning */
|
|
332
|
+
--t-color-warning-default: var(--t-dark-warning-default);
|
|
333
|
+
--t-color-warning-emphasis: var(--t-dark-warning-emphasis);
|
|
334
|
+
--t-color-warning-subtle: var(--t-dark-warning-subtle);
|
|
335
|
+
|
|
336
|
+
/* Semantic/Feedback - Error */
|
|
337
|
+
--t-color-error-default: var(--t-dark-error-default);
|
|
338
|
+
--t-color-error-emphasis: var(--t-dark-error-emphasis);
|
|
339
|
+
--t-color-error-subtle: var(--t-dark-error-subtle);
|
|
340
|
+
|
|
341
|
+
/* Semantic/Feedback - Info */
|
|
342
|
+
--t-color-info-default: var(--t-dark-info-default);
|
|
343
|
+
--t-color-info-emphasis: var(--t-dark-info-emphasis);
|
|
344
|
+
--t-color-info-subtle: var(--t-dark-info-subtle);
|
|
345
|
+
|
|
346
|
+
/* Shadows */
|
|
347
|
+
--t-shadow-sm: var(--t-dark-shadow-sm);
|
|
348
|
+
--t-shadow-md: var(--t-dark-shadow-md);
|
|
349
|
+
--t-shadow-lg: var(--t-dark-shadow-lg);
|
|
350
|
+
|
|
351
|
+
/* Skeleton */
|
|
352
|
+
--t-skeleton-shimmer: var(--t-dark-skeleton-shimmer);
|
|
353
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tosui/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "A themable, orderly, simple UI component library for React",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -30,9 +30,11 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"clsx": "^2.1.1"
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
"clsx": "^2.1.1"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
37
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
36
38
|
},
|
|
37
39
|
"devDependencies": {
|
|
38
40
|
"@eslint/js": "^9.39.1",
|
|
@@ -45,9 +47,11 @@
|
|
|
45
47
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
46
48
|
"globals": "^16.5.0",
|
|
47
49
|
"postcss": "^8.5.6",
|
|
50
|
+
"rollup-preserve-directives": "^1.1.3",
|
|
48
51
|
"typescript": "~5.9.3",
|
|
49
52
|
"typescript-eslint": "^8.46.4",
|
|
50
53
|
"vite": "^7.2.4",
|
|
54
|
+
"vite-plugin-bundle-css": "^0.1.1",
|
|
51
55
|
"vite-plugin-dts": "^4.5.4"
|
|
52
56
|
},
|
|
53
57
|
"scripts": {
|