@dukaandost/tokens 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/tokens.ts DELETED
@@ -1,219 +0,0 @@
1
- // ---------------------------------------------------------------------------
2
- // Design Tokens – TypeScript constants
3
- // ---------------------------------------------------------------------------
4
-
5
- export const colors = {
6
- brand: {
7
- primary: '#180C44',
8
- accent: '#8A38F5',
9
- accentSubtle: '#EBE9F3',
10
- accentMuted: '#A499C6',
11
- hover: '#3B2395',
12
- },
13
- semantic: {
14
- error: '#E9336C',
15
- errorStrong: '#C10000',
16
- errorLight: '#EE6691',
17
- success: '#099B30',
18
- successDark: '#04841B',
19
- successDeep: '#065B15',
20
- successMuted: '#82AE37',
21
- warning: '#FCC13E',
22
- warningText: '#E4AC32',
23
- info: '#1B4DFF',
24
- infoStrong: '#0065F7',
25
- infoDark: '#02409A',
26
- infoMuted: '#127498',
27
- },
28
- text: {
29
- primary: '#1A1A1A',
30
- secondary: '#2E2E2E',
31
- tertiary: '#545454',
32
- disabled: '#7F7F7F',
33
- inverse: '#FFFFFF',
34
- },
35
- border: {
36
- default: '#D3D3D3',
37
- subtle: '#E0E0E0',
38
- hover: '#A9A9A9',
39
- },
40
- surface: {
41
- default: '#FFFFFF',
42
- subtle: '#F5F5F5',
43
- subtleHover: '#F6F6F6',
44
- accent: '#F4F2FF',
45
- },
46
- focus: {
47
- glow: '#EE6691',
48
- border: '#E9336C',
49
- },
50
- badge: {
51
- green: { bg: '#E4FFEC', border: '#5FD87F', text: '#099B30' },
52
- darkGreen: { bg: '#B3D9BA', border: '#04841B', text: '#065B15' },
53
- blue: { bg: '#E6EFFC', border: '#0065F7', text: '#02409A' },
54
- purple: { bg: '#FFE2FF', border: '#DF00DF', text: '#9A009A' },
55
- violet: { bg: '#E8C1FF', border: '#B331FF', text: '#921EC3' },
56
- yellow: { bg: '#FFF6E2', border: '#FCC13E', text: '#E4AC32' },
57
- teal: { bg: '#E3FDFF', border: '#18CBDB', text: '#0DACBB' },
58
- pink: { bg: '#FFE7EE', border: '#EE6691', text: '#E30047' },
59
- red: { bg: '#FFE2E2', border: '#FF2929', text: '#C10000' },
60
- orange: { bg: '#FDE1D4', border: '#FF6924', text: '#F65F1A' },
61
- grey: { bg: '#E3E3E3', border: '#7F7F7F', text: '#545454' },
62
- brown: { bg: '#F4E8DC', border: '#B87333', text: '#8B5E34' },
63
- },
64
- } as const;
65
-
66
- export const gradients = {
67
- brandAlpha: 'linear-gradient(90deg, #FF51E3 0%, #8048BE 50%, #02409A 100%)',
68
- brandBeta: 'linear-gradient(90deg, #02409A 0%, #066E65 25%, #099B30 50%)',
69
- brandGamma: 'linear-gradient(90deg, #099B30 0%, #82AE37 50%, #FCC13E 100%)',
70
- brandDelta: 'linear-gradient(90deg, #099B30 0%, #127498 50%, #1B4DFF 100%)',
71
- } as const;
72
-
73
- export const fontFamily = {
74
- heading: "'Amsi Pro', 'Inter', system-ui, sans-serif",
75
- body: "'Nunito Sans', 'Inter', system-ui, sans-serif",
76
- code: "'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace",
77
- } as const;
78
-
79
- export const typography = {
80
- display: {
81
- size: '40px',
82
- weight: 400,
83
- lineHeight: 1.37,
84
- letterSpacing: '0em',
85
- fontFamily: fontFamily.heading,
86
- },
87
- headingXl: {
88
- size: '32px',
89
- weight: 400,
90
- lineHeight: 1.37,
91
- letterSpacing: '0em',
92
- fontFamily: fontFamily.heading,
93
- },
94
- headingLg: {
95
- size: '24px',
96
- weight: 400,
97
- lineHeight: 1.37,
98
- letterSpacing: '0em',
99
- fontFamily: fontFamily.heading,
100
- },
101
- headingMd: {
102
- size: '20px',
103
- weight: 400,
104
- lineHeight: 1.37,
105
- letterSpacing: '0em',
106
- fontFamily: fontFamily.heading,
107
- },
108
- headingSm: {
109
- size: '18px',
110
- weight: 400,
111
- lineHeight: 1.36,
112
- letterSpacing: '0em',
113
- fontFamily: fontFamily.body,
114
- },
115
- bodyLg: {
116
- size: '16px',
117
- weight: 400,
118
- lineHeight: 1.36,
119
- letterSpacing: '0em',
120
- fontFamily: fontFamily.body,
121
- },
122
- bodyMd: {
123
- size: '14px',
124
- weight: 400,
125
- lineHeight: 1.36,
126
- letterSpacing: '0em',
127
- fontFamily: fontFamily.body,
128
- },
129
- bodySm: {
130
- size: '12px',
131
- weight: 400,
132
- lineHeight: 1.36,
133
- letterSpacing: '0em',
134
- fontFamily: fontFamily.body,
135
- },
136
- label: {
137
- size: '13px',
138
- weight: 500,
139
- lineHeight: 1.4,
140
- letterSpacing: '0.03em',
141
- fontFamily: fontFamily.body,
142
- },
143
- labelSm: {
144
- size: '11px',
145
- weight: 500,
146
- lineHeight: 1.4,
147
- letterSpacing: '0.04em',
148
- fontFamily: fontFamily.body,
149
- },
150
- code: {
151
- size: '13px',
152
- weight: 400,
153
- lineHeight: 1.5,
154
- letterSpacing: '0em',
155
- fontFamily: fontFamily.code,
156
- },
157
- } as const;
158
-
159
- export const spacing = {
160
- px: '1px',
161
- '0.5': '2px',
162
- '1': '4px',
163
- '2': '8px',
164
- '3': '12px',
165
- '4': '16px',
166
- '5': '20px',
167
- '6': '24px',
168
- '8': '32px',
169
- '10': '40px',
170
- '12': '48px',
171
- } as const;
172
-
173
- export const radius = {
174
- none: '0px',
175
- xs: '4px',
176
- sm: '8px',
177
- md: '12px',
178
- lg: '16px',
179
- xl: '24px',
180
- full: '9999px',
181
- } as const;
182
-
183
- export const shadows = {
184
- none: 'none',
185
- xs: '0 1px 2px rgba(0, 0, 0, 0.06)',
186
- sm: '0 2px 6px rgba(0, 0, 0, 0.08)',
187
- md: '0 4px 12px rgba(0, 0, 0, 0.12)',
188
- lg: '0 8px 24px rgba(0, 0, 0, 0.16)',
189
- xl: '0 16px 40px rgba(0, 0, 0, 0.20)',
190
- glowAlpha: '0 0 20px rgba(190, 3, 164, 0.50)',
191
- glowBeta: '0 0 20px rgba(148, 170, 253, 0.50)',
192
- glowGamma: '0 0 20px rgba(130, 174, 55, 0.50)',
193
- glowDelta: '0 0 20px rgba(55, 130, 174, 0.50)',
194
- button: '0 1px 2px rgba(0, 0, 0, 0.2)',
195
- buttonHover: '0 1px 4px rgba(0, 0, 0, 0.2)',
196
- focusGlow: '0 0 4px #EE6691',
197
- } as const;
198
-
199
- export const zIndex = {
200
- base: 0,
201
- raised: 10,
202
- dropdown: 100,
203
- sticky: 200,
204
- overlay: 300,
205
- modal: 400,
206
- popover: 500,
207
- toast: 600,
208
- } as const;
209
-
210
- export const tokens = {
211
- colors,
212
- gradients,
213
- fontFamily,
214
- typography,
215
- spacing,
216
- radius,
217
- shadows,
218
- zIndex,
219
- } as const;