@vellira-ui/tokens 2.19.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +146 -0
- package/dist/css/tokens.css +1453 -0
- package/dist/dark/components/button.d.ts +59 -0
- package/dist/dark/components/button.d.ts.map +1 -0
- package/dist/dark/components/button.js +26 -0
- package/dist/dark/components/checkbox.d.ts +42 -0
- package/dist/dark/components/checkbox.d.ts.map +1 -0
- package/dist/dark/components/checkbox.js +34 -0
- package/dist/dark/components/dropdown.d.ts +75 -0
- package/dist/dark/components/dropdown.d.ts.map +1 -0
- package/dist/dark/components/dropdown.js +77 -0
- package/dist/dark/components/formField.d.ts +34 -0
- package/dist/dark/components/formField.d.ts.map +1 -0
- package/dist/dark/components/formField.js +35 -0
- package/dist/dark/components/index.d.ts +12 -0
- package/dist/dark/components/index.d.ts.map +1 -0
- package/dist/dark/components/index.js +11 -0
- package/dist/dark/components/input.d.ts +36 -0
- package/dist/dark/components/input.d.ts.map +1 -0
- package/dist/dark/components/input.js +40 -0
- package/dist/dark/components/menu.d.ts +50 -0
- package/dist/dark/components/menu.d.ts.map +1 -0
- package/dist/dark/components/menu.js +47 -0
- package/dist/dark/components/modal.d.ts +31 -0
- package/dist/dark/components/modal.d.ts.map +1 -0
- package/dist/dark/components/modal.js +34 -0
- package/dist/dark/components/radio.d.ts +38 -0
- package/dist/dark/components/radio.d.ts.map +1 -0
- package/dist/dark/components/radio.js +32 -0
- package/dist/dark/components/select.d.ts +63 -0
- package/dist/dark/components/select.d.ts.map +1 -0
- package/dist/dark/components/select.js +64 -0
- package/dist/dark/components/tabs.d.ts +67 -0
- package/dist/dark/components/tabs.d.ts.map +1 -0
- package/dist/dark/components/tabs.js +72 -0
- package/dist/dark/components/tooltip.d.ts +11 -0
- package/dist/dark/components/tooltip.d.ts.map +1 -0
- package/dist/dark/components/tooltip.js +13 -0
- package/dist/dark/semantic/action.d.ts +72 -0
- package/dist/dark/semantic/action.d.ts.map +1 -0
- package/dist/dark/semantic/action.js +73 -0
- package/dist/dark/semantic/border.d.ts +9 -0
- package/dist/dark/semantic/border.d.ts.map +1 -0
- package/dist/dark/semantic/border.js +9 -0
- package/dist/dark/semantic/control.d.ts +30 -0
- package/dist/dark/semantic/control.d.ts.map +1 -0
- package/dist/dark/semantic/control.js +32 -0
- package/dist/dark/semantic/divider.d.ts +6 -0
- package/dist/dark/semantic/divider.d.ts.map +1 -0
- package/dist/dark/semantic/divider.js +6 -0
- package/dist/dark/semantic/focus.d.ts +5 -0
- package/dist/dark/semantic/focus.d.ts.map +1 -0
- package/dist/dark/semantic/focus.js +5 -0
- package/dist/dark/semantic/index.d.ts +11 -0
- package/dist/dark/semantic/index.d.ts.map +1 -0
- package/dist/dark/semantic/index.js +10 -0
- package/dist/dark/semantic/navigation.d.ts +34 -0
- package/dist/dark/semantic/navigation.d.ts.map +1 -0
- package/dist/dark/semantic/navigation.js +36 -0
- package/dist/dark/semantic/skeleton.d.ts +5 -0
- package/dist/dark/semantic/skeleton.d.ts.map +1 -0
- package/dist/dark/semantic/skeleton.js +5 -0
- package/dist/dark/semantic/status.d.ts +27 -0
- package/dist/dark/semantic/status.d.ts.map +1 -0
- package/dist/dark/semantic/status.js +27 -0
- package/dist/dark/semantic/surface.d.ts +10 -0
- package/dist/dark/semantic/surface.d.ts.map +1 -0
- package/dist/dark/semantic/surface.js +10 -0
- package/dist/dark/semantic/text.d.ts +12 -0
- package/dist/dark/semantic/text.d.ts.map +1 -0
- package/dist/dark/semantic/text.js +12 -0
- package/dist/dark/theme.d.ts +228 -0
- package/dist/dark/theme.d.ts.map +1 -0
- package/dist/dark/theme.js +17 -0
- package/dist/generated/color-preview.d.ts +120 -0
- package/dist/generated/color-preview.d.ts.map +1 -0
- package/dist/generated/color-preview.js +119 -0
- package/dist/generated/token-types.d.ts +38 -0
- package/dist/generated/token-types.d.ts.map +1 -0
- package/dist/generated/token-types.js +2124 -0
- package/dist/highContrast/components/button.d.ts +59 -0
- package/dist/highContrast/components/button.d.ts.map +1 -0
- package/dist/highContrast/components/button.js +26 -0
- package/dist/highContrast/components/checkbox.d.ts +42 -0
- package/dist/highContrast/components/checkbox.d.ts.map +1 -0
- package/dist/highContrast/components/checkbox.js +31 -0
- package/dist/highContrast/components/dropdown.d.ts +75 -0
- package/dist/highContrast/components/dropdown.d.ts.map +1 -0
- package/dist/highContrast/components/dropdown.js +77 -0
- package/dist/highContrast/components/formField.d.ts +34 -0
- package/dist/highContrast/components/formField.d.ts.map +1 -0
- package/dist/highContrast/components/formField.js +35 -0
- package/dist/highContrast/components/index.d.ts +12 -0
- package/dist/highContrast/components/index.d.ts.map +1 -0
- package/dist/highContrast/components/index.js +11 -0
- package/dist/highContrast/components/input.d.ts +36 -0
- package/dist/highContrast/components/input.d.ts.map +1 -0
- package/dist/highContrast/components/input.js +41 -0
- package/dist/highContrast/components/menu.d.ts +50 -0
- package/dist/highContrast/components/menu.d.ts.map +1 -0
- package/dist/highContrast/components/menu.js +48 -0
- package/dist/highContrast/components/modal.d.ts +31 -0
- package/dist/highContrast/components/modal.d.ts.map +1 -0
- package/dist/highContrast/components/modal.js +34 -0
- package/dist/highContrast/components/radio.d.ts +38 -0
- package/dist/highContrast/components/radio.d.ts.map +1 -0
- package/dist/highContrast/components/radio.js +32 -0
- package/dist/highContrast/components/select.d.ts +63 -0
- package/dist/highContrast/components/select.d.ts.map +1 -0
- package/dist/highContrast/components/select.js +65 -0
- package/dist/highContrast/components/tabs.d.ts +67 -0
- package/dist/highContrast/components/tabs.d.ts.map +1 -0
- package/dist/highContrast/components/tabs.js +70 -0
- package/dist/highContrast/components/tooltip.d.ts +11 -0
- package/dist/highContrast/components/tooltip.d.ts.map +1 -0
- package/dist/highContrast/components/tooltip.js +13 -0
- package/dist/highContrast/semantic/action.d.ts +72 -0
- package/dist/highContrast/semantic/action.d.ts.map +1 -0
- package/dist/highContrast/semantic/action.js +73 -0
- package/dist/highContrast/semantic/border.d.ts +10 -0
- package/dist/highContrast/semantic/border.d.ts.map +1 -0
- package/dist/highContrast/semantic/border.js +10 -0
- package/dist/highContrast/semantic/control.d.ts +40 -0
- package/dist/highContrast/semantic/control.d.ts.map +1 -0
- package/dist/highContrast/semantic/control.js +41 -0
- package/dist/highContrast/semantic/divider.d.ts +6 -0
- package/dist/highContrast/semantic/divider.d.ts.map +1 -0
- package/dist/highContrast/semantic/divider.js +6 -0
- package/dist/highContrast/semantic/focus.d.ts +5 -0
- package/dist/highContrast/semantic/focus.d.ts.map +1 -0
- package/dist/highContrast/semantic/focus.js +5 -0
- package/dist/highContrast/semantic/index.d.ts +11 -0
- package/dist/highContrast/semantic/index.d.ts.map +1 -0
- package/dist/highContrast/semantic/index.js +10 -0
- package/dist/highContrast/semantic/navigation.d.ts +45 -0
- package/dist/highContrast/semantic/navigation.d.ts.map +1 -0
- package/dist/highContrast/semantic/navigation.js +47 -0
- package/dist/highContrast/semantic/skeleton.d.ts +5 -0
- package/dist/highContrast/semantic/skeleton.d.ts.map +1 -0
- package/dist/highContrast/semantic/skeleton.js +5 -0
- package/dist/highContrast/semantic/status.d.ts +27 -0
- package/dist/highContrast/semantic/status.d.ts.map +1 -0
- package/dist/highContrast/semantic/status.js +27 -0
- package/dist/highContrast/semantic/surface.d.ts +10 -0
- package/dist/highContrast/semantic/surface.d.ts.map +1 -0
- package/dist/highContrast/semantic/surface.js +10 -0
- package/dist/highContrast/semantic/text.d.ts +11 -0
- package/dist/highContrast/semantic/text.d.ts.map +1 -0
- package/dist/highContrast/semantic/text.js +12 -0
- package/dist/highContrast/theme.d.ts +228 -0
- package/dist/highContrast/theme.d.ts.map +1 -0
- package/dist/highContrast/theme.js +17 -0
- package/dist/index.d.ts +97 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/light/components/button.d.ts +59 -0
- package/dist/light/components/button.d.ts.map +1 -0
- package/dist/light/components/button.js +26 -0
- package/dist/light/components/checkbox.d.ts +42 -0
- package/dist/light/components/checkbox.d.ts.map +1 -0
- package/dist/light/components/checkbox.js +31 -0
- package/dist/light/components/dropdown.d.ts +75 -0
- package/dist/light/components/dropdown.d.ts.map +1 -0
- package/dist/light/components/dropdown.js +77 -0
- package/dist/light/components/formField.d.ts +34 -0
- package/dist/light/components/formField.d.ts.map +1 -0
- package/dist/light/components/formField.js +35 -0
- package/dist/light/components/index.d.ts +12 -0
- package/dist/light/components/index.d.ts.map +1 -0
- package/dist/light/components/index.js +11 -0
- package/dist/light/components/input.d.ts +36 -0
- package/dist/light/components/input.d.ts.map +1 -0
- package/dist/light/components/input.js +41 -0
- package/dist/light/components/menu.d.ts +50 -0
- package/dist/light/components/menu.d.ts.map +1 -0
- package/dist/light/components/menu.js +48 -0
- package/dist/light/components/modal.d.ts +31 -0
- package/dist/light/components/modal.d.ts.map +1 -0
- package/dist/light/components/modal.js +34 -0
- package/dist/light/components/radio.d.ts +38 -0
- package/dist/light/components/radio.d.ts.map +1 -0
- package/dist/light/components/radio.js +32 -0
- package/dist/light/components/select.d.ts +63 -0
- package/dist/light/components/select.d.ts.map +1 -0
- package/dist/light/components/select.js +61 -0
- package/dist/light/components/tabs.d.ts +67 -0
- package/dist/light/components/tabs.d.ts.map +1 -0
- package/dist/light/components/tabs.js +72 -0
- package/dist/light/components/tooltip.d.ts +11 -0
- package/dist/light/components/tooltip.d.ts.map +1 -0
- package/dist/light/components/tooltip.js +13 -0
- package/dist/light/semantic/action.d.ts +72 -0
- package/dist/light/semantic/action.d.ts.map +1 -0
- package/dist/light/semantic/action.js +73 -0
- package/dist/light/semantic/border.d.ts +9 -0
- package/dist/light/semantic/border.d.ts.map +1 -0
- package/dist/light/semantic/border.js +9 -0
- package/dist/light/semantic/control.d.ts +30 -0
- package/dist/light/semantic/control.d.ts.map +1 -0
- package/dist/light/semantic/control.js +31 -0
- package/dist/light/semantic/divider.d.ts +6 -0
- package/dist/light/semantic/divider.d.ts.map +1 -0
- package/dist/light/semantic/divider.js +6 -0
- package/dist/light/semantic/focus.d.ts +5 -0
- package/dist/light/semantic/focus.d.ts.map +1 -0
- package/dist/light/semantic/focus.js +5 -0
- package/dist/light/semantic/index.d.ts +11 -0
- package/dist/light/semantic/index.d.ts.map +1 -0
- package/dist/light/semantic/index.js +10 -0
- package/dist/light/semantic/navigation.d.ts +30 -0
- package/dist/light/semantic/navigation.d.ts.map +1 -0
- package/dist/light/semantic/navigation.js +31 -0
- package/dist/light/semantic/skeleton.d.ts +5 -0
- package/dist/light/semantic/skeleton.d.ts.map +1 -0
- package/dist/light/semantic/skeleton.js +5 -0
- package/dist/light/semantic/status.d.ts +27 -0
- package/dist/light/semantic/status.d.ts.map +1 -0
- package/dist/light/semantic/status.js +27 -0
- package/dist/light/semantic/surface.d.ts +10 -0
- package/dist/light/semantic/surface.d.ts.map +1 -0
- package/dist/light/semantic/surface.js +10 -0
- package/dist/light/semantic/text.d.ts +11 -0
- package/dist/light/semantic/text.d.ts.map +1 -0
- package/dist/light/semantic/text.js +12 -0
- package/dist/light/theme.d.ts +228 -0
- package/dist/light/theme.d.ts.map +1 -0
- package/dist/light/theme.js +17 -0
- package/dist/primitives/colors.d.ts +142 -0
- package/dist/primitives/colors.d.ts.map +1 -0
- package/dist/primitives/colors.js +141 -0
- package/dist/primitives/selectionControl.d.ts +1 -0
- package/dist/primitives/selectionControl.d.ts.map +1 -0
- package/dist/primitives/selectionControl.js +1 -0
- package/dist/semantic/index.d.ts +3 -0
- package/dist/semantic/index.d.ts.map +1 -0
- package/dist/semantic/index.js +2 -0
- package/dist/semantic/overlay.d.ts +5 -0
- package/dist/semantic/overlay.d.ts.map +1 -0
- package/dist/semantic/overlay.js +4 -0
- package/dist/semantic/selection.d.ts +5 -0
- package/dist/semantic/selection.d.ts.map +1 -0
- package/dist/semantic/selection.js +5 -0
- package/dist/tokens/index.d.ts +6 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/index.js +5 -0
- package/dist/tokens/radius.d.ts +8 -0
- package/dist/tokens/radius.d.ts.map +1 -0
- package/dist/tokens/radius.js +7 -0
- package/dist/tokens/shadows.d.ts +27 -0
- package/dist/tokens/shadows.d.ts.map +1 -0
- package/dist/tokens/shadows.js +27 -0
- package/dist/tokens/spacing.d.ts +14 -0
- package/dist/tokens/spacing.d.ts.map +1 -0
- package/dist/tokens/spacing.js +13 -0
- package/dist/tokens/typography.d.ts +30 -0
- package/dist/tokens/typography.d.ts.map +1 -0
- package/dist/tokens/typography.js +29 -0
- package/dist/tokens/zIndex.d.ts +9 -0
- package/dist/tokens/zIndex.d.ts.map +1 -0
- package/dist/tokens/zIndex.js +8 -0
- package/package.json +46 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brand palette used across both Light and Dark themes.
|
|
3
|
+
*
|
|
4
|
+
* 25–250 → Light surfaces
|
|
5
|
+
* 300–950 → Dark surfaces & text
|
|
6
|
+
*/
|
|
7
|
+
export const colors = {
|
|
8
|
+
primary: {
|
|
9
|
+
50: '#EEF0FF',
|
|
10
|
+
100: '#DDD6FE',
|
|
11
|
+
200: '#C4B5FD',
|
|
12
|
+
300: '#A78BFA',
|
|
13
|
+
400: '#8B7CF6',
|
|
14
|
+
500: '#7C6CF2',
|
|
15
|
+
600: '#6D5BD0',
|
|
16
|
+
700: '#5B4BEA',
|
|
17
|
+
800: '#4936D9',
|
|
18
|
+
900: '#4338CA',
|
|
19
|
+
950: '#3B2BBF',
|
|
20
|
+
},
|
|
21
|
+
secondary: {
|
|
22
|
+
50: '#F0F1FF',
|
|
23
|
+
100: '#D8DAFF',
|
|
24
|
+
200: '#B8BBF2',
|
|
25
|
+
300: '#9EA2EA',
|
|
26
|
+
400: '#7B80D8',
|
|
27
|
+
500: '#4C4F8F',
|
|
28
|
+
600: '#5F64B8',
|
|
29
|
+
700: '#555AA8',
|
|
30
|
+
800: '#494F95',
|
|
31
|
+
900: '#42477C',
|
|
32
|
+
950: '#373B68',
|
|
33
|
+
},
|
|
34
|
+
vellira: {
|
|
35
|
+
25: '#FDFCFF',
|
|
36
|
+
50: '#FAF8FF',
|
|
37
|
+
100: '#F4F1FB',
|
|
38
|
+
150: '#EEE8FA',
|
|
39
|
+
200: '#E8E2F3',
|
|
40
|
+
250: '#D8D3E8',
|
|
41
|
+
300: '#A8A1BA',
|
|
42
|
+
400: '#746F86',
|
|
43
|
+
500: '#413957',
|
|
44
|
+
600: '#3A334D',
|
|
45
|
+
700: '#312C44',
|
|
46
|
+
800: '#29253A',
|
|
47
|
+
900: '#211E2E',
|
|
48
|
+
950: '#1B1726',
|
|
49
|
+
},
|
|
50
|
+
info: {
|
|
51
|
+
50: '#F0F9FF',
|
|
52
|
+
100: '#EFF6FF',
|
|
53
|
+
200: '#DBEAFE',
|
|
54
|
+
300: '#93C5FD',
|
|
55
|
+
400: '#4DA3FF',
|
|
56
|
+
500: '#7BBCFF',
|
|
57
|
+
600: '#3399FF',
|
|
58
|
+
700: '#0EA5E9',
|
|
59
|
+
800: '#0284C7',
|
|
60
|
+
900: '#002B55',
|
|
61
|
+
950: '#102A43',
|
|
62
|
+
},
|
|
63
|
+
success: {
|
|
64
|
+
50: '#ECFDF5',
|
|
65
|
+
100: '#D1FAE5',
|
|
66
|
+
200: '#A7F3D0',
|
|
67
|
+
300: '#9AFFB8',
|
|
68
|
+
400: '#4ADE80',
|
|
69
|
+
500: '#00B956',
|
|
70
|
+
600: '#22C55E',
|
|
71
|
+
700: '#008F6A',
|
|
72
|
+
800: '#00785A',
|
|
73
|
+
900: '#166534',
|
|
74
|
+
950: '#0F2F26',
|
|
75
|
+
},
|
|
76
|
+
error: {
|
|
77
|
+
50: '#FEF2F2',
|
|
78
|
+
100: '#FFF1F2',
|
|
79
|
+
200: '#FDA4AF',
|
|
80
|
+
300: '#FF8A8A',
|
|
81
|
+
400: '#FB7185',
|
|
82
|
+
500: '#F43F5E',
|
|
83
|
+
600: '#E11D48',
|
|
84
|
+
700: '#DC2626',
|
|
85
|
+
800: '#B91C1C',
|
|
86
|
+
900: '#9F1239',
|
|
87
|
+
950: '#4C0519',
|
|
88
|
+
},
|
|
89
|
+
warning: {
|
|
90
|
+
50: '#FFF7ED',
|
|
91
|
+
100: '#FFFBEB',
|
|
92
|
+
200: '#FEF3C7',
|
|
93
|
+
300: '#FCD34D',
|
|
94
|
+
400: '#FFFF99',
|
|
95
|
+
500: '#FFFF00',
|
|
96
|
+
600: '#FFEA00',
|
|
97
|
+
700: '#C05621',
|
|
98
|
+
800: '#A74308',
|
|
99
|
+
900: '#92400E',
|
|
100
|
+
950: '#3A2412',
|
|
101
|
+
},
|
|
102
|
+
gray: {
|
|
103
|
+
50: '#F9FAFB',
|
|
104
|
+
100: '#F3F4F6',
|
|
105
|
+
200: '#E5E7EB',
|
|
106
|
+
300: '#D1D5DB',
|
|
107
|
+
400: '#9CA3AF',
|
|
108
|
+
500: '#6B7280',
|
|
109
|
+
600: '#4B5563',
|
|
110
|
+
700: '#374151',
|
|
111
|
+
800: '#1F2937',
|
|
112
|
+
900: '#111827',
|
|
113
|
+
950: '#0B1120',
|
|
114
|
+
},
|
|
115
|
+
grayBlue: {
|
|
116
|
+
50: '#F7FBFF',
|
|
117
|
+
100: '#EDF5FF',
|
|
118
|
+
200: '#D8E4F2',
|
|
119
|
+
300: '#C4D0DD',
|
|
120
|
+
400: '#98A8BD',
|
|
121
|
+
500: '#6B7F99',
|
|
122
|
+
600: '#4B5F7A',
|
|
123
|
+
700: '#33435F',
|
|
124
|
+
800: '#1E2A44',
|
|
125
|
+
900: '#111C2E',
|
|
126
|
+
950: '#0B1120',
|
|
127
|
+
},
|
|
128
|
+
mono: {
|
|
129
|
+
50: '#FFFFFF',
|
|
130
|
+
100: '#F9FAFB',
|
|
131
|
+
200: '#F3F4F6',
|
|
132
|
+
300: '#E5E7EB',
|
|
133
|
+
400: '#D1D5DB',
|
|
134
|
+
500: '#9CA3AF',
|
|
135
|
+
600: '#737373',
|
|
136
|
+
700: '#4B5563',
|
|
137
|
+
800: '#1A1A1A',
|
|
138
|
+
900: '#0F0F0F',
|
|
139
|
+
950: '#000000',
|
|
140
|
+
},
|
|
141
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=selectionControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectionControl.d.ts","sourceRoot":"","sources":["../../src/primitives/selectionControl.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/semantic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/semantic/overlay.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;CAGV,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../src/semantic/selection.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;CAGZ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tokens/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radius.d.ts","sourceRoot":"","sources":["../../src/tokens/radius.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;CAMT,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const shadows: {
|
|
2
|
+
readonly sm: {
|
|
3
|
+
readonly x: 0;
|
|
4
|
+
readonly y: 1;
|
|
5
|
+
readonly blur: 3;
|
|
6
|
+
readonly color: "#000000";
|
|
7
|
+
readonly opacity: 0.04;
|
|
8
|
+
readonly elevation: 1;
|
|
9
|
+
};
|
|
10
|
+
readonly md: {
|
|
11
|
+
readonly x: 0;
|
|
12
|
+
readonly y: 6;
|
|
13
|
+
readonly blur: 16;
|
|
14
|
+
readonly color: "#000000";
|
|
15
|
+
readonly opacity: 0.08;
|
|
16
|
+
readonly elevation: 4;
|
|
17
|
+
};
|
|
18
|
+
readonly lg: {
|
|
19
|
+
readonly x: 0;
|
|
20
|
+
readonly y: 12;
|
|
21
|
+
readonly blur: 32;
|
|
22
|
+
readonly color: "#000000";
|
|
23
|
+
readonly opacity: 0.1;
|
|
24
|
+
readonly elevation: 8;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=shadows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadows.d.ts","sourceRoot":"","sources":["../../src/tokens/shadows.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;CA2BV,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { colors } from '../primitives/colors.js';
|
|
2
|
+
export const shadows = {
|
|
3
|
+
sm: {
|
|
4
|
+
x: 0,
|
|
5
|
+
y: 1,
|
|
6
|
+
blur: 3,
|
|
7
|
+
color: colors.mono[950],
|
|
8
|
+
opacity: 0.04,
|
|
9
|
+
elevation: 1,
|
|
10
|
+
},
|
|
11
|
+
md: {
|
|
12
|
+
x: 0,
|
|
13
|
+
y: 6,
|
|
14
|
+
blur: 16,
|
|
15
|
+
color: colors.mono[950],
|
|
16
|
+
opacity: 0.08,
|
|
17
|
+
elevation: 4,
|
|
18
|
+
},
|
|
19
|
+
lg: {
|
|
20
|
+
x: 0,
|
|
21
|
+
y: 12,
|
|
22
|
+
blur: 32,
|
|
23
|
+
color: colors.mono[950],
|
|
24
|
+
opacity: 0.1,
|
|
25
|
+
elevation: 8,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const spacing: {
|
|
2
|
+
readonly 0: 0;
|
|
3
|
+
readonly 1: 4;
|
|
4
|
+
readonly 2: 8;
|
|
5
|
+
readonly 3: 12;
|
|
6
|
+
readonly 4: 16;
|
|
7
|
+
readonly 5: 20;
|
|
8
|
+
readonly 6: 24;
|
|
9
|
+
readonly 8: 32;
|
|
10
|
+
readonly 10: 40;
|
|
11
|
+
readonly 12: 48;
|
|
12
|
+
readonly 16: 64;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=spacing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../src/tokens/spacing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYV,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const typography: {
|
|
2
|
+
readonly family: {
|
|
3
|
+
readonly base: "KantumruyPro";
|
|
4
|
+
readonly extraLight: "KantumruyPro-ExtraLight";
|
|
5
|
+
readonly regular: "KantumruyPro-Regular";
|
|
6
|
+
readonly medium: "KantumruyPro-Medium";
|
|
7
|
+
readonly semibold: "KantumruyPro-SemiBold";
|
|
8
|
+
};
|
|
9
|
+
readonly size: {
|
|
10
|
+
readonly xs: 12;
|
|
11
|
+
readonly sm: 14;
|
|
12
|
+
readonly md: 16;
|
|
13
|
+
readonly lg: 20;
|
|
14
|
+
readonly xl: 24;
|
|
15
|
+
readonly xxl: 32;
|
|
16
|
+
};
|
|
17
|
+
readonly weight: {
|
|
18
|
+
readonly light: "200";
|
|
19
|
+
readonly regular: "400";
|
|
20
|
+
readonly medium: "600";
|
|
21
|
+
readonly semibold: "700";
|
|
22
|
+
};
|
|
23
|
+
readonly lineHeight: {
|
|
24
|
+
readonly sm: 16;
|
|
25
|
+
readonly md: 24;
|
|
26
|
+
readonly lg: 32;
|
|
27
|
+
readonly xl: 40;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/tokens/typography.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Bb,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export const typography = {
|
|
2
|
+
family: {
|
|
3
|
+
base: 'KantumruyPro',
|
|
4
|
+
extraLight: 'KantumruyPro-ExtraLight',
|
|
5
|
+
regular: 'KantumruyPro-Regular',
|
|
6
|
+
medium: 'KantumruyPro-Medium',
|
|
7
|
+
semibold: 'KantumruyPro-SemiBold',
|
|
8
|
+
},
|
|
9
|
+
size: {
|
|
10
|
+
xs: 12,
|
|
11
|
+
sm: 14,
|
|
12
|
+
md: 16,
|
|
13
|
+
lg: 20,
|
|
14
|
+
xl: 24,
|
|
15
|
+
xxl: 32,
|
|
16
|
+
},
|
|
17
|
+
weight: {
|
|
18
|
+
light: '200',
|
|
19
|
+
regular: '400',
|
|
20
|
+
medium: '600',
|
|
21
|
+
semibold: '700',
|
|
22
|
+
},
|
|
23
|
+
lineHeight: {
|
|
24
|
+
sm: 16,
|
|
25
|
+
md: 24,
|
|
26
|
+
lg: 32,
|
|
27
|
+
xl: 40,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zIndex.d.ts","sourceRoot":"","sources":["../../src/tokens/zIndex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;CAOT,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vellira-ui/tokens",
|
|
3
|
+
"version": "2.19.6",
|
|
4
|
+
"description": "Design tokens for Vellira Design System",
|
|
5
|
+
"author": "Roman Bakurov",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/vellira-dev/vellira",
|
|
10
|
+
"directory": "packages/tokens"
|
|
11
|
+
},
|
|
12
|
+
"private": false,
|
|
13
|
+
"type": "module",
|
|
14
|
+
"sideEffects": [
|
|
15
|
+
"**/*.css"
|
|
16
|
+
],
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./css": "./dist/css/tokens.css"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"README.md",
|
|
29
|
+
"LICENSE"
|
|
30
|
+
],
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"vitest": "^4.1.9"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"clean": "node --input-type=module -e \"import fs from 'node:fs'; fs.rmSync('dist', { recursive: true, force: true })\"",
|
|
39
|
+
"generate:types": "tsx scripts/generate-token-types.ts",
|
|
40
|
+
"generate:types:check": "tsx scripts/generate-token-types.ts --check",
|
|
41
|
+
"build:tokens": "pnpm run generate:types && tsx scripts/generate-css.ts",
|
|
42
|
+
"build": "pnpm run clean && pnpm run build:tokens && tsc -p tsconfig.build.json",
|
|
43
|
+
"typecheck": "pnpm run generate:types:check && tsc -p tsconfig.json --noEmit",
|
|
44
|
+
"test": "pnpm run generate:types:check && vitest run"
|
|
45
|
+
}
|
|
46
|
+
}
|