@comms-id/theme 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 +15 -0
- package/README.md +54 -0
- package/dist/blume.css +26 -0
- package/dist/fonts/README.md +15 -0
- package/dist/fonts/fonts.css +186 -0
- package/dist/fonts/geist-001175b1.woff2 +0 -0
- package/dist/fonts/geist-52306abf.woff2 +0 -0
- package/dist/fonts/geist-875ccdd4.woff2 +0 -0
- package/dist/fonts/geist-98bbbccb.woff2 +0 -0
- package/dist/fonts/geist-OFL.txt +93 -0
- package/dist/fonts/geist-ff2310f5.woff2 +0 -0
- package/dist/fonts/geist-mono-4d8234ac.woff2 +0 -0
- package/dist/fonts/geist-mono-4f7c2feb.woff2 +0 -0
- package/dist/fonts/geist-mono-656587c1.woff2 +0 -0
- package/dist/fonts/geist-mono-6a465c75.woff2 +0 -0
- package/dist/fonts/geist-mono-9c439270.woff2 +0 -0
- package/dist/fonts/geist-mono-a883c2ae.woff2 +0 -0
- package/dist/fonts/geistmono-OFL.txt +93 -0
- package/dist/fonts/inter-1ab1ad55.woff2 +0 -0
- package/dist/fonts/inter-656bbed6.woff2 +0 -0
- package/dist/fonts/inter-6e1a6b2b.woff2 +0 -0
- package/dist/fonts/inter-7249155f.woff2 +0 -0
- package/dist/fonts/inter-749a3084.woff2 +0 -0
- package/dist/fonts/inter-OFL.txt +93 -0
- package/dist/fonts/inter-e34c5f1b.woff2 +0 -0
- package/dist/fonts/inter-fc83e075.woff2 +0 -0
- package/dist/fonts/sha256.json +20 -0
- package/dist/fonts.css +186 -0
- package/dist/index.d.ts +327 -0
- package/dist/index.js +146 -0
- package/dist/native.json +157 -0
- package/dist/shadcn.css +53 -0
- package/dist/tailwind.css +57 -0
- package/dist/tokens.css +144 -0
- package/package.json +53 -0
package/dist/fonts.css
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: Geist;
|
|
3
|
+
font-style: normal;
|
|
4
|
+
font-weight: 100 900;
|
|
5
|
+
font-display: swap;
|
|
6
|
+
src: url("./fonts/geist-ff2310f5.woff2") format("woff2");
|
|
7
|
+
unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: Geist;
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 100 900;
|
|
13
|
+
font-display: swap;
|
|
14
|
+
src: url("./fonts/geist-875ccdd4.woff2") format("woff2");
|
|
15
|
+
unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
|
|
16
|
+
}
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: Geist;
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-weight: 100 900;
|
|
21
|
+
font-display: swap;
|
|
22
|
+
src: url("./fonts/geist-52306abf.woff2") format("woff2");
|
|
23
|
+
unicode-range:
|
|
24
|
+
U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304,
|
|
25
|
+
U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
|
|
26
|
+
}
|
|
27
|
+
@font-face {
|
|
28
|
+
font-family: Geist;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
font-weight: 100 900;
|
|
31
|
+
font-display: swap;
|
|
32
|
+
src: url("./fonts/geist-001175b1.woff2") format("woff2");
|
|
33
|
+
unicode-range:
|
|
34
|
+
U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF,
|
|
35
|
+
U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
36
|
+
}
|
|
37
|
+
@font-face {
|
|
38
|
+
font-family: Geist;
|
|
39
|
+
font-style: normal;
|
|
40
|
+
font-weight: 100 900;
|
|
41
|
+
font-display: swap;
|
|
42
|
+
src: url("./fonts/geist-98bbbccb.woff2") format("woff2");
|
|
43
|
+
unicode-range:
|
|
44
|
+
U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F,
|
|
45
|
+
U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
46
|
+
}
|
|
47
|
+
@font-face {
|
|
48
|
+
font-family: "Geist Fallback";
|
|
49
|
+
src: local("Arial");
|
|
50
|
+
ascent-override: 95.94%;
|
|
51
|
+
descent-override: 28.16%;
|
|
52
|
+
line-gap-override: 0%;
|
|
53
|
+
size-adjust: 104.76%;
|
|
54
|
+
}
|
|
55
|
+
@font-face {
|
|
56
|
+
font-family: "Geist Mono";
|
|
57
|
+
font-style: normal;
|
|
58
|
+
font-weight: 400;
|
|
59
|
+
font-display: swap;
|
|
60
|
+
src: url("./fonts/geist-mono-a883c2ae.woff2") format("woff2");
|
|
61
|
+
unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
62
|
+
}
|
|
63
|
+
@font-face {
|
|
64
|
+
font-family: "Geist Mono";
|
|
65
|
+
font-style: normal;
|
|
66
|
+
font-weight: 400;
|
|
67
|
+
font-display: swap;
|
|
68
|
+
src: url("./fonts/geist-mono-9c439270.woff2") format("woff2");
|
|
69
|
+
unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
|
|
70
|
+
}
|
|
71
|
+
@font-face {
|
|
72
|
+
font-family: "Geist Mono";
|
|
73
|
+
font-style: normal;
|
|
74
|
+
font-weight: 400;
|
|
75
|
+
font-display: swap;
|
|
76
|
+
src: url("./fonts/geist-mono-656587c1.woff2") format("woff2");
|
|
77
|
+
unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
|
|
78
|
+
}
|
|
79
|
+
@font-face {
|
|
80
|
+
font-family: "Geist Mono";
|
|
81
|
+
font-style: normal;
|
|
82
|
+
font-weight: 400;
|
|
83
|
+
font-display: swap;
|
|
84
|
+
src: url("./fonts/geist-mono-4d8234ac.woff2") format("woff2");
|
|
85
|
+
unicode-range:
|
|
86
|
+
U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304,
|
|
87
|
+
U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
|
|
88
|
+
}
|
|
89
|
+
@font-face {
|
|
90
|
+
font-family: "Geist Mono";
|
|
91
|
+
font-style: normal;
|
|
92
|
+
font-weight: 400;
|
|
93
|
+
font-display: swap;
|
|
94
|
+
src: url("./fonts/geist-mono-6a465c75.woff2") format("woff2");
|
|
95
|
+
unicode-range:
|
|
96
|
+
U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF,
|
|
97
|
+
U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
98
|
+
}
|
|
99
|
+
@font-face {
|
|
100
|
+
font-family: "Geist Mono";
|
|
101
|
+
font-style: normal;
|
|
102
|
+
font-weight: 400;
|
|
103
|
+
font-display: swap;
|
|
104
|
+
src: url("./fonts/geist-mono-4f7c2feb.woff2") format("woff2");
|
|
105
|
+
unicode-range:
|
|
106
|
+
U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F,
|
|
107
|
+
U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
108
|
+
}
|
|
109
|
+
@font-face {
|
|
110
|
+
font-family: "Geist Mono Fallback";
|
|
111
|
+
src: local("Arial");
|
|
112
|
+
ascent-override: 74.67%;
|
|
113
|
+
descent-override: 21.92%;
|
|
114
|
+
line-gap-override: 0%;
|
|
115
|
+
size-adjust: 134.59%;
|
|
116
|
+
}
|
|
117
|
+
@font-face {
|
|
118
|
+
font-family: Inter;
|
|
119
|
+
font-style: normal;
|
|
120
|
+
font-weight: 100 900;
|
|
121
|
+
font-display: swap;
|
|
122
|
+
src: url("./fonts/inter-7249155f.woff2") format("woff2");
|
|
123
|
+
unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
124
|
+
}
|
|
125
|
+
@font-face {
|
|
126
|
+
font-family: Inter;
|
|
127
|
+
font-style: normal;
|
|
128
|
+
font-weight: 100 900;
|
|
129
|
+
font-display: swap;
|
|
130
|
+
src: url("./fonts/inter-e34c5f1b.woff2") format("woff2");
|
|
131
|
+
unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
|
|
132
|
+
}
|
|
133
|
+
@font-face {
|
|
134
|
+
font-family: Inter;
|
|
135
|
+
font-style: normal;
|
|
136
|
+
font-weight: 100 900;
|
|
137
|
+
font-display: swap;
|
|
138
|
+
src: url("./fonts/inter-6e1a6b2b.woff2") format("woff2");
|
|
139
|
+
unicode-range: U+1F00-1FFF;
|
|
140
|
+
}
|
|
141
|
+
@font-face {
|
|
142
|
+
font-family: Inter;
|
|
143
|
+
font-style: normal;
|
|
144
|
+
font-weight: 100 900;
|
|
145
|
+
font-display: swap;
|
|
146
|
+
src: url("./fonts/inter-656bbed6.woff2") format("woff2");
|
|
147
|
+
unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
|
|
148
|
+
}
|
|
149
|
+
@font-face {
|
|
150
|
+
font-family: Inter;
|
|
151
|
+
font-style: normal;
|
|
152
|
+
font-weight: 100 900;
|
|
153
|
+
font-display: swap;
|
|
154
|
+
src: url("./fonts/inter-fc83e075.woff2") format("woff2");
|
|
155
|
+
unicode-range:
|
|
156
|
+
U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304,
|
|
157
|
+
U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
|
|
158
|
+
}
|
|
159
|
+
@font-face {
|
|
160
|
+
font-family: Inter;
|
|
161
|
+
font-style: normal;
|
|
162
|
+
font-weight: 100 900;
|
|
163
|
+
font-display: swap;
|
|
164
|
+
src: url("./fonts/inter-749a3084.woff2") format("woff2");
|
|
165
|
+
unicode-range:
|
|
166
|
+
U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF,
|
|
167
|
+
U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
168
|
+
}
|
|
169
|
+
@font-face {
|
|
170
|
+
font-family: Inter;
|
|
171
|
+
font-style: normal;
|
|
172
|
+
font-weight: 100 900;
|
|
173
|
+
font-display: swap;
|
|
174
|
+
src: url("./fonts/inter-1ab1ad55.woff2") format("woff2");
|
|
175
|
+
unicode-range:
|
|
176
|
+
U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F,
|
|
177
|
+
U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
178
|
+
}
|
|
179
|
+
@font-face {
|
|
180
|
+
font-family: "Inter Fallback";
|
|
181
|
+
src: local("Arial");
|
|
182
|
+
ascent-override: 90.44%;
|
|
183
|
+
descent-override: 22.52%;
|
|
184
|
+
line-gap-override: 0%;
|
|
185
|
+
size-adjust: 107.12%;
|
|
186
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/** Shared Comms.ID design tokens. Colours are sRGB HEX. */
|
|
2
|
+
export type Hex = `#${string}`;
|
|
3
|
+
export declare const colors: {
|
|
4
|
+
readonly light: {
|
|
5
|
+
readonly accent: "#f5f5f5";
|
|
6
|
+
readonly "accent-foreground": "#171717";
|
|
7
|
+
readonly background: "#ffffff";
|
|
8
|
+
readonly border: "#e5e5e5";
|
|
9
|
+
readonly card: "#ffffff";
|
|
10
|
+
readonly "card-foreground": "#0a0a0a";
|
|
11
|
+
readonly "chart-1": "#8ec5ff";
|
|
12
|
+
readonly "chart-2": "#2b7fff";
|
|
13
|
+
readonly "chart-3": "#155dfc";
|
|
14
|
+
readonly "chart-4": "#1447e6";
|
|
15
|
+
readonly "chart-5": "#193cb8";
|
|
16
|
+
readonly code: "#f8f8f8";
|
|
17
|
+
readonly "code-foreground": "#0a0a0a";
|
|
18
|
+
readonly "code-highlight": "#f2f2f2";
|
|
19
|
+
readonly "code-number": "#747474";
|
|
20
|
+
readonly destructive: "#e7000b";
|
|
21
|
+
readonly foreground: "#0a0a0a";
|
|
22
|
+
readonly input: "#e5e5e5";
|
|
23
|
+
readonly muted: "#f5f5f5";
|
|
24
|
+
readonly "muted-foreground": "#737373";
|
|
25
|
+
readonly popover: "#ffffff";
|
|
26
|
+
readonly "popover-foreground": "#0a0a0a";
|
|
27
|
+
readonly primary: "#171717";
|
|
28
|
+
readonly "primary-foreground": "#fafafa";
|
|
29
|
+
readonly ring: "#a1a1a1";
|
|
30
|
+
readonly secondary: "#f5f5f5";
|
|
31
|
+
readonly "secondary-foreground": "#171717";
|
|
32
|
+
readonly selection: "#0a0a0a";
|
|
33
|
+
readonly "selection-foreground": "#ffffff";
|
|
34
|
+
readonly sidebar: "#fafafa";
|
|
35
|
+
readonly "sidebar-accent": "#f5f5f5";
|
|
36
|
+
readonly "sidebar-accent-foreground": "#171717";
|
|
37
|
+
readonly "sidebar-border": "#e5e5e5";
|
|
38
|
+
readonly "sidebar-foreground": "#0a0a0a";
|
|
39
|
+
readonly "sidebar-primary": "#171717";
|
|
40
|
+
readonly "sidebar-primary-foreground": "#fafafa";
|
|
41
|
+
readonly "sidebar-ring": "#a1a1a1";
|
|
42
|
+
readonly surface: "#f8f8f8";
|
|
43
|
+
readonly "surface-foreground": "#0a0a0a";
|
|
44
|
+
readonly focus: "#737373";
|
|
45
|
+
readonly "control-border": "#737373";
|
|
46
|
+
readonly "subtle-foreground": "#666666";
|
|
47
|
+
readonly success: "#15803d";
|
|
48
|
+
readonly warning: "#92400e";
|
|
49
|
+
readonly "destructive-foreground": "#ffffff";
|
|
50
|
+
};
|
|
51
|
+
readonly dark: {
|
|
52
|
+
readonly accent: "#404040";
|
|
53
|
+
readonly "accent-foreground": "#fafafa";
|
|
54
|
+
readonly background: "#0a0a0a";
|
|
55
|
+
readonly border: "#ffffff1a";
|
|
56
|
+
readonly card: "#171717";
|
|
57
|
+
readonly "card-foreground": "#fafafa";
|
|
58
|
+
readonly "chart-1": "#8ec5ff";
|
|
59
|
+
readonly "chart-2": "#2b7fff";
|
|
60
|
+
readonly "chart-3": "#155dfc";
|
|
61
|
+
readonly "chart-4": "#1447e6";
|
|
62
|
+
readonly "chart-5": "#193cb8";
|
|
63
|
+
readonly code: "#161616";
|
|
64
|
+
readonly "code-foreground": "#a1a1a1";
|
|
65
|
+
readonly "code-highlight": "#262626";
|
|
66
|
+
readonly "code-number": "#a4a4a4";
|
|
67
|
+
readonly destructive: "#ff6467";
|
|
68
|
+
readonly foreground: "#fafafa";
|
|
69
|
+
readonly input: "#ffffff26";
|
|
70
|
+
readonly muted: "#262626";
|
|
71
|
+
readonly "muted-foreground": "#a1a1a1";
|
|
72
|
+
readonly popover: "#262626";
|
|
73
|
+
readonly "popover-foreground": "#fafafa";
|
|
74
|
+
readonly primary: "#e5e5e5";
|
|
75
|
+
readonly "primary-foreground": "#171717";
|
|
76
|
+
readonly ring: "#737373";
|
|
77
|
+
readonly secondary: "#262626";
|
|
78
|
+
readonly "secondary-foreground": "#fafafa";
|
|
79
|
+
readonly selection: "#e5e5e5";
|
|
80
|
+
readonly "selection-foreground": "#171717";
|
|
81
|
+
readonly sidebar: "#171717";
|
|
82
|
+
readonly "sidebar-accent": "#262626";
|
|
83
|
+
readonly "sidebar-accent-foreground": "#fafafa";
|
|
84
|
+
readonly "sidebar-border": "#ffffff1a";
|
|
85
|
+
readonly "sidebar-foreground": "#fafafa";
|
|
86
|
+
readonly "sidebar-primary": "#1447e6";
|
|
87
|
+
readonly "sidebar-primary-foreground": "#fafafa";
|
|
88
|
+
readonly "sidebar-ring": "#525252";
|
|
89
|
+
readonly surface: "#161616";
|
|
90
|
+
readonly "surface-foreground": "#a1a1a1";
|
|
91
|
+
readonly focus: "#a1a1a1";
|
|
92
|
+
readonly "control-border": "#a1a1a1";
|
|
93
|
+
readonly "subtle-foreground": "#b3b3b3";
|
|
94
|
+
readonly success: "#4ade80";
|
|
95
|
+
readonly warning: "#fbbf24";
|
|
96
|
+
readonly "destructive-foreground": "#171717";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
export type Mode = keyof typeof colors;
|
|
100
|
+
export type Color = keyof typeof colors.light;
|
|
101
|
+
/** Dimensions are pixels; CSS output uses rem at a 16px root. */
|
|
102
|
+
export declare const spacing: {
|
|
103
|
+
readonly none: 0;
|
|
104
|
+
readonly xs: 4;
|
|
105
|
+
readonly sm: 8;
|
|
106
|
+
readonly md: 12;
|
|
107
|
+
readonly lg: 16;
|
|
108
|
+
readonly xl: 24;
|
|
109
|
+
readonly "2xl": 32;
|
|
110
|
+
readonly "3xl": 48;
|
|
111
|
+
readonly "4xl": 64;
|
|
112
|
+
};
|
|
113
|
+
export declare const radius: {
|
|
114
|
+
readonly none: 0;
|
|
115
|
+
readonly sm: 6;
|
|
116
|
+
readonly md: 8;
|
|
117
|
+
readonly lg: 10;
|
|
118
|
+
readonly xl: 14;
|
|
119
|
+
readonly full: 9999;
|
|
120
|
+
};
|
|
121
|
+
export declare const typography: {
|
|
122
|
+
readonly size: {
|
|
123
|
+
readonly xs: 12;
|
|
124
|
+
readonly sm: 14;
|
|
125
|
+
readonly base: 16;
|
|
126
|
+
readonly lg: 18;
|
|
127
|
+
readonly xl: 20;
|
|
128
|
+
readonly "2xl": 24;
|
|
129
|
+
readonly "3xl": 30;
|
|
130
|
+
readonly "4xl": 36;
|
|
131
|
+
readonly "5xl": 48;
|
|
132
|
+
};
|
|
133
|
+
readonly weight: {
|
|
134
|
+
readonly regular: 400;
|
|
135
|
+
readonly medium: 500;
|
|
136
|
+
readonly semibold: 600;
|
|
137
|
+
readonly bold: 700;
|
|
138
|
+
};
|
|
139
|
+
readonly lineHeight: {
|
|
140
|
+
readonly tight: 1.25;
|
|
141
|
+
readonly normal: 1.5;
|
|
142
|
+
readonly relaxed: 1.75;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
export declare const fonts: {
|
|
146
|
+
readonly sans: '"Geist", "Geist Fallback", ui-sans-serif, system-ui, sans-serif';
|
|
147
|
+
readonly mono: '"Geist Mono", "Geist Mono Fallback", ui-monospace, monospace';
|
|
148
|
+
readonly inter: '"Inter", "Inter Fallback", ui-sans-serif, system-ui, sans-serif';
|
|
149
|
+
};
|
|
150
|
+
export declare const motion: {
|
|
151
|
+
readonly fast: 100;
|
|
152
|
+
readonly normal: 150;
|
|
153
|
+
readonly slow: 300;
|
|
154
|
+
readonly reduced: 0;
|
|
155
|
+
readonly easing: "cubic-bezier(0.2, 0, 0, 1)";
|
|
156
|
+
};
|
|
157
|
+
export declare const focus: {
|
|
158
|
+
readonly width: 2;
|
|
159
|
+
readonly offset: 2;
|
|
160
|
+
};
|
|
161
|
+
/** CSS fallback expressions, not declarations on :host: ancestor RP overrides win. */
|
|
162
|
+
export declare const elementDefaults: {
|
|
163
|
+
readonly surface: "var(--comms-id-surface, var(--comms-id-theme-background, #ffffff))";
|
|
164
|
+
readonly text: "var(--comms-id-text, var(--comms-id-theme-foreground, #0a0a0a))";
|
|
165
|
+
readonly border: "var(--comms-id-border, var(--comms-id-theme-control-border, #737373))";
|
|
166
|
+
readonly focus: "var(--comms-id-focus, var(--comms-id-theme-focus, #737373))";
|
|
167
|
+
readonly active: "var(--comms-id-active, var(--comms-id-theme-accent, #f5f5f5))";
|
|
168
|
+
readonly radius: "var(--comms-id-radius, 6px)";
|
|
169
|
+
};
|
|
170
|
+
/** Native consumers choose mode and load the font family through their own runtime. */
|
|
171
|
+
export declare const native: {
|
|
172
|
+
readonly colors: {
|
|
173
|
+
readonly light: {
|
|
174
|
+
readonly accent: "#f5f5f5";
|
|
175
|
+
readonly "accent-foreground": "#171717";
|
|
176
|
+
readonly background: "#ffffff";
|
|
177
|
+
readonly border: "#e5e5e5";
|
|
178
|
+
readonly card: "#ffffff";
|
|
179
|
+
readonly "card-foreground": "#0a0a0a";
|
|
180
|
+
readonly "chart-1": "#8ec5ff";
|
|
181
|
+
readonly "chart-2": "#2b7fff";
|
|
182
|
+
readonly "chart-3": "#155dfc";
|
|
183
|
+
readonly "chart-4": "#1447e6";
|
|
184
|
+
readonly "chart-5": "#193cb8";
|
|
185
|
+
readonly code: "#f8f8f8";
|
|
186
|
+
readonly "code-foreground": "#0a0a0a";
|
|
187
|
+
readonly "code-highlight": "#f2f2f2";
|
|
188
|
+
readonly "code-number": "#747474";
|
|
189
|
+
readonly destructive: "#e7000b";
|
|
190
|
+
readonly foreground: "#0a0a0a";
|
|
191
|
+
readonly input: "#e5e5e5";
|
|
192
|
+
readonly muted: "#f5f5f5";
|
|
193
|
+
readonly "muted-foreground": "#737373";
|
|
194
|
+
readonly popover: "#ffffff";
|
|
195
|
+
readonly "popover-foreground": "#0a0a0a";
|
|
196
|
+
readonly primary: "#171717";
|
|
197
|
+
readonly "primary-foreground": "#fafafa";
|
|
198
|
+
readonly ring: "#a1a1a1";
|
|
199
|
+
readonly secondary: "#f5f5f5";
|
|
200
|
+
readonly "secondary-foreground": "#171717";
|
|
201
|
+
readonly selection: "#0a0a0a";
|
|
202
|
+
readonly "selection-foreground": "#ffffff";
|
|
203
|
+
readonly sidebar: "#fafafa";
|
|
204
|
+
readonly "sidebar-accent": "#f5f5f5";
|
|
205
|
+
readonly "sidebar-accent-foreground": "#171717";
|
|
206
|
+
readonly "sidebar-border": "#e5e5e5";
|
|
207
|
+
readonly "sidebar-foreground": "#0a0a0a";
|
|
208
|
+
readonly "sidebar-primary": "#171717";
|
|
209
|
+
readonly "sidebar-primary-foreground": "#fafafa";
|
|
210
|
+
readonly "sidebar-ring": "#a1a1a1";
|
|
211
|
+
readonly surface: "#f8f8f8";
|
|
212
|
+
readonly "surface-foreground": "#0a0a0a";
|
|
213
|
+
readonly focus: "#737373";
|
|
214
|
+
readonly "control-border": "#737373";
|
|
215
|
+
readonly "subtle-foreground": "#666666";
|
|
216
|
+
readonly success: "#15803d";
|
|
217
|
+
readonly warning: "#92400e";
|
|
218
|
+
readonly "destructive-foreground": "#ffffff";
|
|
219
|
+
};
|
|
220
|
+
readonly dark: {
|
|
221
|
+
readonly accent: "#404040";
|
|
222
|
+
readonly "accent-foreground": "#fafafa";
|
|
223
|
+
readonly background: "#0a0a0a";
|
|
224
|
+
readonly border: "#ffffff1a";
|
|
225
|
+
readonly card: "#171717";
|
|
226
|
+
readonly "card-foreground": "#fafafa";
|
|
227
|
+
readonly "chart-1": "#8ec5ff";
|
|
228
|
+
readonly "chart-2": "#2b7fff";
|
|
229
|
+
readonly "chart-3": "#155dfc";
|
|
230
|
+
readonly "chart-4": "#1447e6";
|
|
231
|
+
readonly "chart-5": "#193cb8";
|
|
232
|
+
readonly code: "#161616";
|
|
233
|
+
readonly "code-foreground": "#a1a1a1";
|
|
234
|
+
readonly "code-highlight": "#262626";
|
|
235
|
+
readonly "code-number": "#a4a4a4";
|
|
236
|
+
readonly destructive: "#ff6467";
|
|
237
|
+
readonly foreground: "#fafafa";
|
|
238
|
+
readonly input: "#ffffff26";
|
|
239
|
+
readonly muted: "#262626";
|
|
240
|
+
readonly "muted-foreground": "#a1a1a1";
|
|
241
|
+
readonly popover: "#262626";
|
|
242
|
+
readonly "popover-foreground": "#fafafa";
|
|
243
|
+
readonly primary: "#e5e5e5";
|
|
244
|
+
readonly "primary-foreground": "#171717";
|
|
245
|
+
readonly ring: "#737373";
|
|
246
|
+
readonly secondary: "#262626";
|
|
247
|
+
readonly "secondary-foreground": "#fafafa";
|
|
248
|
+
readonly selection: "#e5e5e5";
|
|
249
|
+
readonly "selection-foreground": "#171717";
|
|
250
|
+
readonly sidebar: "#171717";
|
|
251
|
+
readonly "sidebar-accent": "#262626";
|
|
252
|
+
readonly "sidebar-accent-foreground": "#fafafa";
|
|
253
|
+
readonly "sidebar-border": "#ffffff1a";
|
|
254
|
+
readonly "sidebar-foreground": "#fafafa";
|
|
255
|
+
readonly "sidebar-primary": "#1447e6";
|
|
256
|
+
readonly "sidebar-primary-foreground": "#fafafa";
|
|
257
|
+
readonly "sidebar-ring": "#525252";
|
|
258
|
+
readonly surface: "#161616";
|
|
259
|
+
readonly "surface-foreground": "#a1a1a1";
|
|
260
|
+
readonly focus: "#a1a1a1";
|
|
261
|
+
readonly "control-border": "#a1a1a1";
|
|
262
|
+
readonly "subtle-foreground": "#b3b3b3";
|
|
263
|
+
readonly success: "#4ade80";
|
|
264
|
+
readonly warning: "#fbbf24";
|
|
265
|
+
readonly "destructive-foreground": "#171717";
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
readonly spacing: {
|
|
269
|
+
readonly none: 0;
|
|
270
|
+
readonly xs: 4;
|
|
271
|
+
readonly sm: 8;
|
|
272
|
+
readonly md: 12;
|
|
273
|
+
readonly lg: 16;
|
|
274
|
+
readonly xl: 24;
|
|
275
|
+
readonly "2xl": 32;
|
|
276
|
+
readonly "3xl": 48;
|
|
277
|
+
readonly "4xl": 64;
|
|
278
|
+
};
|
|
279
|
+
readonly radius: {
|
|
280
|
+
readonly none: 0;
|
|
281
|
+
readonly sm: 6;
|
|
282
|
+
readonly md: 8;
|
|
283
|
+
readonly lg: 10;
|
|
284
|
+
readonly xl: 14;
|
|
285
|
+
readonly full: 9999;
|
|
286
|
+
};
|
|
287
|
+
readonly typography: {
|
|
288
|
+
readonly size: {
|
|
289
|
+
readonly xs: 12;
|
|
290
|
+
readonly sm: 14;
|
|
291
|
+
readonly base: 16;
|
|
292
|
+
readonly lg: 18;
|
|
293
|
+
readonly xl: 20;
|
|
294
|
+
readonly "2xl": 24;
|
|
295
|
+
readonly "3xl": 30;
|
|
296
|
+
readonly "4xl": 36;
|
|
297
|
+
readonly "5xl": 48;
|
|
298
|
+
};
|
|
299
|
+
readonly weight: {
|
|
300
|
+
readonly regular: 400;
|
|
301
|
+
readonly medium: 500;
|
|
302
|
+
readonly semibold: 600;
|
|
303
|
+
readonly bold: 700;
|
|
304
|
+
};
|
|
305
|
+
readonly lineHeight: {
|
|
306
|
+
readonly tight: 1.25;
|
|
307
|
+
readonly normal: 1.5;
|
|
308
|
+
readonly relaxed: 1.75;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
readonly motion: {
|
|
312
|
+
readonly fast: 100;
|
|
313
|
+
readonly normal: 150;
|
|
314
|
+
readonly slow: 300;
|
|
315
|
+
readonly reduced: 0;
|
|
316
|
+
readonly easing: "cubic-bezier(0.2, 0, 0, 1)";
|
|
317
|
+
};
|
|
318
|
+
readonly focus: {
|
|
319
|
+
readonly width: 2;
|
|
320
|
+
readonly offset: 2;
|
|
321
|
+
};
|
|
322
|
+
readonly fonts: {
|
|
323
|
+
readonly sans: "Geist";
|
|
324
|
+
readonly mono: "Geist Mono";
|
|
325
|
+
readonly inter: "Inter";
|
|
326
|
+
};
|
|
327
|
+
};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
export const colors = {
|
|
2
|
+
light: {
|
|
3
|
+
accent: "#f5f5f5",
|
|
4
|
+
"accent-foreground": "#171717",
|
|
5
|
+
background: "#ffffff",
|
|
6
|
+
border: "#e5e5e5",
|
|
7
|
+
card: "#ffffff",
|
|
8
|
+
"card-foreground": "#0a0a0a",
|
|
9
|
+
"chart-1": "#8ec5ff",
|
|
10
|
+
"chart-2": "#2b7fff",
|
|
11
|
+
"chart-3": "#155dfc",
|
|
12
|
+
"chart-4": "#1447e6",
|
|
13
|
+
"chart-5": "#193cb8",
|
|
14
|
+
code: "#f8f8f8",
|
|
15
|
+
"code-foreground": "#0a0a0a",
|
|
16
|
+
"code-highlight": "#f2f2f2",
|
|
17
|
+
"code-number": "#747474",
|
|
18
|
+
destructive: "#e7000b",
|
|
19
|
+
foreground: "#0a0a0a",
|
|
20
|
+
input: "#e5e5e5",
|
|
21
|
+
muted: "#f5f5f5",
|
|
22
|
+
"muted-foreground": "#737373",
|
|
23
|
+
popover: "#ffffff",
|
|
24
|
+
"popover-foreground": "#0a0a0a",
|
|
25
|
+
primary: "#171717",
|
|
26
|
+
"primary-foreground": "#fafafa",
|
|
27
|
+
ring: "#a1a1a1",
|
|
28
|
+
secondary: "#f5f5f5",
|
|
29
|
+
"secondary-foreground": "#171717",
|
|
30
|
+
selection: "#0a0a0a",
|
|
31
|
+
"selection-foreground": "#ffffff",
|
|
32
|
+
sidebar: "#fafafa",
|
|
33
|
+
"sidebar-accent": "#f5f5f5",
|
|
34
|
+
"sidebar-accent-foreground": "#171717",
|
|
35
|
+
"sidebar-border": "#e5e5e5",
|
|
36
|
+
"sidebar-foreground": "#0a0a0a",
|
|
37
|
+
"sidebar-primary": "#171717",
|
|
38
|
+
"sidebar-primary-foreground": "#fafafa",
|
|
39
|
+
"sidebar-ring": "#a1a1a1",
|
|
40
|
+
surface: "#f8f8f8",
|
|
41
|
+
"surface-foreground": "#0a0a0a",
|
|
42
|
+
focus: "#737373",
|
|
43
|
+
"control-border": "#737373",
|
|
44
|
+
"subtle-foreground": "#666666",
|
|
45
|
+
success: "#15803d",
|
|
46
|
+
warning: "#92400e",
|
|
47
|
+
"destructive-foreground": "#ffffff",
|
|
48
|
+
},
|
|
49
|
+
dark: {
|
|
50
|
+
accent: "#404040",
|
|
51
|
+
"accent-foreground": "#fafafa",
|
|
52
|
+
background: "#0a0a0a",
|
|
53
|
+
border: "#ffffff1a",
|
|
54
|
+
card: "#171717",
|
|
55
|
+
"card-foreground": "#fafafa",
|
|
56
|
+
"chart-1": "#8ec5ff",
|
|
57
|
+
"chart-2": "#2b7fff",
|
|
58
|
+
"chart-3": "#155dfc",
|
|
59
|
+
"chart-4": "#1447e6",
|
|
60
|
+
"chart-5": "#193cb8",
|
|
61
|
+
code: "#161616",
|
|
62
|
+
"code-foreground": "#a1a1a1",
|
|
63
|
+
"code-highlight": "#262626",
|
|
64
|
+
"code-number": "#a4a4a4",
|
|
65
|
+
destructive: "#ff6467",
|
|
66
|
+
foreground: "#fafafa",
|
|
67
|
+
input: "#ffffff26",
|
|
68
|
+
muted: "#262626",
|
|
69
|
+
"muted-foreground": "#a1a1a1",
|
|
70
|
+
popover: "#262626",
|
|
71
|
+
"popover-foreground": "#fafafa",
|
|
72
|
+
primary: "#e5e5e5",
|
|
73
|
+
"primary-foreground": "#171717",
|
|
74
|
+
ring: "#737373",
|
|
75
|
+
secondary: "#262626",
|
|
76
|
+
"secondary-foreground": "#fafafa",
|
|
77
|
+
selection: "#e5e5e5",
|
|
78
|
+
"selection-foreground": "#171717",
|
|
79
|
+
sidebar: "#171717",
|
|
80
|
+
"sidebar-accent": "#262626",
|
|
81
|
+
"sidebar-accent-foreground": "#fafafa",
|
|
82
|
+
"sidebar-border": "#ffffff1a",
|
|
83
|
+
"sidebar-foreground": "#fafafa",
|
|
84
|
+
"sidebar-primary": "#1447e6",
|
|
85
|
+
"sidebar-primary-foreground": "#fafafa",
|
|
86
|
+
"sidebar-ring": "#525252",
|
|
87
|
+
surface: "#161616",
|
|
88
|
+
"surface-foreground": "#a1a1a1",
|
|
89
|
+
focus: "#a1a1a1",
|
|
90
|
+
"control-border": "#a1a1a1",
|
|
91
|
+
"subtle-foreground": "#b3b3b3",
|
|
92
|
+
success: "#4ade80",
|
|
93
|
+
warning: "#fbbf24",
|
|
94
|
+
"destructive-foreground": "#171717",
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
/** Dimensions are pixels; CSS output uses rem at a 16px root. */
|
|
98
|
+
export const spacing = {
|
|
99
|
+
none: 0,
|
|
100
|
+
xs: 4,
|
|
101
|
+
sm: 8,
|
|
102
|
+
md: 12,
|
|
103
|
+
lg: 16,
|
|
104
|
+
xl: 24,
|
|
105
|
+
"2xl": 32,
|
|
106
|
+
"3xl": 48,
|
|
107
|
+
"4xl": 64,
|
|
108
|
+
};
|
|
109
|
+
export const radius = { none: 0, sm: 6, md: 8, lg: 10, xl: 14, full: 9999 };
|
|
110
|
+
export const typography = {
|
|
111
|
+
size: { xs: 12, sm: 14, base: 16, lg: 18, xl: 20, "2xl": 24, "3xl": 30, "4xl": 36, "5xl": 48 },
|
|
112
|
+
weight: { regular: 400, medium: 500, semibold: 600, bold: 700 },
|
|
113
|
+
lineHeight: { tight: 1.25, normal: 1.5, relaxed: 1.75 },
|
|
114
|
+
};
|
|
115
|
+
export const fonts = {
|
|
116
|
+
sans: '"Geist", "Geist Fallback", ui-sans-serif, system-ui, sans-serif',
|
|
117
|
+
mono: '"Geist Mono", "Geist Mono Fallback", ui-monospace, monospace',
|
|
118
|
+
inter: '"Inter", "Inter Fallback", ui-sans-serif, system-ui, sans-serif',
|
|
119
|
+
};
|
|
120
|
+
export const motion = {
|
|
121
|
+
fast: 100,
|
|
122
|
+
normal: 150,
|
|
123
|
+
slow: 300,
|
|
124
|
+
reduced: 0,
|
|
125
|
+
easing: "cubic-bezier(0.2, 0, 0, 1)",
|
|
126
|
+
};
|
|
127
|
+
export const focus = { width: 2, offset: 2 };
|
|
128
|
+
/** CSS fallback expressions, not declarations on :host: ancestor RP overrides win. */
|
|
129
|
+
export const elementDefaults = {
|
|
130
|
+
surface: `var(--comms-id-surface, var(--comms-id-theme-background, ${colors.light.background}))`,
|
|
131
|
+
text: `var(--comms-id-text, var(--comms-id-theme-foreground, ${colors.light.foreground}))`,
|
|
132
|
+
border: `var(--comms-id-border, var(--comms-id-theme-control-border, ${colors.light["control-border"]}))`,
|
|
133
|
+
focus: `var(--comms-id-focus, var(--comms-id-theme-focus, ${colors.light.focus}))`,
|
|
134
|
+
active: `var(--comms-id-active, var(--comms-id-theme-accent, ${colors.light.accent}))`,
|
|
135
|
+
radius: `var(--comms-id-radius, ${radius.sm}px)`,
|
|
136
|
+
};
|
|
137
|
+
/** Native consumers choose mode and load the font family through their own runtime. */
|
|
138
|
+
export const native = {
|
|
139
|
+
colors,
|
|
140
|
+
spacing,
|
|
141
|
+
radius,
|
|
142
|
+
typography,
|
|
143
|
+
motion,
|
|
144
|
+
focus,
|
|
145
|
+
fonts: { sans: "Geist", mono: "Geist Mono", inter: "Inter" },
|
|
146
|
+
};
|