@vetc-miniapp/ui-react 0.0.22 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +375 -56
  2. package/package.json +17 -5
  3. package/src/dist/ui-react/index.js +1 -1
  4. package/src/ui-react/components/avatar/Avatar.tsx +88 -0
  5. package/src/ui-react/components/avatar/index.ts +2 -0
  6. package/src/ui-react/components/bottom-sheet/BottomSheet.tsx +149 -0
  7. package/src/ui-react/components/bottom-sheet/index.ts +2 -0
  8. package/src/ui-react/components/button/Button.tsx +246 -0
  9. package/src/ui-react/components/button/index.ts +2 -0
  10. package/src/ui-react/components/button-group/ButtonGroup.tsx +108 -0
  11. package/src/ui-react/components/button-group/index.ts +2 -0
  12. package/src/ui-react/components/card/Card.tsx +77 -0
  13. package/src/ui-react/components/card/index.ts +2 -0
  14. package/src/ui-react/components/checkbox/Checkbox.tsx +232 -0
  15. package/src/ui-react/components/checkbox/index.ts +2 -0
  16. package/src/ui-react/components/chip/Chip.tsx +137 -0
  17. package/src/ui-react/components/chip/index.ts +2 -0
  18. package/src/ui-react/components/dialog/Dialog.tsx +135 -0
  19. package/src/ui-react/components/dialog/index.ts +2 -0
  20. package/src/ui-react/components/divider/Divider.tsx +54 -0
  21. package/src/ui-react/components/divider/index.ts +2 -0
  22. package/src/ui-react/components/input/Input.tsx +195 -0
  23. package/src/ui-react/components/input/index.ts +2 -0
  24. package/src/ui-react/components/list/List.tsx +180 -0
  25. package/src/ui-react/components/list/index.ts +2 -0
  26. package/src/ui-react/components/loading/Loading.tsx +121 -0
  27. package/src/ui-react/components/loading/index.ts +2 -0
  28. package/src/ui-react/components/modal/Modal.tsx +116 -0
  29. package/src/ui-react/components/modal/index.ts +2 -0
  30. package/src/ui-react/components/navigation-bar/NavigationBar.tsx +188 -0
  31. package/src/ui-react/components/navigation-bar/index.ts +2 -0
  32. package/src/ui-react/components/radio/Radio.tsx +216 -0
  33. package/src/ui-react/components/radio/index.ts +2 -0
  34. package/src/ui-react/components/select/Select.tsx +109 -0
  35. package/src/ui-react/components/select/index.ts +2 -0
  36. package/src/ui-react/components/switch/Switch.tsx +164 -0
  37. package/src/ui-react/components/switch/index.ts +2 -0
  38. package/src/ui-react/components/tab-bar/TabBar.tsx +137 -0
  39. package/src/ui-react/components/tab-bar/index.ts +2 -0
  40. package/src/ui-react/components/textarea/Textarea.tsx +109 -0
  41. package/src/ui-react/components/textarea/index.ts +2 -0
  42. package/src/ui-react/components/toast/Toast.ts +98 -0
  43. package/src/ui-react/components/toast/index.ts +2 -0
  44. package/src/ui-react/components/typography/Typography.tsx +201 -0
  45. package/src/ui-react/components/typography/index.ts +2 -0
  46. package/src/ui-react/hooks/use-did-show.js +1 -0
  47. package/src/ui-react/hooks/use-tap-app-bar.js +26 -0
  48. package/src/ui-react/hooks/use-tap-app-bar.ts +34 -0
  49. package/src/ui-react/index.js +1 -0
  50. package/src/ui-react/index.ts +79 -3
  51. package/src/ui-react/styles/VETCProvider.tsx +152 -0
  52. package/src/ui-react/styles/tokens.css +427 -0
  53. package/src/ui-react/tokens/colors.ts +91 -0
  54. package/src/ui-react/tokens/index.ts +3 -0
  55. package/src/ui-react/tokens/spacing.ts +59 -0
  56. package/src/ui-react/tokens/typography.ts +63 -0
  57. package/src/ui-react/tokens_vetc.json +1517 -0
