@fastwork/xosmoz-theme 0.72.1 → 0.72.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/figma-plugin.zip +0 -0
- package/dist/{index-kwy2YQdL.d.mts → index-Cr0GqN7q.d.mts} +126 -126
- package/dist/{index-kwy2YQdL.d.ts → index-Cr0GqN7q.d.ts} +126 -126
- package/dist/index.d.mts +83 -70
- package/dist/index.d.ts +83 -70
- package/dist/tokens.d.mts +1 -1
- package/dist/tokens.d.ts +1 -1
- package/package.json +1 -1
package/dist/figma-plugin.zip
CHANGED
|
Binary file
|
|
@@ -2,154 +2,154 @@
|
|
|
2
2
|
* Theme type definitions
|
|
3
3
|
*/
|
|
4
4
|
interface ColorToken {
|
|
5
|
-
|
|
5
|
+
value: string;
|
|
6
6
|
}
|
|
7
7
|
interface TypographyScale {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
8
|
+
50: string;
|
|
9
|
+
100: string;
|
|
10
|
+
200: string;
|
|
11
|
+
300: string;
|
|
12
|
+
400: string;
|
|
13
|
+
500: string;
|
|
14
|
+
600: string;
|
|
15
|
+
700: string;
|
|
16
|
+
800: string;
|
|
17
|
+
900: string;
|
|
18
|
+
1000: string;
|
|
19
|
+
1100: string;
|
|
20
|
+
1200: string;
|
|
21
|
+
1300: string;
|
|
22
|
+
1400: string;
|
|
23
|
+
1500: string;
|
|
24
|
+
1600: string;
|
|
25
25
|
}
|
|
26
26
|
interface FontWeights {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
100: number;
|
|
28
|
+
200: number;
|
|
29
|
+
300: number;
|
|
30
|
+
400: number;
|
|
31
|
+
500: number;
|
|
32
|
+
600: number;
|
|
33
|
+
700: number;
|
|
34
|
+
800: number;
|
|
35
|
+
900: number;
|
|
36
36
|
}
|
|
37
37
|
interface TypographyToken {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
fontFamily: string;
|
|
39
|
+
fontSize: {
|
|
40
|
+
desktop: string;
|
|
41
|
+
mobile: string;
|
|
42
|
+
};
|
|
43
|
+
fontWeight: number;
|
|
44
|
+
lineHeight: string;
|
|
45
45
|
}
|
|
46
46
|
interface HeadingTokens {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
heading1: TypographyToken;
|
|
48
|
+
heading2: TypographyToken;
|
|
49
|
+
heading3: TypographyToken;
|
|
50
|
+
heading4: TypographyToken;
|
|
51
|
+
heading5: TypographyToken;
|
|
52
|
+
heading6: TypographyToken;
|
|
53
53
|
}
|
|
54
54
|
interface TitleTokens {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
title1: TypographyToken;
|
|
56
|
+
title2: TypographyToken;
|
|
57
|
+
title3: TypographyToken;
|
|
58
|
+
title4: TypographyToken;
|
|
59
59
|
}
|
|
60
60
|
interface SubtitleTokens {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
subtitle1Bold: TypographyToken;
|
|
62
|
+
subtitle1Regular: TypographyToken;
|
|
63
|
+
subtitle2Bold: TypographyToken;
|
|
64
|
+
subtitle2Regular: TypographyToken;
|
|
65
|
+
subtitle3Bold: TypographyToken;
|
|
66
|
+
subtitle3Regular: TypographyToken;
|
|
67
67
|
}
|
|
68
68
|
interface BodyTokens {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
body1: TypographyToken;
|
|
70
|
+
body2: TypographyToken;
|
|
71
|
+
body3: TypographyToken;
|
|
72
|
+
body4: TypographyToken;
|
|
73
73
|
}
|
|
74
74
|
interface SpacingScale {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
75
|
+
0: string;
|
|
76
|
+
px: string;
|
|
77
|
+
0.5: string;
|
|
78
|
+
1: string;
|
|
79
|
+
1.5: string;
|
|
80
|
+
2: string;
|
|
81
|
+
2.5: string;
|
|
82
|
+
3: string;
|
|
83
|
+
3.5: string;
|
|
84
|
+
4: string;
|
|
85
|
+
5: string;
|
|
86
|
+
6: string;
|
|
87
|
+
7: string;
|
|
88
|
+
8: string;
|
|
89
|
+
9: string;
|
|
90
|
+
10: string;
|
|
91
|
+
11: string;
|
|
92
|
+
12: string;
|
|
93
|
+
14: string;
|
|
94
|
+
16: string;
|
|
95
|
+
20: string;
|
|
96
|
+
24: string;
|
|
97
|
+
28: string;
|
|
98
|
+
32: string;
|
|
99
|
+
36: string;
|
|
100
|
+
40: string;
|
|
101
|
+
44: string;
|
|
102
|
+
48: string;
|
|
103
|
+
52: string;
|
|
104
|
+
56: string;
|
|
105
|
+
60: string;
|
|
106
|
+
64: string;
|
|
107
|
+
72: string;
|
|
108
|
+
80: string;
|
|
109
|
+
96: string;
|
|
110
110
|
}
|
|
111
111
|
interface BorderRadius {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
112
|
+
none: string;
|
|
113
|
+
sm: string;
|
|
114
|
+
base: string;
|
|
115
|
+
md: string;
|
|
116
|
+
lg: string;
|
|
117
|
+
xl: string;
|
|
118
|
+
'2xl': string;
|
|
119
|
+
'3xl': string;
|
|
120
|
+
full: string;
|
|
121
121
|
}
|
|
122
122
|
interface Shadows {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
100: string;
|
|
124
|
+
200: string;
|
|
125
|
+
300: string;
|
|
126
|
+
400: string;
|
|
127
127
|
}
|
|
128
128
|
interface Theme {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
129
|
+
colors: Record<string, ColorToken>;
|
|
130
|
+
typography: {
|
|
131
|
+
fontSize: TypographyScale;
|
|
132
|
+
fontWeight: FontWeights;
|
|
133
|
+
fontFamily: {
|
|
134
|
+
primary: string;
|
|
135
|
+
secondary: string;
|
|
136
|
+
};
|
|
137
|
+
lineHeight: {
|
|
138
|
+
'100pct': string;
|
|
139
|
+
'125pct': string;
|
|
140
|
+
'135pct': string;
|
|
141
|
+
'150pct': string;
|
|
142
|
+
'165pct': string;
|
|
143
|
+
'200pct': string;
|
|
144
|
+
};
|
|
145
|
+
headings: HeadingTokens;
|
|
146
|
+
titles: TitleTokens;
|
|
147
|
+
subtitles: SubtitleTokens;
|
|
148
|
+
body: BodyTokens;
|
|
149
|
+
};
|
|
150
|
+
spacing: SpacingScale;
|
|
151
|
+
borderRadius: BorderRadius;
|
|
152
|
+
shadows: Shadows;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
declare const fontSize: TypographyScale;
|
|
@@ -2,154 +2,154 @@
|
|
|
2
2
|
* Theme type definitions
|
|
3
3
|
*/
|
|
4
4
|
interface ColorToken {
|
|
5
|
-
|
|
5
|
+
value: string;
|
|
6
6
|
}
|
|
7
7
|
interface TypographyScale {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
8
|
+
50: string;
|
|
9
|
+
100: string;
|
|
10
|
+
200: string;
|
|
11
|
+
300: string;
|
|
12
|
+
400: string;
|
|
13
|
+
500: string;
|
|
14
|
+
600: string;
|
|
15
|
+
700: string;
|
|
16
|
+
800: string;
|
|
17
|
+
900: string;
|
|
18
|
+
1000: string;
|
|
19
|
+
1100: string;
|
|
20
|
+
1200: string;
|
|
21
|
+
1300: string;
|
|
22
|
+
1400: string;
|
|
23
|
+
1500: string;
|
|
24
|
+
1600: string;
|
|
25
25
|
}
|
|
26
26
|
interface FontWeights {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
100: number;
|
|
28
|
+
200: number;
|
|
29
|
+
300: number;
|
|
30
|
+
400: number;
|
|
31
|
+
500: number;
|
|
32
|
+
600: number;
|
|
33
|
+
700: number;
|
|
34
|
+
800: number;
|
|
35
|
+
900: number;
|
|
36
36
|
}
|
|
37
37
|
interface TypographyToken {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
fontFamily: string;
|
|
39
|
+
fontSize: {
|
|
40
|
+
desktop: string;
|
|
41
|
+
mobile: string;
|
|
42
|
+
};
|
|
43
|
+
fontWeight: number;
|
|
44
|
+
lineHeight: string;
|
|
45
45
|
}
|
|
46
46
|
interface HeadingTokens {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
heading1: TypographyToken;
|
|
48
|
+
heading2: TypographyToken;
|
|
49
|
+
heading3: TypographyToken;
|
|
50
|
+
heading4: TypographyToken;
|
|
51
|
+
heading5: TypographyToken;
|
|
52
|
+
heading6: TypographyToken;
|
|
53
53
|
}
|
|
54
54
|
interface TitleTokens {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
title1: TypographyToken;
|
|
56
|
+
title2: TypographyToken;
|
|
57
|
+
title3: TypographyToken;
|
|
58
|
+
title4: TypographyToken;
|
|
59
59
|
}
|
|
60
60
|
interface SubtitleTokens {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
subtitle1Bold: TypographyToken;
|
|
62
|
+
subtitle1Regular: TypographyToken;
|
|
63
|
+
subtitle2Bold: TypographyToken;
|
|
64
|
+
subtitle2Regular: TypographyToken;
|
|
65
|
+
subtitle3Bold: TypographyToken;
|
|
66
|
+
subtitle3Regular: TypographyToken;
|
|
67
67
|
}
|
|
68
68
|
interface BodyTokens {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
body1: TypographyToken;
|
|
70
|
+
body2: TypographyToken;
|
|
71
|
+
body3: TypographyToken;
|
|
72
|
+
body4: TypographyToken;
|
|
73
73
|
}
|
|
74
74
|
interface SpacingScale {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
75
|
+
0: string;
|
|
76
|
+
px: string;
|
|
77
|
+
0.5: string;
|
|
78
|
+
1: string;
|
|
79
|
+
1.5: string;
|
|
80
|
+
2: string;
|
|
81
|
+
2.5: string;
|
|
82
|
+
3: string;
|
|
83
|
+
3.5: string;
|
|
84
|
+
4: string;
|
|
85
|
+
5: string;
|
|
86
|
+
6: string;
|
|
87
|
+
7: string;
|
|
88
|
+
8: string;
|
|
89
|
+
9: string;
|
|
90
|
+
10: string;
|
|
91
|
+
11: string;
|
|
92
|
+
12: string;
|
|
93
|
+
14: string;
|
|
94
|
+
16: string;
|
|
95
|
+
20: string;
|
|
96
|
+
24: string;
|
|
97
|
+
28: string;
|
|
98
|
+
32: string;
|
|
99
|
+
36: string;
|
|
100
|
+
40: string;
|
|
101
|
+
44: string;
|
|
102
|
+
48: string;
|
|
103
|
+
52: string;
|
|
104
|
+
56: string;
|
|
105
|
+
60: string;
|
|
106
|
+
64: string;
|
|
107
|
+
72: string;
|
|
108
|
+
80: string;
|
|
109
|
+
96: string;
|
|
110
110
|
}
|
|
111
111
|
interface BorderRadius {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
112
|
+
none: string;
|
|
113
|
+
sm: string;
|
|
114
|
+
base: string;
|
|
115
|
+
md: string;
|
|
116
|
+
lg: string;
|
|
117
|
+
xl: string;
|
|
118
|
+
'2xl': string;
|
|
119
|
+
'3xl': string;
|
|
120
|
+
full: string;
|
|
121
121
|
}
|
|
122
122
|
interface Shadows {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
100: string;
|
|
124
|
+
200: string;
|
|
125
|
+
300: string;
|
|
126
|
+
400: string;
|
|
127
127
|
}
|
|
128
128
|
interface Theme {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
129
|
+
colors: Record<string, ColorToken>;
|
|
130
|
+
typography: {
|
|
131
|
+
fontSize: TypographyScale;
|
|
132
|
+
fontWeight: FontWeights;
|
|
133
|
+
fontFamily: {
|
|
134
|
+
primary: string;
|
|
135
|
+
secondary: string;
|
|
136
|
+
};
|
|
137
|
+
lineHeight: {
|
|
138
|
+
'100pct': string;
|
|
139
|
+
'125pct': string;
|
|
140
|
+
'135pct': string;
|
|
141
|
+
'150pct': string;
|
|
142
|
+
'165pct': string;
|
|
143
|
+
'200pct': string;
|
|
144
|
+
};
|
|
145
|
+
headings: HeadingTokens;
|
|
146
|
+
titles: TitleTokens;
|
|
147
|
+
subtitles: SubtitleTokens;
|
|
148
|
+
body: BodyTokens;
|
|
149
|
+
};
|
|
150
|
+
spacing: SpacingScale;
|
|
151
|
+
borderRadius: BorderRadius;
|
|
152
|
+
shadows: Shadows;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
declare const fontSize: TypographyScale;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,85 +1,98 @@
|
|
|
1
|
-
import { C as ColorToken } from './index-
|
|
2
|
-
export { B as BodyTokens, h as BorderRadius, F as FontWeights, H as HeadingTokens, i as Shadows, g as SpacingScale, S as SubtitleTokens, j as Theme, e as TitleTokens, T as TypographyScale, d as TypographyToken, c as font, b as fontFamily, f as fontSize, a as fontWeight, l as lineHeight, t as typography } from './index-
|
|
1
|
+
import { C as ColorToken } from './index-Cr0GqN7q.mjs';
|
|
2
|
+
export { B as BodyTokens, h as BorderRadius, F as FontWeights, H as HeadingTokens, i as Shadows, g as SpacingScale, S as SubtitleTokens, j as Theme, e as TitleTokens, T as TypographyScale, d as TypographyToken, c as font, b as fontFamily, f as fontSize, a as fontWeight, l as lineHeight, t as typography } from './index-Cr0GqN7q.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Theme configuration types
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
type AlphaScale = {
|
|
9
|
+
100: string;
|
|
10
|
+
200: string;
|
|
11
|
+
300: string;
|
|
12
|
+
400: string;
|
|
13
|
+
500: string;
|
|
14
|
+
600: string;
|
|
15
|
+
700: string;
|
|
16
|
+
800: string;
|
|
17
|
+
900: string;
|
|
18
|
+
1000: string;
|
|
19
|
+
};
|
|
8
20
|
type ThemeColorShape = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
soft: {
|
|
22
|
+
100: string;
|
|
23
|
+
200: string;
|
|
24
|
+
};
|
|
25
|
+
softSolid: {
|
|
26
|
+
100: string;
|
|
27
|
+
200: string;
|
|
28
|
+
};
|
|
29
|
+
line: {
|
|
30
|
+
100: string;
|
|
31
|
+
200: string;
|
|
32
|
+
300: string;
|
|
33
|
+
};
|
|
34
|
+
bg: {
|
|
35
|
+
100: string;
|
|
36
|
+
200: string;
|
|
37
|
+
};
|
|
38
|
+
text: {
|
|
39
|
+
fg: string;
|
|
40
|
+
100: string;
|
|
41
|
+
200: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
27
44
|
type BoxShadowToken = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
45
|
+
100: string;
|
|
46
|
+
200: string;
|
|
47
|
+
300: string;
|
|
48
|
+
400: string;
|
|
49
|
+
};
|
|
33
50
|
interface ThemeConfig {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
51
|
+
name: string;
|
|
52
|
+
boxShadows: BoxShadowToken;
|
|
53
|
+
palette: Record<string, ColorToken>;
|
|
54
|
+
colors: {
|
|
55
|
+
bg: {
|
|
56
|
+
100: string;
|
|
57
|
+
200: string;
|
|
58
|
+
};
|
|
59
|
+
surface: {
|
|
60
|
+
50: string;
|
|
61
|
+
100: string;
|
|
62
|
+
200: string;
|
|
63
|
+
300: string;
|
|
64
|
+
400: string;
|
|
65
|
+
};
|
|
66
|
+
text: {
|
|
67
|
+
fg: string;
|
|
68
|
+
100: string;
|
|
69
|
+
200: string;
|
|
70
|
+
300: string;
|
|
71
|
+
};
|
|
72
|
+
line: {
|
|
73
|
+
50: string;
|
|
74
|
+
100: string;
|
|
75
|
+
200: string;
|
|
76
|
+
300: string;
|
|
77
|
+
};
|
|
78
|
+
primary: ThemeColorShape;
|
|
79
|
+
danger: ThemeColorShape;
|
|
80
|
+
success: ThemeColorShape;
|
|
81
|
+
warning: ThemeColorShape;
|
|
82
|
+
info: ThemeColorShape;
|
|
83
|
+
neutral: ThemeColorShape;
|
|
84
|
+
orange: ThemeColorShape;
|
|
85
|
+
purple: ThemeColorShape;
|
|
86
|
+
blackAlpha: AlphaScale;
|
|
87
|
+
whiteAlpha: AlphaScale;
|
|
88
|
+
overlay: AlphaScale;
|
|
89
|
+
};
|
|
69
90
|
}
|
|
70
|
-
type ThemeName = 'light' | 'dark'
|
|
71
|
-
type ThemeRegistry = Record<ThemeName, ThemeConfig
|
|
91
|
+
type ThemeName = 'light' | 'dark';
|
|
92
|
+
type ThemeRegistry = Record<ThemeName, ThemeConfig>;
|
|
72
93
|
|
|
73
94
|
declare const lightTheme: ThemeConfig;
|
|
74
95
|
|
|
75
|
-
/**
|
|
76
|
-
* Dark theme configuration
|
|
77
|
-
* Leveraging OKLCH for optimal color management:
|
|
78
|
-
* - Uses inverted lightness (1-L) from light theme via CSS relative color syntax
|
|
79
|
-
* - Maintains same chroma and hue values for consistency
|
|
80
|
-
* - Ensures WCAG AA contrast ratios in dark environments
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
96
|
declare const darkTheme: ThemeConfig;
|
|
84
97
|
|
|
85
98
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,85 +1,98 @@
|
|
|
1
|
-
import { C as ColorToken } from './index-
|
|
2
|
-
export { B as BodyTokens, h as BorderRadius, F as FontWeights, H as HeadingTokens, i as Shadows, g as SpacingScale, S as SubtitleTokens, j as Theme, e as TitleTokens, T as TypographyScale, d as TypographyToken, c as font, b as fontFamily, f as fontSize, a as fontWeight, l as lineHeight, t as typography } from './index-
|
|
1
|
+
import { C as ColorToken } from './index-Cr0GqN7q.js';
|
|
2
|
+
export { B as BodyTokens, h as BorderRadius, F as FontWeights, H as HeadingTokens, i as Shadows, g as SpacingScale, S as SubtitleTokens, j as Theme, e as TitleTokens, T as TypographyScale, d as TypographyToken, c as font, b as fontFamily, f as fontSize, a as fontWeight, l as lineHeight, t as typography } from './index-Cr0GqN7q.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Theme configuration types
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
type AlphaScale = {
|
|
9
|
+
100: string;
|
|
10
|
+
200: string;
|
|
11
|
+
300: string;
|
|
12
|
+
400: string;
|
|
13
|
+
500: string;
|
|
14
|
+
600: string;
|
|
15
|
+
700: string;
|
|
16
|
+
800: string;
|
|
17
|
+
900: string;
|
|
18
|
+
1000: string;
|
|
19
|
+
};
|
|
8
20
|
type ThemeColorShape = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
soft: {
|
|
22
|
+
100: string;
|
|
23
|
+
200: string;
|
|
24
|
+
};
|
|
25
|
+
softSolid: {
|
|
26
|
+
100: string;
|
|
27
|
+
200: string;
|
|
28
|
+
};
|
|
29
|
+
line: {
|
|
30
|
+
100: string;
|
|
31
|
+
200: string;
|
|
32
|
+
300: string;
|
|
33
|
+
};
|
|
34
|
+
bg: {
|
|
35
|
+
100: string;
|
|
36
|
+
200: string;
|
|
37
|
+
};
|
|
38
|
+
text: {
|
|
39
|
+
fg: string;
|
|
40
|
+
100: string;
|
|
41
|
+
200: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
27
44
|
type BoxShadowToken = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
45
|
+
100: string;
|
|
46
|
+
200: string;
|
|
47
|
+
300: string;
|
|
48
|
+
400: string;
|
|
49
|
+
};
|
|
33
50
|
interface ThemeConfig {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
51
|
+
name: string;
|
|
52
|
+
boxShadows: BoxShadowToken;
|
|
53
|
+
palette: Record<string, ColorToken>;
|
|
54
|
+
colors: {
|
|
55
|
+
bg: {
|
|
56
|
+
100: string;
|
|
57
|
+
200: string;
|
|
58
|
+
};
|
|
59
|
+
surface: {
|
|
60
|
+
50: string;
|
|
61
|
+
100: string;
|
|
62
|
+
200: string;
|
|
63
|
+
300: string;
|
|
64
|
+
400: string;
|
|
65
|
+
};
|
|
66
|
+
text: {
|
|
67
|
+
fg: string;
|
|
68
|
+
100: string;
|
|
69
|
+
200: string;
|
|
70
|
+
300: string;
|
|
71
|
+
};
|
|
72
|
+
line: {
|
|
73
|
+
50: string;
|
|
74
|
+
100: string;
|
|
75
|
+
200: string;
|
|
76
|
+
300: string;
|
|
77
|
+
};
|
|
78
|
+
primary: ThemeColorShape;
|
|
79
|
+
danger: ThemeColorShape;
|
|
80
|
+
success: ThemeColorShape;
|
|
81
|
+
warning: ThemeColorShape;
|
|
82
|
+
info: ThemeColorShape;
|
|
83
|
+
neutral: ThemeColorShape;
|
|
84
|
+
orange: ThemeColorShape;
|
|
85
|
+
purple: ThemeColorShape;
|
|
86
|
+
blackAlpha: AlphaScale;
|
|
87
|
+
whiteAlpha: AlphaScale;
|
|
88
|
+
overlay: AlphaScale;
|
|
89
|
+
};
|
|
69
90
|
}
|
|
70
|
-
type ThemeName = 'light' | 'dark'
|
|
71
|
-
type ThemeRegistry = Record<ThemeName, ThemeConfig
|
|
91
|
+
type ThemeName = 'light' | 'dark';
|
|
92
|
+
type ThemeRegistry = Record<ThemeName, ThemeConfig>;
|
|
72
93
|
|
|
73
94
|
declare const lightTheme: ThemeConfig;
|
|
74
95
|
|
|
75
|
-
/**
|
|
76
|
-
* Dark theme configuration
|
|
77
|
-
* Leveraging OKLCH for optimal color management:
|
|
78
|
-
* - Uses inverted lightness (1-L) from light theme via CSS relative color syntax
|
|
79
|
-
* - Maintains same chroma and hue values for consistency
|
|
80
|
-
* - Ensures WCAG AA contrast ratios in dark environments
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
96
|
declare const darkTheme: ThemeConfig;
|
|
84
97
|
|
|
85
98
|
/**
|
package/dist/tokens.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { c as font, b as fontFamily, f as fontSize, a as fontWeight, l as lineHeight, t as typography } from './index-
|
|
1
|
+
export { c as font, b as fontFamily, f as fontSize, a as fontWeight, l as lineHeight, t as typography } from './index-Cr0GqN7q.mjs';
|
package/dist/tokens.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { c as font, b as fontFamily, f as fontSize, a as fontWeight, l as lineHeight, t as typography } from './index-
|
|
1
|
+
export { c as font, b as fontFamily, f as fontSize, a as fontWeight, l as lineHeight, t as typography } from './index-Cr0GqN7q.js';
|