@collaflow/design 0.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/LICENSE +201 -0
- package/dist/css/base.css +15 -0
- package/dist/css/variables.css +29 -0
- package/dist/index.cjs +191 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +261 -0
- package/dist/index.d.ts +261 -0
- package/dist/index.js +157 -0
- package/dist/index.js.map +1 -0
- package/dist/tailwind/preset.cjs +157 -0
- package/dist/tailwind/preset.cjs.map +1 -0
- package/dist/tailwind/preset.d.cts +5 -0
- package/dist/tailwind/preset.d.ts +5 -0
- package/dist/tailwind/preset.js +130 -0
- package/dist/tailwind/preset.js.map +1 -0
- package/package.json +47 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
export { collaflowPreset } from './tailwind/preset.cjs';
|
|
2
|
+
import 'tailwindcss';
|
|
3
|
+
|
|
4
|
+
declare const colors: {
|
|
5
|
+
light: {
|
|
6
|
+
background: {
|
|
7
|
+
primary: string;
|
|
8
|
+
secondary: string;
|
|
9
|
+
tertiary: string;
|
|
10
|
+
};
|
|
11
|
+
text: {
|
|
12
|
+
primary: string;
|
|
13
|
+
secondary: string;
|
|
14
|
+
disabled: string;
|
|
15
|
+
};
|
|
16
|
+
border: {
|
|
17
|
+
default: string;
|
|
18
|
+
strong: string;
|
|
19
|
+
};
|
|
20
|
+
accent: {
|
|
21
|
+
blue: string;
|
|
22
|
+
green: string;
|
|
23
|
+
orange: string;
|
|
24
|
+
red: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
dark: {
|
|
28
|
+
background: {
|
|
29
|
+
primary: string;
|
|
30
|
+
secondary: string;
|
|
31
|
+
tertiary: string;
|
|
32
|
+
};
|
|
33
|
+
text: {
|
|
34
|
+
primary: string;
|
|
35
|
+
secondary: string;
|
|
36
|
+
disabled: string;
|
|
37
|
+
};
|
|
38
|
+
border: {
|
|
39
|
+
default: string;
|
|
40
|
+
strong: string;
|
|
41
|
+
};
|
|
42
|
+
accent: {
|
|
43
|
+
blue: string;
|
|
44
|
+
green: string;
|
|
45
|
+
orange: string;
|
|
46
|
+
red: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
type Colors = typeof colors;
|
|
51
|
+
|
|
52
|
+
declare const typography: {
|
|
53
|
+
fontFamily: {
|
|
54
|
+
sans: string[];
|
|
55
|
+
mono: string[];
|
|
56
|
+
};
|
|
57
|
+
fontSize: {
|
|
58
|
+
xs: string;
|
|
59
|
+
sm: string;
|
|
60
|
+
base: string;
|
|
61
|
+
lg: string;
|
|
62
|
+
xl: string;
|
|
63
|
+
'2xl': string;
|
|
64
|
+
'3xl': string;
|
|
65
|
+
};
|
|
66
|
+
fontWeight: {
|
|
67
|
+
normal: string;
|
|
68
|
+
medium: string;
|
|
69
|
+
semibold: string;
|
|
70
|
+
bold: string;
|
|
71
|
+
};
|
|
72
|
+
lineHeight: {
|
|
73
|
+
tight: number;
|
|
74
|
+
normal: number;
|
|
75
|
+
relaxed: number;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
type Typography = typeof typography;
|
|
79
|
+
|
|
80
|
+
declare const spacing: {
|
|
81
|
+
0: string;
|
|
82
|
+
1: string;
|
|
83
|
+
2: string;
|
|
84
|
+
3: string;
|
|
85
|
+
4: string;
|
|
86
|
+
6: string;
|
|
87
|
+
8: string;
|
|
88
|
+
12: string;
|
|
89
|
+
16: string;
|
|
90
|
+
};
|
|
91
|
+
type Spacing = typeof spacing;
|
|
92
|
+
|
|
93
|
+
declare const radius: {
|
|
94
|
+
none: string;
|
|
95
|
+
sm: string;
|
|
96
|
+
md: string;
|
|
97
|
+
lg: string;
|
|
98
|
+
full: string;
|
|
99
|
+
};
|
|
100
|
+
type Radius = typeof radius;
|
|
101
|
+
|
|
102
|
+
declare const shadow: {
|
|
103
|
+
card: string;
|
|
104
|
+
popover: string;
|
|
105
|
+
modal: string;
|
|
106
|
+
};
|
|
107
|
+
type Shadow = typeof shadow;
|
|
108
|
+
|
|
109
|
+
declare const lightTheme: {
|
|
110
|
+
readonly name: "light";
|
|
111
|
+
readonly colors: {
|
|
112
|
+
background: {
|
|
113
|
+
primary: string;
|
|
114
|
+
secondary: string;
|
|
115
|
+
tertiary: string;
|
|
116
|
+
};
|
|
117
|
+
text: {
|
|
118
|
+
primary: string;
|
|
119
|
+
secondary: string;
|
|
120
|
+
disabled: string;
|
|
121
|
+
};
|
|
122
|
+
border: {
|
|
123
|
+
default: string;
|
|
124
|
+
strong: string;
|
|
125
|
+
};
|
|
126
|
+
accent: {
|
|
127
|
+
blue: string;
|
|
128
|
+
green: string;
|
|
129
|
+
orange: string;
|
|
130
|
+
red: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
readonly typography: {
|
|
134
|
+
fontFamily: {
|
|
135
|
+
sans: string[];
|
|
136
|
+
mono: string[];
|
|
137
|
+
};
|
|
138
|
+
fontSize: {
|
|
139
|
+
xs: string;
|
|
140
|
+
sm: string;
|
|
141
|
+
base: string;
|
|
142
|
+
lg: string;
|
|
143
|
+
xl: string;
|
|
144
|
+
'2xl': string;
|
|
145
|
+
'3xl': string;
|
|
146
|
+
};
|
|
147
|
+
fontWeight: {
|
|
148
|
+
normal: string;
|
|
149
|
+
medium: string;
|
|
150
|
+
semibold: string;
|
|
151
|
+
bold: string;
|
|
152
|
+
};
|
|
153
|
+
lineHeight: {
|
|
154
|
+
tight: number;
|
|
155
|
+
normal: number;
|
|
156
|
+
relaxed: number;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
readonly spacing: {
|
|
160
|
+
0: string;
|
|
161
|
+
1: string;
|
|
162
|
+
2: string;
|
|
163
|
+
3: string;
|
|
164
|
+
4: string;
|
|
165
|
+
6: string;
|
|
166
|
+
8: string;
|
|
167
|
+
12: string;
|
|
168
|
+
16: string;
|
|
169
|
+
};
|
|
170
|
+
readonly radius: {
|
|
171
|
+
none: string;
|
|
172
|
+
sm: string;
|
|
173
|
+
md: string;
|
|
174
|
+
lg: string;
|
|
175
|
+
full: string;
|
|
176
|
+
};
|
|
177
|
+
readonly shadow: {
|
|
178
|
+
card: string;
|
|
179
|
+
popover: string;
|
|
180
|
+
modal: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
type LightTheme = typeof lightTheme;
|
|
184
|
+
|
|
185
|
+
declare const darkTheme: {
|
|
186
|
+
readonly name: "dark";
|
|
187
|
+
readonly colors: {
|
|
188
|
+
background: {
|
|
189
|
+
primary: string;
|
|
190
|
+
secondary: string;
|
|
191
|
+
tertiary: string;
|
|
192
|
+
};
|
|
193
|
+
text: {
|
|
194
|
+
primary: string;
|
|
195
|
+
secondary: string;
|
|
196
|
+
disabled: string;
|
|
197
|
+
};
|
|
198
|
+
border: {
|
|
199
|
+
default: string;
|
|
200
|
+
strong: string;
|
|
201
|
+
};
|
|
202
|
+
accent: {
|
|
203
|
+
blue: string;
|
|
204
|
+
green: string;
|
|
205
|
+
orange: string;
|
|
206
|
+
red: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
readonly typography: {
|
|
210
|
+
fontFamily: {
|
|
211
|
+
sans: string[];
|
|
212
|
+
mono: string[];
|
|
213
|
+
};
|
|
214
|
+
fontSize: {
|
|
215
|
+
xs: string;
|
|
216
|
+
sm: string;
|
|
217
|
+
base: string;
|
|
218
|
+
lg: string;
|
|
219
|
+
xl: string;
|
|
220
|
+
'2xl': string;
|
|
221
|
+
'3xl': string;
|
|
222
|
+
};
|
|
223
|
+
fontWeight: {
|
|
224
|
+
normal: string;
|
|
225
|
+
medium: string;
|
|
226
|
+
semibold: string;
|
|
227
|
+
bold: string;
|
|
228
|
+
};
|
|
229
|
+
lineHeight: {
|
|
230
|
+
tight: number;
|
|
231
|
+
normal: number;
|
|
232
|
+
relaxed: number;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
readonly spacing: {
|
|
236
|
+
0: string;
|
|
237
|
+
1: string;
|
|
238
|
+
2: string;
|
|
239
|
+
3: string;
|
|
240
|
+
4: string;
|
|
241
|
+
6: string;
|
|
242
|
+
8: string;
|
|
243
|
+
12: string;
|
|
244
|
+
16: string;
|
|
245
|
+
};
|
|
246
|
+
readonly radius: {
|
|
247
|
+
none: string;
|
|
248
|
+
sm: string;
|
|
249
|
+
md: string;
|
|
250
|
+
lg: string;
|
|
251
|
+
full: string;
|
|
252
|
+
};
|
|
253
|
+
readonly shadow: {
|
|
254
|
+
card: string;
|
|
255
|
+
popover: string;
|
|
256
|
+
modal: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
type DarkTheme = typeof darkTheme;
|
|
260
|
+
|
|
261
|
+
export { type Colors, type DarkTheme, type LightTheme, type Radius, type Shadow, type Spacing, type Typography, colors, darkTheme, lightTheme, radius, shadow, spacing, typography };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
export { collaflowPreset } from './tailwind/preset.js';
|
|
2
|
+
import 'tailwindcss';
|
|
3
|
+
|
|
4
|
+
declare const colors: {
|
|
5
|
+
light: {
|
|
6
|
+
background: {
|
|
7
|
+
primary: string;
|
|
8
|
+
secondary: string;
|
|
9
|
+
tertiary: string;
|
|
10
|
+
};
|
|
11
|
+
text: {
|
|
12
|
+
primary: string;
|
|
13
|
+
secondary: string;
|
|
14
|
+
disabled: string;
|
|
15
|
+
};
|
|
16
|
+
border: {
|
|
17
|
+
default: string;
|
|
18
|
+
strong: string;
|
|
19
|
+
};
|
|
20
|
+
accent: {
|
|
21
|
+
blue: string;
|
|
22
|
+
green: string;
|
|
23
|
+
orange: string;
|
|
24
|
+
red: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
dark: {
|
|
28
|
+
background: {
|
|
29
|
+
primary: string;
|
|
30
|
+
secondary: string;
|
|
31
|
+
tertiary: string;
|
|
32
|
+
};
|
|
33
|
+
text: {
|
|
34
|
+
primary: string;
|
|
35
|
+
secondary: string;
|
|
36
|
+
disabled: string;
|
|
37
|
+
};
|
|
38
|
+
border: {
|
|
39
|
+
default: string;
|
|
40
|
+
strong: string;
|
|
41
|
+
};
|
|
42
|
+
accent: {
|
|
43
|
+
blue: string;
|
|
44
|
+
green: string;
|
|
45
|
+
orange: string;
|
|
46
|
+
red: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
type Colors = typeof colors;
|
|
51
|
+
|
|
52
|
+
declare const typography: {
|
|
53
|
+
fontFamily: {
|
|
54
|
+
sans: string[];
|
|
55
|
+
mono: string[];
|
|
56
|
+
};
|
|
57
|
+
fontSize: {
|
|
58
|
+
xs: string;
|
|
59
|
+
sm: string;
|
|
60
|
+
base: string;
|
|
61
|
+
lg: string;
|
|
62
|
+
xl: string;
|
|
63
|
+
'2xl': string;
|
|
64
|
+
'3xl': string;
|
|
65
|
+
};
|
|
66
|
+
fontWeight: {
|
|
67
|
+
normal: string;
|
|
68
|
+
medium: string;
|
|
69
|
+
semibold: string;
|
|
70
|
+
bold: string;
|
|
71
|
+
};
|
|
72
|
+
lineHeight: {
|
|
73
|
+
tight: number;
|
|
74
|
+
normal: number;
|
|
75
|
+
relaxed: number;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
type Typography = typeof typography;
|
|
79
|
+
|
|
80
|
+
declare const spacing: {
|
|
81
|
+
0: string;
|
|
82
|
+
1: string;
|
|
83
|
+
2: string;
|
|
84
|
+
3: string;
|
|
85
|
+
4: string;
|
|
86
|
+
6: string;
|
|
87
|
+
8: string;
|
|
88
|
+
12: string;
|
|
89
|
+
16: string;
|
|
90
|
+
};
|
|
91
|
+
type Spacing = typeof spacing;
|
|
92
|
+
|
|
93
|
+
declare const radius: {
|
|
94
|
+
none: string;
|
|
95
|
+
sm: string;
|
|
96
|
+
md: string;
|
|
97
|
+
lg: string;
|
|
98
|
+
full: string;
|
|
99
|
+
};
|
|
100
|
+
type Radius = typeof radius;
|
|
101
|
+
|
|
102
|
+
declare const shadow: {
|
|
103
|
+
card: string;
|
|
104
|
+
popover: string;
|
|
105
|
+
modal: string;
|
|
106
|
+
};
|
|
107
|
+
type Shadow = typeof shadow;
|
|
108
|
+
|
|
109
|
+
declare const lightTheme: {
|
|
110
|
+
readonly name: "light";
|
|
111
|
+
readonly colors: {
|
|
112
|
+
background: {
|
|
113
|
+
primary: string;
|
|
114
|
+
secondary: string;
|
|
115
|
+
tertiary: string;
|
|
116
|
+
};
|
|
117
|
+
text: {
|
|
118
|
+
primary: string;
|
|
119
|
+
secondary: string;
|
|
120
|
+
disabled: string;
|
|
121
|
+
};
|
|
122
|
+
border: {
|
|
123
|
+
default: string;
|
|
124
|
+
strong: string;
|
|
125
|
+
};
|
|
126
|
+
accent: {
|
|
127
|
+
blue: string;
|
|
128
|
+
green: string;
|
|
129
|
+
orange: string;
|
|
130
|
+
red: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
readonly typography: {
|
|
134
|
+
fontFamily: {
|
|
135
|
+
sans: string[];
|
|
136
|
+
mono: string[];
|
|
137
|
+
};
|
|
138
|
+
fontSize: {
|
|
139
|
+
xs: string;
|
|
140
|
+
sm: string;
|
|
141
|
+
base: string;
|
|
142
|
+
lg: string;
|
|
143
|
+
xl: string;
|
|
144
|
+
'2xl': string;
|
|
145
|
+
'3xl': string;
|
|
146
|
+
};
|
|
147
|
+
fontWeight: {
|
|
148
|
+
normal: string;
|
|
149
|
+
medium: string;
|
|
150
|
+
semibold: string;
|
|
151
|
+
bold: string;
|
|
152
|
+
};
|
|
153
|
+
lineHeight: {
|
|
154
|
+
tight: number;
|
|
155
|
+
normal: number;
|
|
156
|
+
relaxed: number;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
readonly spacing: {
|
|
160
|
+
0: string;
|
|
161
|
+
1: string;
|
|
162
|
+
2: string;
|
|
163
|
+
3: string;
|
|
164
|
+
4: string;
|
|
165
|
+
6: string;
|
|
166
|
+
8: string;
|
|
167
|
+
12: string;
|
|
168
|
+
16: string;
|
|
169
|
+
};
|
|
170
|
+
readonly radius: {
|
|
171
|
+
none: string;
|
|
172
|
+
sm: string;
|
|
173
|
+
md: string;
|
|
174
|
+
lg: string;
|
|
175
|
+
full: string;
|
|
176
|
+
};
|
|
177
|
+
readonly shadow: {
|
|
178
|
+
card: string;
|
|
179
|
+
popover: string;
|
|
180
|
+
modal: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
type LightTheme = typeof lightTheme;
|
|
184
|
+
|
|
185
|
+
declare const darkTheme: {
|
|
186
|
+
readonly name: "dark";
|
|
187
|
+
readonly colors: {
|
|
188
|
+
background: {
|
|
189
|
+
primary: string;
|
|
190
|
+
secondary: string;
|
|
191
|
+
tertiary: string;
|
|
192
|
+
};
|
|
193
|
+
text: {
|
|
194
|
+
primary: string;
|
|
195
|
+
secondary: string;
|
|
196
|
+
disabled: string;
|
|
197
|
+
};
|
|
198
|
+
border: {
|
|
199
|
+
default: string;
|
|
200
|
+
strong: string;
|
|
201
|
+
};
|
|
202
|
+
accent: {
|
|
203
|
+
blue: string;
|
|
204
|
+
green: string;
|
|
205
|
+
orange: string;
|
|
206
|
+
red: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
readonly typography: {
|
|
210
|
+
fontFamily: {
|
|
211
|
+
sans: string[];
|
|
212
|
+
mono: string[];
|
|
213
|
+
};
|
|
214
|
+
fontSize: {
|
|
215
|
+
xs: string;
|
|
216
|
+
sm: string;
|
|
217
|
+
base: string;
|
|
218
|
+
lg: string;
|
|
219
|
+
xl: string;
|
|
220
|
+
'2xl': string;
|
|
221
|
+
'3xl': string;
|
|
222
|
+
};
|
|
223
|
+
fontWeight: {
|
|
224
|
+
normal: string;
|
|
225
|
+
medium: string;
|
|
226
|
+
semibold: string;
|
|
227
|
+
bold: string;
|
|
228
|
+
};
|
|
229
|
+
lineHeight: {
|
|
230
|
+
tight: number;
|
|
231
|
+
normal: number;
|
|
232
|
+
relaxed: number;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
readonly spacing: {
|
|
236
|
+
0: string;
|
|
237
|
+
1: string;
|
|
238
|
+
2: string;
|
|
239
|
+
3: string;
|
|
240
|
+
4: string;
|
|
241
|
+
6: string;
|
|
242
|
+
8: string;
|
|
243
|
+
12: string;
|
|
244
|
+
16: string;
|
|
245
|
+
};
|
|
246
|
+
readonly radius: {
|
|
247
|
+
none: string;
|
|
248
|
+
sm: string;
|
|
249
|
+
md: string;
|
|
250
|
+
lg: string;
|
|
251
|
+
full: string;
|
|
252
|
+
};
|
|
253
|
+
readonly shadow: {
|
|
254
|
+
card: string;
|
|
255
|
+
popover: string;
|
|
256
|
+
modal: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
type DarkTheme = typeof darkTheme;
|
|
260
|
+
|
|
261
|
+
export { type Colors, type DarkTheme, type LightTheme, type Radius, type Shadow, type Spacing, type Typography, colors, darkTheme, lightTheme, radius, shadow, spacing, typography };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
// src/tokens/colors.ts
|
|
2
|
+
var colors = {
|
|
3
|
+
light: {
|
|
4
|
+
background: {
|
|
5
|
+
primary: "#F7F7F5",
|
|
6
|
+
secondary: "#FFFFFF",
|
|
7
|
+
tertiary: "#F6F5F4"
|
|
8
|
+
},
|
|
9
|
+
text: {
|
|
10
|
+
primary: "#1F1F1F",
|
|
11
|
+
secondary: "#6B6B6B",
|
|
12
|
+
disabled: "#9B9B9B"
|
|
13
|
+
},
|
|
14
|
+
border: {
|
|
15
|
+
default: "#E5E5E5",
|
|
16
|
+
strong: "#D3D3D3"
|
|
17
|
+
},
|
|
18
|
+
accent: {
|
|
19
|
+
blue: "#2383E2",
|
|
20
|
+
green: "#0F7B6C",
|
|
21
|
+
orange: "#DFAB01",
|
|
22
|
+
red: "#E03E3E"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
dark: {
|
|
26
|
+
background: {
|
|
27
|
+
primary: "#191919",
|
|
28
|
+
secondary: "#202020",
|
|
29
|
+
tertiary: "#2A2A2A"
|
|
30
|
+
},
|
|
31
|
+
text: {
|
|
32
|
+
primary: "#E8E8E8",
|
|
33
|
+
secondary: "#9B9B9B",
|
|
34
|
+
disabled: "#6B6B6B"
|
|
35
|
+
},
|
|
36
|
+
border: {
|
|
37
|
+
default: "#333333",
|
|
38
|
+
strong: "#444444"
|
|
39
|
+
},
|
|
40
|
+
accent: {
|
|
41
|
+
blue: "#4A9EFF",
|
|
42
|
+
green: "#2A9D99",
|
|
43
|
+
orange: "#E5B73B",
|
|
44
|
+
red: "#FF5C5C"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// src/tokens/typography.ts
|
|
50
|
+
var typography = {
|
|
51
|
+
fontFamily: {
|
|
52
|
+
sans: ["Inter", "-apple-system", "BlinkMacSystemFont", "Segoe UI", "sans-serif"],
|
|
53
|
+
mono: ["SFMono-Regular", "Menlo", "Consolas", "monospace"]
|
|
54
|
+
},
|
|
55
|
+
fontSize: {
|
|
56
|
+
xs: "12px",
|
|
57
|
+
sm: "14px",
|
|
58
|
+
base: "16px",
|
|
59
|
+
lg: "20px",
|
|
60
|
+
xl: "24px",
|
|
61
|
+
"2xl": "32px",
|
|
62
|
+
"3xl": "48px"
|
|
63
|
+
},
|
|
64
|
+
fontWeight: {
|
|
65
|
+
normal: "400",
|
|
66
|
+
medium: "500",
|
|
67
|
+
semibold: "600",
|
|
68
|
+
bold: "700"
|
|
69
|
+
},
|
|
70
|
+
lineHeight: {
|
|
71
|
+
tight: 1.25,
|
|
72
|
+
normal: 1.5,
|
|
73
|
+
relaxed: 1.75
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// src/tokens/spacing.ts
|
|
78
|
+
var spacing = {
|
|
79
|
+
0: "0px",
|
|
80
|
+
1: "4px",
|
|
81
|
+
2: "8px",
|
|
82
|
+
3: "12px",
|
|
83
|
+
4: "16px",
|
|
84
|
+
6: "24px",
|
|
85
|
+
8: "32px",
|
|
86
|
+
12: "48px",
|
|
87
|
+
16: "64px"
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// src/tokens/radius.ts
|
|
91
|
+
var radius = {
|
|
92
|
+
none: "0px",
|
|
93
|
+
sm: "4px",
|
|
94
|
+
md: "8px",
|
|
95
|
+
lg: "12px",
|
|
96
|
+
full: "9999px"
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
// src/tokens/shadow.ts
|
|
100
|
+
var shadow = {
|
|
101
|
+
card: "0 1px 3px rgba(0,0,0,0.1)",
|
|
102
|
+
popover: "0 4px 12px rgba(0,0,0,0.15)",
|
|
103
|
+
modal: "0 8px 24px rgba(0,0,0,0.2)"
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
// src/themes/light.ts
|
|
107
|
+
var lightTheme = {
|
|
108
|
+
name: "light",
|
|
109
|
+
colors: colors.light,
|
|
110
|
+
typography,
|
|
111
|
+
spacing,
|
|
112
|
+
radius,
|
|
113
|
+
shadow
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
// src/themes/dark.ts
|
|
117
|
+
var darkTheme = {
|
|
118
|
+
name: "dark",
|
|
119
|
+
colors: colors.dark,
|
|
120
|
+
typography,
|
|
121
|
+
spacing,
|
|
122
|
+
radius,
|
|
123
|
+
shadow
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
// src/tailwind/preset.ts
|
|
127
|
+
var collaflowPreset = {
|
|
128
|
+
darkMode: ["class"],
|
|
129
|
+
theme: {
|
|
130
|
+
extend: {
|
|
131
|
+
colors: {
|
|
132
|
+
background: colors.light.background,
|
|
133
|
+
foreground: colors.light.text.primary,
|
|
134
|
+
muted: colors.light.text.secondary,
|
|
135
|
+
border: colors.light.border,
|
|
136
|
+
accent: colors.light.accent
|
|
137
|
+
},
|
|
138
|
+
fontFamily: typography.fontFamily,
|
|
139
|
+
fontSize: typography.fontSize,
|
|
140
|
+
fontWeight: typography.fontWeight,
|
|
141
|
+
spacing,
|
|
142
|
+
borderRadius: radius,
|
|
143
|
+
boxShadow: shadow
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
export {
|
|
148
|
+
collaflowPreset,
|
|
149
|
+
colors,
|
|
150
|
+
darkTheme,
|
|
151
|
+
lightTheme,
|
|
152
|
+
radius,
|
|
153
|
+
shadow,
|
|
154
|
+
spacing,
|
|
155
|
+
typography
|
|
156
|
+
};
|
|
157
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/tokens/colors.ts","../src/tokens/typography.ts","../src/tokens/spacing.ts","../src/tokens/radius.ts","../src/tokens/shadow.ts","../src/themes/light.ts","../src/themes/dark.ts","../src/tailwind/preset.ts"],"sourcesContent":["export const colors = {\n light: {\n background: {\n primary: '#F7F7F5',\n secondary: '#FFFFFF',\n tertiary: '#F6F5F4',\n },\n text: {\n primary: '#1F1F1F',\n secondary: '#6B6B6B',\n disabled: '#9B9B9B',\n },\n border: {\n default: '#E5E5E5',\n strong: '#D3D3D3',\n },\n accent: {\n blue: '#2383E2',\n green: '#0F7B6C',\n orange: '#DFAB01',\n red: '#E03E3E',\n },\n },\n dark: {\n background: {\n primary: '#191919',\n secondary: '#202020',\n tertiary: '#2A2A2A',\n },\n text: {\n primary: '#E8E8E8',\n secondary: '#9B9B9B',\n disabled: '#6B6B6B',\n },\n border: {\n default: '#333333',\n strong: '#444444',\n },\n accent: {\n blue: '#4A9EFF',\n green: '#2A9D99',\n orange: '#E5B73B',\n red: '#FF5C5C',\n },\n },\n};\n\nexport type Colors = typeof colors;\n","export const typography = {\n fontFamily: {\n sans: ['Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'sans-serif'],\n mono: ['SFMono-Regular', 'Menlo', 'Consolas', 'monospace'],\n },\n fontSize: {\n xs: '12px',\n sm: '14px',\n base: '16px',\n lg: '20px',\n xl: '24px',\n '2xl': '32px',\n '3xl': '48px',\n },\n fontWeight: {\n normal: '400',\n medium: '500',\n semibold: '600',\n bold: '700',\n },\n lineHeight: {\n tight: 1.25,\n normal: 1.5,\n relaxed: 1.75,\n },\n};\n\nexport type Typography = typeof typography;\n","export const spacing = {\n 0: '0px',\n 1: '4px',\n 2: '8px',\n 3: '12px',\n 4: '16px',\n 6: '24px',\n 8: '32px',\n 12: '48px',\n 16: '64px',\n};\n\nexport type Spacing = typeof spacing;\n","export const radius = {\n none: '0px',\n sm: '4px',\n md: '8px',\n lg: '12px',\n full: '9999px',\n};\n\nexport type Radius = typeof radius;\n","export const shadow = {\n card: '0 1px 3px rgba(0,0,0,0.1)',\n popover: '0 4px 12px rgba(0,0,0,0.15)',\n modal: '0 8px 24px rgba(0,0,0,0.2)',\n};\n\nexport type Shadow = typeof shadow;\n","import { colors, typography, spacing, radius, shadow } from '../tokens';\n\nexport const lightTheme = {\n name: 'light',\n colors: colors.light,\n typography,\n spacing,\n radius,\n shadow,\n} as const;\n\nexport type LightTheme = typeof lightTheme;\n","import { colors, typography, spacing, radius, shadow } from '../tokens';\n\nexport const darkTheme = {\n name: 'dark',\n colors: colors.dark,\n typography,\n spacing,\n radius,\n shadow,\n} as const;\n\nexport type DarkTheme = typeof darkTheme;\n","import { colors, typography, spacing, radius, shadow } from '../tokens';\nimport type { Config } from 'tailwindcss';\n\nexport const collaflowPreset: Partial<Config> = {\n darkMode: ['class'],\n theme: {\n extend: {\n colors: {\n background: colors.light.background,\n foreground: colors.light.text.primary,\n muted: colors.light.text.secondary,\n border: colors.light.border,\n accent: colors.light.accent,\n },\n fontFamily: typography.fontFamily,\n fontSize: typography.fontSize,\n fontWeight: typography.fontWeight,\n spacing,\n borderRadius: radius,\n boxShadow: shadow,\n },\n },\n};\n"],"mappings":";AAAO,IAAM,SAAS;AAAA,EACpB,OAAO;AAAA,IACL,YAAY;AAAA,MACV,SAAS;AAAA,MACT,WAAW;AAA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