@@ -1,9 +1,85 @@
1
+ // ─── Styles (import once at app root) ────────────────────────────────────────
2
+ // import '@vetc-miniapp/ui-react/src/ui-react/styles/tokens.css';
3
+
4
+ // ─── Theme Provider ───────────────────────────────────────────────────────────
5
+ export { VETCProvider, vetcAntdTheme } from './styles/VETCProvider';
6
+ export type { VETCProviderProps } from './styles/VETCProvider';
7
+
8
+ // ─── Tokens ───────────────────────────────────────────────────────────────────
9
+ export { colorGlobal, colorAlias } from './tokens/colors';
10
+ export { fontFamily, fontWeight, fontSize, lineHeight, letterSpacing, textStyle } from './tokens/typography';
11
+ export { spacing, borderRadius, componentHeight, shadow } from './tokens/spacing';
12
+
13
+ // ─── Components ───────────────────────────────────────────────────────────────
14
+ export { Button } from './components/button';
15
+ export type { ButtonProps, ButtonStyle, ButtonVariant, ButtonSize, ButtonShape } from './components/button';
16
+
17
+ export { ButtonGroup } from './components/button-group';
18
+ export type { ButtonGroupProps, ButtonGroupAction, ButtonGroupLayout, ButtonGroupVariant } from './components/button-group';
19
+
20
+ export { Typography, Display, Headline, Title, Label, Body } from './components/typography';
21
+ export type { TypographyProps, TypographyVariant, TextColor } from './components/typography';
22
+
23
+ export { Input, PasswordInput } from './components/input';
24
+ export type { InputProps, PasswordInputProps, InputStatus } from './components/input';
25
+
26
+ export { Textarea } from './components/textarea';
27
+ export type { TextareaProps } from './components/textarea';
28
+
29
+ export { Select } from './components/select';
30
+ export type { SelectProps, SelectOption } from './components/select';
31
+
32
+ export { Checkbox, CheckboxGroup } from './components/checkbox';
33
+ export type { CheckboxProps, CheckboxGroupProps, CheckboxOption, CheckboxVariant } from './components/checkbox';
34
+
35
+ export { Radio, RadioGroup } from './components/radio';
36
+ export type { RadioProps, RadioGroupProps, RadioOption, RadioVariant } from './components/radio';
37
+
38
+ export { Switch } from './components/switch';
39
+ export type { SwitchProps, SwitchVariant } from './components/switch';
40
+
41
+ export { Chip } from './components/chip';
42
+ export type { ChipProps, ChipStyle, ChipType, ChipShape } from './components/chip';
43
+
44
+ export { Avatar } from './components/avatar';
45
+ export type { AvatarProps, AvatarSize, AvatarShape } from './components/avatar';
46
+
47
+ export { Card } from './components/card';
48
+ export type { CardProps, CardElevation } from './components/card';
49
+
50
+ export { List, ListItem } from './components/list';
51
+ export type { ListProps, ListItemProps } from './components/list';
52
+
53
+ export { Divider } from './components/divider';
54
+ export type { DividerProps } from './components/divider';
55
+
56
+ export { Spinner, SkeletonLoader } from './components/loading';
57
+ export type { SpinnerProps, SkeletonProps, SpinnerSize } from './components/loading';
58
+
59
+ export { toast, useToast } from './components/toast';
60
+ export type { ToastOptions, ToastType } from './components/toast';
61
+
62
+ export { Modal, useConfirm } from './components/modal';
63
+ export type { ModalProps } from './components/modal';
64
+
65
+ export { Dialog } from './components/dialog';
66
+ export type { DialogProps } from './components/dialog';
67
+
68
+ export { BottomSheet } from './components/bottom-sheet';
69
+ export type { BottomSheetProps } from './components/bottom-sheet';
70
+
71
+ export { NavigationBar } from './components/navigation-bar';
72
+ export type { NavigationBarProps, NavigationBarAction } from './components/navigation-bar';
73
+
74
+ export { TabBar } from './components/tab-bar';
75
+ export type { TabBarProps, TabBarItem, TabBarVariant } from './components/tab-bar';
76
+
77
+ // ─── Hooks (existing) ─────────────────────────────────────────────────────────
1
78
  export * from './hooks/use-app-resume';
2
79
  export * from './hooks/use-app-pause';
3
80
  export * from './hooks/use-did-show';
4
81
  export * from './hooks/use-did-hide';
82
+ export * from './hooks/use-tap-app-bar';
5
83
  export * from './hooks/use-navigate';
6
84
  export * from './hooks/use-app-state';
7
- export * from './hooks/use-listener-scan-qr.ts';
8
- // export * from './components/app';
9
-
85
+ export * from './hooks/use-listener-scan-qr';
@@ -0,0 +1,152 @@
1
+ /**
2
+ * VETC Design System — Ant Design Theme Provider
3
+ * Wraps children with ConfigProvider using VETC token overrides.
4
+ */
5
+ import React from 'react';
6
+ import { ConfigProvider, App as AntApp, theme } from 'antd';
7
+ import { colorAlias, colorGlobal } from '../tokens/colors';
8
+
9
+ export const vetcAntdTheme = {
10
+ token: {
11
+ // Brand / Primary
12
+ colorPrimary: colorAlias.brand, // #25a45e
13
+ colorPrimaryHover: colorGlobal.green35,
14
+ colorPrimaryActive: colorAlias.brandDark,
15
+ colorPrimaryBg: colorGlobal.green02,
16
+ colorPrimaryBgHover: colorGlobal.green05,
17
+
18
+ // Error / Danger
19
+ colorError: colorAlias.negative, // #da2c39
20
+ colorErrorHover: colorGlobal.red60,
21
+ colorErrorBg: colorGlobal.red02,
22
+
23
+ // Warning
24
+ colorWarning: colorAlias.warning, // #ff8c2f
25
+ colorWarningBg: colorGlobal.orange02,
26
+
27
+ // Success
28
+ colorSuccess: colorAlias.positive, // #208758
29
+ colorSuccessBg: colorGlobal.green02,
30
+
31
+ // Text
32
+ colorText: colorAlias.primaryOnTheme, // #181719
33
+ colorTextSecondary: colorAlias.secondaryOnTheme, // #5e5d64
34
+ colorTextDisabled: colorAlias.disabledContent, // #abacb2
35
+ colorTextPlaceholder: colorGlobal.gray50,
36
+
37
+ // Background
38
+ colorBgContainer: colorAlias.theme, // #ffffff
39
+ colorBgLayout: colorAlias.themeVariant, // #f1f1f2
40
+ colorBgSpotlight: colorAlias.inverseTheme,
41
+
42
+ // Border
43
+ colorBorder: colorGlobal.gray20, // #c6c8cc
44
+ colorBorderSecondary: colorGlobal.gray10, // #e3e4e6
45
+ colorSplit: colorGlobal.gray10,
46
+
47
+ // Fill states
48
+ colorFill: colorGlobal.gray05,
49
+ colorFillSecondary: colorGlobal.gray10,
50
+ colorFillTertiary: colorGlobal.gray15,
51
+
52
+ // Typography
53
+ fontFamily: '"Roboto", system-ui, -apple-system, sans-serif',
54
+ fontSize: 16,
55
+ fontSizeSM: 13,
56
+ fontSizeLG: 18,
57
+ fontSizeXL: 19,
58
+ fontSizeHeading1: 32,
59
+ fontSizeHeading2: 28,
60
+ fontSizeHeading3: 24,
61
+ fontSizeHeading4: 19,
62
+ fontSizeHeading5: 16,
63
+ fontWeightStrong: 600,
64
+ lineHeight: 1.5,
65
+
66
+ // Shape
67
+ borderRadius: 8,
68
+ borderRadiusSM: 6,
69
+ borderRadiusLG: 12,
70
+ borderRadiusXS: 4,
71
+
72
+ // Size
73
+ controlHeight: 48,
74
+ controlHeightSM: 32,
75
+ controlHeightLG: 56,
76
+
77
+ // Padding
78
+ paddingXS: 8,
79
+ paddingSM: 12,
80
+ padding: 16,
81
+ paddingMD: 16,
82
+ paddingLG: 24,
83
+
84
+ // Motion
85
+ motionDurationFast: '150ms',
86
+ motionDurationMid: '250ms',
87
+ },
88
+ components: {
89
+ Button: {
90
+ primaryColor: '#ffffff',
91
+ defaultBorderColor: colorGlobal.gray20,
92
+ defaultColor: colorAlias.primaryOnTheme,
93
+ borderRadius: 12,
94
+ borderRadiusSM: 8,
95
+ borderRadiusLG: 12,
96
+ controlHeight: 48,
97
+ controlHeightSM: 32,
98
+ paddingInline: 16,
99
+ paddingInlineSM: 12,
100
+ fontWeight: 600,
101
+ },
102
+ Input: {
103
+ borderRadius: 8,
104
+ controlHeight: 48,
105
+ paddingInline: 12,
106
+ colorBorder: colorGlobal.gray20,
107
+ hoverBorderColor: colorAlias.outline,
108
+ activeBorderColor: colorAlias.brand,
109
+ },
110
+ Select: {
111
+ borderRadius: 8,
112
+ controlHeight: 48,
113
+ },
114
+ Checkbox: {
115
+ borderRadius: 4,
116
+ controlInteractiveSize: 20,
117
+ },
118
+ Radio: {
119
+ radioSize: 20,
120
+ dotSize: 8,
121
+ },
122
+ Switch: {
123
+ trackHeight: 32,
124
+ trackMinWidth: 52,
125
+ handleSize: 28,
126
+ colorPrimary: colorAlias.brand,
127
+ },
128
+ Modal: {
129
+ borderRadiusLG: 16,
130
+ paddingContentHorizontalLG: 16,
131
+ paddingMD: 16,
132
+ },
133
+ Card: {
134
+ borderRadius: 16,
135
+ paddingLG: 16,
136
+ },
137
+ },
138
+ };
139
+
140
+ export interface VETCProviderProps {
141
+ children: React.ReactNode;
142
+ }
143
+
144
+ export function VETCProvider({ children }: VETCProviderProps) {
145
+ return (
146
+ <ConfigProvider theme={{ ...vetcAntdTheme, algorithm: theme.defaultAlgorithm }}>
147
+ <AntApp>
148
+ {children}
149
+ </AntApp>
150
+ </ConfigProvider>
151
+ );
152
+ }
@@ -0,0 +1,427 @@
1
+ /**
2
+ * VETC Design System — CSS Custom Properties
3
+ * Single source of truth. Import once at app root.
4
+ * All components reference these vars — change token here, all components update.
5
+ */
6
+
7
+ @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;600;700;800;900&display=swap');
8
+
9
+ /* ════════════════════════════════════════════════════════════
10
+ 1. GLOBAL COLOR PALETTE (raw values from tokens_vetc.json)
11
+ ════════════════════════════════════════════════════════════ */
12
+ :root {
13
+ /* Green */
14
+ --vetc-green-02: #f2fef2;
15
+ --vetc-green-05: #dffbdf;
16
+ --vetc-green-10: #bff4bf;
17
+ --vetc-green-35: #39b669;
18
+ --vetc-green-40: #25a45e;
19
+ --vetc-green-45: #23965b;
20
+ --vetc-green-50: #208758;
21
+ --vetc-green-60: #1b6b4d;
22
+
23
+ /* Gray */
24
+ --vetc-gray-02: #f9fafa;
25
+ --vetc-gray-05: #f1f1f2;
26
+ --vetc-gray-10: #e3e4e6;
27
+ --vetc-gray-15: #d4d6d9;
28
+ --vetc-gray-20: #c6c8cc;
29
+ --vetc-gray-25: #b8babf;
30
+ --vetc-gray-30: #abacb2;
31
+ --vetc-gray-35: #9d9ea5;
32
+ --vetc-gray-40: #8f9098;
33
+ --vetc-gray-45: #82828a;
34
+ --vetc-gray-50: #74747d;
35
+ --vetc-gray-60: #5e5d64;
36
+ --vetc-gray-70: #47464b;
37
+ --vetc-gray-80: #2f2f32;
38
+ --vetc-gray-90: #181719;
39
+
40
+ /* Red */
41
+ --vetc-red-02: #fff6f9;
42
+ --vetc-red-05: #ffe7f0;
43
+ --vetc-red-50: #da2c39;
44
+ --vetc-red-60: #b4211f;
45
+
46
+ /* Orange */
47
+ --vetc-orange-02: #fffbf0;
48
+ --vetc-orange-30: #ff8c2f;
49
+
50
+ /* Yellow */
51
+ --vetc-yellow-02: #fff8e7;
52
+ --vetc-yellow-20: #f9c600;
53
+
54
+ /* Blue */
55
+ --vetc-blue-02: #f4fbff;
56
+ --vetc-blue-50: #007ac1;
57
+ --vetc-blue-70: #004179;
58
+
59
+ /* Base */
60
+ --vetc-white: #ffffff;
61
+ --vetc-black: #000000;
62
+
63
+ /* ════════════════════════════════════════════════════════════
64
+ 2. SEMANTIC / ALIAS TOKENS
65
+ ════════════════════════════════════════════════════════════ */
66
+
67
+ /* Brand */
68
+ --vetc-color-brand: var(--vetc-green-40);
69
+ --vetc-color-brand-hover: var(--vetc-green-35);
70
+ --vetc-color-brand-active: var(--vetc-green-50);
71
+ --vetc-color-brand-light: var(--vetc-green-05);
72
+ --vetc-color-on-brand: var(--vetc-white);
73
+
74
+ /* Semantic states */
75
+ --vetc-color-positive: var(--vetc-green-50);
76
+ --vetc-color-positive-light: var(--vetc-green-05);
77
+ --vetc-color-on-positive: var(--vetc-white);
78
+ --vetc-color-negative: var(--vetc-red-50);
79
+ --vetc-color-negative-light: var(--vetc-red-02);
80
+ --vetc-color-on-negative: var(--vetc-white);
81
+ --vetc-color-warning: var(--vetc-orange-30);
82
+ --vetc-color-warning-light: var(--vetc-orange-02);
83
+ --vetc-color-on-warning: var(--vetc-white);
84
+ --vetc-color-info: var(--vetc-blue-50);
85
+ --vetc-color-info-light: var(--vetc-blue-02);
86
+ --vetc-color-on-info: var(--vetc-white);
87
+
88
+ /* Text */
89
+ --vetc-color-text-primary: var(--vetc-gray-90);
90
+ --vetc-color-text-secondary: var(--vetc-gray-60);
91
+ --vetc-color-text-tertiary: var(--vetc-gray-50);
92
+ --vetc-color-text-disabled: var(--vetc-gray-30);
93
+ --vetc-color-text-on-brand: var(--vetc-white);
94
+ --vetc-color-text-on-inverse: var(--vetc-white);
95
+ --vetc-color-text-placeholder: var(--vetc-gray-50);
96
+ --vetc-color-text-error: var(--vetc-red-50);
97
+
98
+ /* Background */
99
+ --vetc-color-bg: var(--vetc-white);
100
+ --vetc-color-bg-variant: var(--vetc-gray-05);
101
+ --vetc-color-bg-elevated: var(--vetc-white);
102
+ --vetc-color-bg-inverse: var(--vetc-gray-90);
103
+ --vetc-color-bg-disabled: var(--vetc-gray-10);
104
+ --vetc-color-bg-hover: var(--vetc-gray-05);
105
+ --vetc-color-bg-pressed: var(--vetc-gray-10);
106
+
107
+ /* Border / Outline */
108
+ --vetc-color-border: var(--vetc-gray-20);
109
+ --vetc-color-border-variant: var(--vetc-gray-10);
110
+ --vetc-color-border-focus: var(--vetc-green-40);
111
+ --vetc-color-border-error: var(--vetc-red-50);
112
+ --vetc-color-border-disabled: var(--vetc-gray-20);
113
+
114
+ /* Overlay */
115
+ --vetc-color-overlay: rgba(0, 0, 0, 0.4);
116
+ --vetc-color-overlay-light: rgba(0, 0, 0, 0.16);
117
+ --vetc-color-skeleton: rgba(0, 0, 0, 0.08);
118
+
119
+ /* Icon */
120
+ --vetc-color-icon-default: var(--vetc-gray-60);
121
+ --vetc-color-icon-muted: var(--vetc-gray-50);
122
+ --vetc-color-icon-disabled: var(--vetc-gray-30);
123
+
124
+ /* ════════════════════════════════════════════════════════════
125
+ 3. TYPOGRAPHY
126
+ ════════════════════════════════════════════════════════════ */
127
+
128
+ --vetc-font-family: 'Roboto', system-ui, -apple-system, sans-serif;
129
+
130
+ /* Font weights — Figma: Regular=400, Medium=500, SemiBold=600, Bold=700 */
131
+ --vetc-font-weight-regular: 400;
132
+ --vetc-font-weight-medium: 500;
133
+ --vetc-font-weight-semibold: 600;
134
+ --vetc-font-weight-bold: 700;
135
+ --vetc-font-weight-black: 900;
136
+
137
+ /* Font sizes — Figma Typography scale */
138
+ --vetc-font-size-2xs: 10px;
139
+ --vetc-font-size-xs: 12px;
140
+ --vetc-font-size-sm: 14px;
141
+ --vetc-font-size-base: 16px;
142
+ --vetc-font-size-lg: 20px;
143
+ --vetc-font-size-xl: 24px;
144
+ --vetc-font-size-2xl: 28px;
145
+ --vetc-font-size-3xl: 32px;
146
+ --vetc-font-size-4xl: 36px;
147
+
148
+ /* Line heights — Figma: Display≈120%, Heading=140%, Body=150% */
149
+ --vetc-line-height-tight: 1.2;
150
+ --vetc-line-height-normal: 1.4;
151
+ --vetc-line-height-relaxed: 1.5;
152
+
153
+ /* Letter spacing */
154
+ --vetc-letter-spacing-none: 0;
155
+ --vetc-letter-spacing-sm: 0.1px;
156
+ --vetc-letter-spacing-md: 0.25px;
157
+ --vetc-letter-spacing-lg: 0.5px;
158
+
159
+ /* ════════════════════════════════════════════════════════════
160
+ 4. SPACING
161
+ ════════════════════════════════════════════════════════════ */
162
+
163
+ --vetc-space-0: 0px;
164
+ --vetc-space-2: 2px;
165
+ --vetc-space-4: 4px;
166
+ --vetc-space-6: 6px;
167
+ --vetc-space-8: 8px;
168
+ --vetc-space-10: 10px;
169
+ --vetc-space-12: 12px;
170
+ --vetc-space-14: 14px;
171
+ --vetc-space-16: 16px;
172
+ --vetc-space-20: 20px;
173
+ --vetc-space-24: 24px;
174
+ --vetc-space-32: 32px;
175
+ --vetc-space-40: 40px;
176
+ --vetc-space-48: 48px;
177
+ --vetc-space-56: 56px;
178
+ --vetc-space-64: 64px;
179
+
180
+ /* ════════════════════════════════════════════════════════════
181
+ 5. BORDER RADIUS
182
+ ════════════════════════════════════════════════════════════ */
183
+
184
+ --vetc-radius-xs: 4px;
185
+ --vetc-radius-sm: 6px;
186
+ --vetc-radius-md: 8px;
187
+ --vetc-radius-lg: 12px;
188
+ --vetc-radius-xl: 16px;
189
+ --vetc-radius-2xl: 24px;
190
+ --vetc-radius-pill: 1000px;
191
+
192
+ /* ════════════════════════════════════════════════════════════
193
+ 6. SHADOWS
194
+ ════════════════════════════════════════════════════════════ */
195
+
196
+ --vetc-shadow-none: none;
197
+ --vetc-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
198
+ --vetc-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.12);
199
+ --vetc-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.16);
200
+
201
+ /* ════════════════════════════════════════════════════════════
202
+ 7. COMPONENT-SPECIFIC TOKENS
203
+ Thay đổi component token ở đây — không cần sửa component code
204
+ ════════════════════════════════════════════════════════════ */
205
+
206
+ /* ── Button ─────────────────────────────── */
207
+ --vetc-btn-height-lg: 48px;
208
+ --vetc-btn-height-sm: 32px;
209
+ --vetc-btn-padding-x-lg: var(--vetc-space-16);
210
+ --vetc-btn-padding-x-sm: var(--vetc-space-12);
211
+ --vetc-btn-font-size-lg: var(--vetc-font-size-base);
212
+ --vetc-btn-font-size-sm: var(--vetc-font-size-sm);
213
+ --vetc-btn-font-weight: var(--vetc-font-weight-semibold);
214
+ --vetc-btn-radius-lg: var(--vetc-radius-lg);
215
+ --vetc-btn-radius-sm: var(--vetc-radius-md);
216
+ --vetc-btn-radius-pill: var(--vetc-radius-pill);
217
+ /* Primary */
218
+ --vetc-btn-primary-bg: var(--vetc-color-brand);
219
+ --vetc-btn-primary-bg-hover: var(--vetc-color-brand-hover);
220
+ --vetc-btn-primary-bg-active: var(--vetc-color-brand-active);
221
+ --vetc-btn-primary-text: var(--vetc-color-on-brand);
222
+ /* Secondary */
223
+ --vetc-btn-secondary-border: var(--vetc-color-border);
224
+ --vetc-btn-secondary-text: var(--vetc-color-text-primary);
225
+ /* Tertiary */
226
+ --vetc-btn-tertiary-text: var(--vetc-color-text-primary);
227
+ /* Danger */
228
+ --vetc-btn-danger-bg: var(--vetc-color-negative);
229
+ --vetc-btn-danger-text: var(--vetc-color-on-negative);
230
+ /* Disabled */
231
+ --vetc-btn-disabled-bg: var(--vetc-color-bg-disabled);
232
+ --vetc-btn-disabled-text: var(--vetc-color-text-disabled);
233
+ --vetc-btn-disabled-border: var(--vetc-color-border-disabled);
234
+
235
+ /* ── Input / TextField ──────────────────── */
236
+ --vetc-input-height: 48px;
237
+ --vetc-input-padding-x: var(--vetc-space-12);
238
+ --vetc-input-radius: var(--vetc-radius-md);
239
+ --vetc-input-font-size: var(--vetc-font-size-base);
240
+ --vetc-input-border: var(--vetc-color-border);
241
+ --vetc-input-border-focus: var(--vetc-color-border-focus);
242
+ --vetc-input-border-error: var(--vetc-color-border-error);
243
+ --vetc-input-border-disabled: var(--vetc-color-border-disabled);
244
+ --vetc-input-bg: var(--vetc-color-bg);
245
+ --vetc-input-bg-disabled: var(--vetc-color-bg-disabled);
246
+ --vetc-input-text: var(--vetc-color-text-primary);
247
+ --vetc-input-text-placeholder: var(--vetc-color-text-placeholder);
248
+ --vetc-input-text-disabled: var(--vetc-color-text-disabled);
249
+ /* Label above input */
250
+ --vetc-input-label-font-size: var(--vetc-font-size-sm);
251
+ --vetc-input-label-font-weight: var(--vetc-font-weight-semibold);
252
+ --vetc-input-label-color: var(--vetc-color-text-primary);
253
+ /* Helper text below input */
254
+ --vetc-input-helper-font-size: var(--vetc-font-size-xs);
255
+ --vetc-input-helper-color: var(--vetc-color-text-secondary);
256
+ --vetc-input-helper-color-error: var(--vetc-color-text-error);
257
+ --vetc-input-gap: var(--vetc-space-4);
258
+
259
+ /* ── Chip / Tag ─────────────────────────── */
260
+ --vetc-chip-height-md: 32px;
261
+ --vetc-chip-height-sm: 24px;
262
+ --vetc-chip-padding-x-md: var(--vetc-space-12);
263
+ --vetc-chip-padding-x-sm: var(--vetc-space-8);
264
+ --vetc-chip-font-size-md: var(--vetc-font-size-sm);
265
+ --vetc-chip-font-size-sm: var(--vetc-font-size-xs);
266
+ --vetc-chip-font-weight: var(--vetc-font-weight-semibold);
267
+ --vetc-chip-radius-pill: var(--vetc-radius-pill);
268
+ --vetc-chip-radius-rounded: var(--vetc-radius-md);
269
+ /* Default */
270
+ --vetc-chip-default-bg: var(--vetc-gray-05);
271
+ --vetc-chip-default-border: var(--vetc-gray-20);
272
+ --vetc-chip-default-text: var(--vetc-gray-90);
273
+ --vetc-chip-default-filled-bg: var(--vetc-gray-50);
274
+ /* Brand */
275
+ --vetc-chip-brand-bg: var(--vetc-green-05);
276
+ --vetc-chip-brand-border: var(--vetc-green-40);
277
+ --vetc-chip-brand-text: var(--vetc-green-60);
278
+ --vetc-chip-brand-filled-bg: var(--vetc-green-40);
279
+ /* Positive */
280
+ --vetc-chip-positive-bg: var(--vetc-green-05);
281
+ --vetc-chip-positive-border: var(--vetc-green-50);
282
+ --vetc-chip-positive-text: var(--vetc-green-60);
283
+ --vetc-chip-positive-filled-bg: var(--vetc-green-50);
284
+ /* Negative */
285
+ --vetc-chip-negative-bg: var(--vetc-red-02);
286
+ --vetc-chip-negative-border: var(--vetc-red-50);
287
+ --vetc-chip-negative-text: var(--vetc-red-60);
288
+ --vetc-chip-negative-filled-bg: var(--vetc-red-50);
289
+ /* Warning */
290
+ --vetc-chip-warning-bg: var(--vetc-orange-02);
291
+ --vetc-chip-warning-border: var(--vetc-orange-30);
292
+ --vetc-chip-warning-text: #934913;
293
+ --vetc-chip-warning-filled-bg: var(--vetc-orange-30);
294
+ /* Info */
295
+ --vetc-chip-info-bg: var(--vetc-blue-02);
296
+ --vetc-chip-info-border: var(--vetc-blue-50);
297
+ --vetc-chip-info-text: var(--vetc-blue-70);
298
+ --vetc-chip-info-filled-bg: var(--vetc-blue-50);
299
+
300
+ /* ── Card ───────────────────────────────── */
301
+ --vetc-card-radius: var(--vetc-radius-xl);
302
+ --vetc-card-padding: var(--vetc-space-16);
303
+ --vetc-card-border: var(--vetc-color-border-variant);
304
+ --vetc-card-bg: var(--vetc-color-bg);
305
+ --vetc-card-shadow-raised: var(--vetc-shadow-md);
306
+
307
+ /* ── List Item ──────────────────────────── */
308
+ --vetc-list-item-height: 56px;
309
+ --vetc-list-item-padding-x: var(--vetc-space-16);
310
+ --vetc-list-item-gap: var(--vetc-space-12);
311
+ --vetc-list-item-bg: var(--vetc-color-bg);
312
+ --vetc-list-item-bg-hover: var(--vetc-color-bg-variant);
313
+ --vetc-list-item-border: var(--vetc-color-border-variant);
314
+ --vetc-list-item-title-size: var(--vetc-font-size-base);
315
+ --vetc-list-item-title-weight: var(--vetc-font-weight-regular);
316
+ --vetc-list-item-title-color: var(--vetc-color-text-primary);
317
+ --vetc-list-item-desc-size: var(--vetc-font-size-sm);
318
+ --vetc-list-item-desc-color: var(--vetc-color-text-secondary);
319
+ --vetc-list-item-icon-color: var(--vetc-color-icon-default);
320
+
321
+ /* ── Navigation Bar (Top) ───────────────── */
322
+ --vetc-nav-height: 56px;
323
+ --vetc-nav-bg: var(--vetc-color-bg);
324
+ --vetc-nav-border: var(--vetc-color-border-variant);
325
+ --vetc-nav-padding-x: var(--vetc-space-8);
326
+ --vetc-nav-title-size: var(--vetc-font-size-lg);
327
+ --vetc-nav-title-weight: var(--vetc-font-weight-semibold);
328
+ --vetc-nav-title-color: var(--vetc-color-text-primary);
329
+ --vetc-nav-icon-color: var(--vetc-color-text-primary);
330
+ --vetc-nav-icon-btn-size: 32px;
331
+
332
+ /* ── Tab Bar (Bottom Nav) ───────────────── */
333
+ --vetc-tab-height: 56px;
334
+ --vetc-tab-bg: var(--vetc-color-bg);
335
+ --vetc-tab-border: var(--vetc-color-border-variant);
336
+ --vetc-tab-label-size: var(--vetc-font-size-xs);
337
+ --vetc-tab-label-weight: var(--vetc-font-weight-semibold);
338
+ --vetc-tab-color-active: var(--vetc-color-brand);
339
+ --vetc-tab-color-inactive: var(--vetc-color-text-tertiary);
340
+ --vetc-tab-color-disabled: var(--vetc-color-text-disabled);
341
+ --vetc-tab-badge-bg: var(--vetc-color-negative);
342
+ --vetc-tab-badge-text: var(--vetc-white);
343
+ --vetc-tab-badge-size: 16px;
344
+ --vetc-tab-badge-font-size: var(--vetc-font-size-2xs);
345
+
346
+ /* ── Bottom Sheet ───────────────────────── */
347
+ --vetc-sheet-bg: var(--vetc-color-bg);
348
+ --vetc-sheet-radius: var(--vetc-radius-xl);
349
+ --vetc-sheet-padding: var(--vetc-space-16);
350
+ --vetc-sheet-handle-width: 32px;
351
+ --vetc-sheet-handle-height: 4px;
352
+ --vetc-sheet-handle-color: var(--vetc-gray-20);
353
+ --vetc-sheet-overlay: var(--vetc-color-overlay);
354
+ --vetc-sheet-title-size: var(--vetc-font-size-base);
355
+ --vetc-sheet-title-weight: var(--vetc-font-weight-semibold);
356
+ --vetc-sheet-title-color: var(--vetc-color-text-primary);
357
+ --vetc-sheet-border: var(--vetc-color-border-variant);
358
+
359
+ /* ── Modal / Dialog ─────────────────────── */
360
+ --vetc-modal-width: 344px;
361
+ --vetc-modal-radius: var(--vetc-radius-xl);
362
+ --vetc-modal-padding: var(--vetc-space-16);
363
+ --vetc-modal-overlay: var(--vetc-color-overlay);
364
+ --vetc-modal-bg: var(--vetc-color-bg);
365
+
366
+ /* ── Button Group ───────────────────────── */
367
+ --vetc-btn-group-padding: var(--vetc-space-16);
368
+ --vetc-btn-group-gap: var(--vetc-space-8);
369
+ --vetc-btn-group-border-color: var(--vetc-color-border-variant);
370
+ --vetc-btn-group-bg: var(--vetc-color-bg);
371
+
372
+ --vetc-dialog-width: 344px;
373
+ --vetc-dialog-radius: var(--vetc-radius-xl);
374
+ --vetc-dialog-padding: var(--vetc-space-16);
375
+ --vetc-dialog-overlay: var(--vetc-color-overlay);
376
+ --vetc-dialog-bg: var(--vetc-color-bg);
377
+ --vetc-dialog-image-height: 160px;
378
+ --vetc-dialog-btn-gap: var(--vetc-space-8);
379
+ --vetc-dialog-title-size: var(--vetc-font-size-base);
380
+ --vetc-dialog-title-weight: var(--vetc-font-weight-semibold);
381
+ --vetc-dialog-desc-size: var(--vetc-font-size-sm);
382
+ --vetc-dialog-desc-color: var(--vetc-color-text-secondary);
383
+
384
+ /* ── Divider ────────────────────────────── */
385
+ --vetc-divider-color: var(--vetc-color-border-variant);
386
+ --vetc-divider-label-size: var(--vetc-font-size-sm);
387
+ --vetc-divider-label-color: var(--vetc-color-text-secondary);
388
+ --vetc-divider-margin-h: var(--vetc-space-12);
389
+ --vetc-divider-margin-v: var(--vetc-space-8);
390
+
391
+ /* ── Avatar ─────────────────────────────── */
392
+ --vetc-avatar-bg-default: var(--vetc-color-brand);
393
+ --vetc-avatar-text-color: var(--vetc-white);
394
+ --vetc-avatar-size-xl: 56px;
395
+ --vetc-avatar-size-lg: 48px;
396
+ --vetc-avatar-size-md: 40px;
397
+ --vetc-avatar-size-sm: 32px;
398
+ --vetc-avatar-size-xs: 24px;
399
+
400
+ /* ── Switch ─────────────────────────────── */
401
+ --vetc-switch-width: 52px;
402
+ --vetc-switch-height: 32px;
403
+ --vetc-switch-thumb-size: 28px;
404
+ --vetc-switch-on-bg: var(--vetc-color-brand);
405
+ --vetc-switch-off-bg: var(--vetc-gray-30);
406
+
407
+ /* ── Loading / Spinner ──────────────────── */
408
+ --vetc-spinner-color: var(--vetc-color-brand);
409
+ --vetc-spinner-size-sm: 16px;
410
+ --vetc-spinner-size-md: 24px;
411
+ --vetc-spinner-size-lg: 40px;
412
+
413
+ /* ── Toast ──────────────────────────────── */
414
+ --vetc-toast-radius: var(--vetc-radius-md);
415
+
416
+ /* ── Transitions ────────────────────────── */
417
+ --vetc-transition-fast: 150ms ease;
418
+ --vetc-transition-base: 250ms ease;
419
+ --vetc-transition-slow: 350ms ease;
420
+ }
421
+
422
+ /* ════════════════════════════════════════════════════════════
423
+ 8. BASE RESET
424
+ ════════════════════════════════════════════════════════════ */
425
+ *, *::before, *::after {
426
+ box-sizing: border-box;
427
+ }