@blenx-dev/theme 0.0.3 → 0.1.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/.turbo/turbo-check-types.log +1 -0
- package/CHANGELOG.md +13 -0
- package/package.json +9 -24
- package/src/contract.css.ts +44 -0
- package/src/index.ts +3 -0
- package/src/light-theme.css.ts +107 -0
- package/src/reset.css.ts +48 -0
- package/src/tokens.css.ts +159 -0
- package/tsconfig.json +9 -0
- package/contract.css.d.ts +0 -42
- package/contract.js +0 -46
- package/index.d.ts +0 -3
- package/index.js +0 -4
- package/light-theme.css.d.ts +0 -2
- package/light-theme.js +0 -5
- package/theme.css +0 -2
- package/tokens.css.d.ts +0 -131
- package/tokens.js +0 -123
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[0m[2m[35m$[0m [2m[1mtsc --noEmit[0m
|
package/CHANGELOG.md
ADDED
package/package.json
CHANGED
|
@@ -1,33 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blenx-dev/theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"exports": {
|
|
7
|
+
"./contract": "./src/contract.css.ts",
|
|
8
|
+
"./tokens": "./src/tokens.css.ts",
|
|
9
|
+
"./light-theme": "./src/light-theme.css.ts",
|
|
10
|
+
"./reset": "./src/reset.css.ts"
|
|
11
|
+
},
|
|
5
12
|
"publishConfig": {
|
|
6
13
|
"access": "public"
|
|
7
14
|
},
|
|
8
|
-
"sideEffects": [
|
|
9
|
-
"./theme.css"
|
|
10
|
-
],
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"types": "./index.d.ts",
|
|
14
|
-
"import": "./index.js"
|
|
15
|
-
},
|
|
16
|
-
"./contract": {
|
|
17
|
-
"types": "./contract.css.d.ts",
|
|
18
|
-
"import": "./contract.js"
|
|
19
|
-
},
|
|
20
|
-
"./tokens": {
|
|
21
|
-
"types": "./tokens.css.d.ts",
|
|
22
|
-
"import": "./tokens.js"
|
|
23
|
-
},
|
|
24
|
-
"./light-theme": {
|
|
25
|
-
"types": "./light-theme.css.d.ts",
|
|
26
|
-
"import": "./light-theme.js"
|
|
27
|
-
},
|
|
28
|
-
"./theme.css": "./theme.css"
|
|
29
|
-
},
|
|
30
15
|
"dependencies": {
|
|
31
16
|
"@vanilla-extract/css": "^1.20.1"
|
|
32
17
|
}
|
|
33
|
-
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createThemeContract } from "@vanilla-extract/css";
|
|
2
|
+
|
|
3
|
+
export const themeContract = createThemeContract({
|
|
4
|
+
primary: "primary",
|
|
5
|
+
primarySubtle: "primary-subtle",
|
|
6
|
+
secondary: "secondary",
|
|
7
|
+
primaryHover: "primary-hover",
|
|
8
|
+
contentPrimary: "content-primary",
|
|
9
|
+
contentSecondary: "content-secondary",
|
|
10
|
+
contentDisabled: "content-disabled",
|
|
11
|
+
contentAccent: "content-accent",
|
|
12
|
+
contentOnPrimary: "content-on-primary",
|
|
13
|
+
surface: "surface",
|
|
14
|
+
surfaceSubtle: "surface-subtle",
|
|
15
|
+
surfaceRaised: "surface-raised",
|
|
16
|
+
surfaceHover: "surface-hover",
|
|
17
|
+
surfaceOverlay: "surface-overlay",
|
|
18
|
+
border: "border",
|
|
19
|
+
borderSubtle: "border-subtle",
|
|
20
|
+
borderStrong: "border-strong",
|
|
21
|
+
borderRadius: "border-radius",
|
|
22
|
+
background: "background",
|
|
23
|
+
backgroundSubtle: "background-subtle",
|
|
24
|
+
sentimentPositive: "sentiment-positive",
|
|
25
|
+
sentimentPositiveSubtle: "sentiment-positive-subtle",
|
|
26
|
+
sentimentPositiveHover: "sentiment-positive-hover",
|
|
27
|
+
sentimentWarning: "sentiment-warning",
|
|
28
|
+
sentimentWarningSubtle: "sentiment-warning-subtle",
|
|
29
|
+
sentimentWarningHover: "sentiment-warning-hover",
|
|
30
|
+
sentimentNegative: "sentiment-negative",
|
|
31
|
+
sentimentNegativeSubtle: "sentiment-negative-subtle",
|
|
32
|
+
sentimentNegativeHover: "sentiment-negative-hover",
|
|
33
|
+
sentimentInfo: "sentiment-info",
|
|
34
|
+
sentimentInfoSubtle: "sentiment-info-subtle",
|
|
35
|
+
sentimentInfoHover: "sentiment-info-hover",
|
|
36
|
+
focusRing: "focus-ring",
|
|
37
|
+
shadowSm: "shadow-sm",
|
|
38
|
+
shadowMd: "shadow-md",
|
|
39
|
+
shadowLg: "shadow-lg",
|
|
40
|
+
shadowXl: "shadow-xl",
|
|
41
|
+
fontSize: "font-size",
|
|
42
|
+
hoverOverlay: "hover-overlay",
|
|
43
|
+
hoverOverlaySoft: "hover-overlay-soft",
|
|
44
|
+
});
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { createTheme } from "@vanilla-extract/css";
|
|
2
|
+
import { themeContract } from "./contract.css";
|
|
3
|
+
|
|
4
|
+
export const [themeClass, themeVars] = createTheme(themeContract, {
|
|
5
|
+
primary: "#1c1917",
|
|
6
|
+
primarySubtle: "#57534e",
|
|
7
|
+
secondary: "#4f5d95",
|
|
8
|
+
focusRing: "#5b5fc7",
|
|
9
|
+
|
|
10
|
+
background: "#f5f3ef",
|
|
11
|
+
backgroundSubtle: "#edeae4",
|
|
12
|
+
|
|
13
|
+
surface: "#ffffff",
|
|
14
|
+
surfaceSubtle: "#faf9f7",
|
|
15
|
+
surfaceRaised: "#ffffff",
|
|
16
|
+
surfaceHover: "#edeae4",
|
|
17
|
+
surfaceOverlay: "rgba(28,25,23,0.35)",
|
|
18
|
+
|
|
19
|
+
border: "#e2ddd6",
|
|
20
|
+
borderSubtle: "#edeae4",
|
|
21
|
+
borderStrong: "#c8c1b5",
|
|
22
|
+
|
|
23
|
+
contentPrimary: "#1c1917",
|
|
24
|
+
contentSecondary: "#57534e",
|
|
25
|
+
contentDisabled: "#a8a29e",
|
|
26
|
+
contentAccent: "#1c1917",
|
|
27
|
+
contentOnPrimary: "#ffffff",
|
|
28
|
+
|
|
29
|
+
sentimentNegative: "#ef4444",
|
|
30
|
+
sentimentNegativeSubtle: "#fef2f2",
|
|
31
|
+
sentimentPositive: "#10b981",
|
|
32
|
+
sentimentPositiveSubtle: "#ecfdf5",
|
|
33
|
+
sentimentWarning: "#f59e0b",
|
|
34
|
+
sentimentWarningSubtle: "#fffbeb",
|
|
35
|
+
sentimentInfo: "#0ea5e9",
|
|
36
|
+
sentimentInfoSubtle: "#f0f9ff",
|
|
37
|
+
|
|
38
|
+
shadowSm: "0 1px 3px rgba(28,25,23,0.07), 0 1px 2px rgba(28,25,23,0.04)",
|
|
39
|
+
shadowMd: "0 4px 12px rgba(28,25,23,0.09), 0 2px 4px rgba(28,25,23,0.05)",
|
|
40
|
+
shadowLg: "0 8px 24px rgba(28,25,23,0.11), 0 4px 8px rgba(28,25,23,0.05)",
|
|
41
|
+
shadowXl: "0 20px 48px rgba(28,25,23,0.14), 0 8px 16px rgba(28,25,23,0.07)",
|
|
42
|
+
|
|
43
|
+
primaryHover: "#292524",
|
|
44
|
+
sentimentPositiveHover: "#059669",
|
|
45
|
+
sentimentWarningHover: "#d97706",
|
|
46
|
+
sentimentNegativeHover: "#dc2626",
|
|
47
|
+
sentimentInfoHover: "#0284c7",
|
|
48
|
+
|
|
49
|
+
hoverOverlay: "rgba(28,25,23,0.05)",
|
|
50
|
+
hoverOverlaySoft: "rgba(28,25,23,0.10)",
|
|
51
|
+
|
|
52
|
+
fontSize: "16px",
|
|
53
|
+
borderRadius: "12px",
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export const darkThemeClass = createTheme(themeContract, {
|
|
57
|
+
primary: "#f5f3ef",
|
|
58
|
+
primarySubtle: "#d4cec5",
|
|
59
|
+
secondary: "#8ea0ff",
|
|
60
|
+
|
|
61
|
+
background: "#0f0e0c",
|
|
62
|
+
backgroundSubtle: "#1a1916",
|
|
63
|
+
|
|
64
|
+
surface: "#1a1916",
|
|
65
|
+
surfaceSubtle: "#242320",
|
|
66
|
+
surfaceRaised: "#2e2c28",
|
|
67
|
+
surfaceHover: "#2e2c28",
|
|
68
|
+
surfaceOverlay: "rgba(0,0,0,0.75)",
|
|
69
|
+
|
|
70
|
+
border: "#2e2c28",
|
|
71
|
+
borderSubtle: "#242320",
|
|
72
|
+
borderStrong: "#3c3a35",
|
|
73
|
+
|
|
74
|
+
contentPrimary: "#f5f3ef",
|
|
75
|
+
contentSecondary: "#a8a29e",
|
|
76
|
+
contentDisabled: "#57534e",
|
|
77
|
+
contentAccent: "#f5f3ef",
|
|
78
|
+
contentOnPrimary: "#0f0e0c",
|
|
79
|
+
|
|
80
|
+
focusRing: "#818cf8",
|
|
81
|
+
|
|
82
|
+
sentimentNegative: "#f87171",
|
|
83
|
+
sentimentNegativeSubtle: "#450a0a",
|
|
84
|
+
sentimentPositive: "#34d399",
|
|
85
|
+
sentimentPositiveSubtle: "#064e3b",
|
|
86
|
+
sentimentWarning: "#fbbf24",
|
|
87
|
+
sentimentWarningSubtle: "#451a03",
|
|
88
|
+
sentimentInfo: "#38bdf8",
|
|
89
|
+
sentimentInfoSubtle: "#082f49",
|
|
90
|
+
|
|
91
|
+
shadowSm: "0 1px 3px rgba(0,0,0,0.28), 0 1px 2px rgba(0,0,0,0.18)",
|
|
92
|
+
shadowMd: "0 4px 12px rgba(0,0,0,0.32), 0 2px 4px rgba(0,0,0,0.18)",
|
|
93
|
+
shadowLg: "0 8px 24px rgba(0,0,0,0.38), 0 4px 8px rgba(0,0,0,0.22)",
|
|
94
|
+
shadowXl: "0 20px 48px rgba(0,0,0,0.48), 0 8px 16px rgba(0,0,0,0.28)",
|
|
95
|
+
|
|
96
|
+
primaryHover: "#e7e3dc",
|
|
97
|
+
sentimentPositiveHover: "#6ee7b7",
|
|
98
|
+
sentimentWarningHover: "#fcd34d",
|
|
99
|
+
sentimentNegativeHover: "#fca5a5",
|
|
100
|
+
sentimentInfoHover: "#7dd3fc",
|
|
101
|
+
|
|
102
|
+
hoverOverlay: "rgba(245,243,239,0.07)",
|
|
103
|
+
hoverOverlaySoft: "rgba(245,243,239,0.13)",
|
|
104
|
+
|
|
105
|
+
fontSize: "16px",
|
|
106
|
+
borderRadius: "12px",
|
|
107
|
+
});
|
package/src/reset.css.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { globalStyle } from "@vanilla-extract/css";
|
|
2
|
+
|
|
3
|
+
globalStyle("*", {
|
|
4
|
+
margin: 0,
|
|
5
|
+
padding: 0,
|
|
6
|
+
boxSizing: "border-box",
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
globalStyle("*::before, *::after", {
|
|
10
|
+
boxSizing: "border-box",
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
globalStyle("html, body", {
|
|
14
|
+
margin: 0,
|
|
15
|
+
padding: 0,
|
|
16
|
+
minHeight: "100%",
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
globalStyle("body", {
|
|
20
|
+
lineHeight: 1.5,
|
|
21
|
+
WebkitFontSmoothing: "antialiased",
|
|
22
|
+
MozOsxFontSmoothing: "grayscale",
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
globalStyle("h1, h2, h3, h4, h5, h6", {
|
|
26
|
+
fontSize: "inherit",
|
|
27
|
+
fontWeight: "inherit",
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
globalStyle("ul, ol", {
|
|
31
|
+
margin: 0,
|
|
32
|
+
padding: 0,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
globalStyle("img, picture, video, canvas, svg", {
|
|
36
|
+
display: "block",
|
|
37
|
+
maxWidth: "100%",
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
globalStyle("button,a,input, textarea, select", {
|
|
41
|
+
font: "inherit",
|
|
42
|
+
color: "inherit",
|
|
43
|
+
textDecoration: "none",
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
globalStyle("#root", {
|
|
47
|
+
minHeight: "100vh",
|
|
48
|
+
});
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { style } from "@vanilla-extract/css";
|
|
2
|
+
import { themeContract } from "./contract.css";
|
|
3
|
+
|
|
4
|
+
export const borderRadius = {
|
|
5
|
+
xs: "2px",
|
|
6
|
+
sm: "4px",
|
|
7
|
+
md: "8px",
|
|
8
|
+
lg: "12px",
|
|
9
|
+
xl: "16px",
|
|
10
|
+
xxl: "24px",
|
|
11
|
+
full: "999px",
|
|
12
|
+
} as const;
|
|
13
|
+
|
|
14
|
+
export const fonts = {
|
|
15
|
+
sans: '"DM Sans", system-ui, -apple-system, sans-serif',
|
|
16
|
+
body: '"DM Sans", system-ui, sans-serif',
|
|
17
|
+
mono: '"DM Mono", ui-monospace, SFMono-Regular, monospace',
|
|
18
|
+
} as const;
|
|
19
|
+
|
|
20
|
+
export const fontSize = {
|
|
21
|
+
xxs: "10px",
|
|
22
|
+
xs: "12px",
|
|
23
|
+
sm: "14px",
|
|
24
|
+
md: "16px",
|
|
25
|
+
lg: "18px",
|
|
26
|
+
xl: "20px",
|
|
27
|
+
xxl: "24px",
|
|
28
|
+
xxxl: "30px",
|
|
29
|
+
display: "36px",
|
|
30
|
+
displayLg: "48px",
|
|
31
|
+
hero: "60px",
|
|
32
|
+
} as const;
|
|
33
|
+
|
|
34
|
+
export const fontWeight = {
|
|
35
|
+
regular: "400",
|
|
36
|
+
medium: "500",
|
|
37
|
+
semibold: "600",
|
|
38
|
+
bold: "700",
|
|
39
|
+
extrabold: "800",
|
|
40
|
+
} as const;
|
|
41
|
+
|
|
42
|
+
export const lineHeight = {
|
|
43
|
+
tight: "1.2",
|
|
44
|
+
snug: "1.35",
|
|
45
|
+
normal: "1.5",
|
|
46
|
+
relaxed: "1.625",
|
|
47
|
+
loose: "1.8",
|
|
48
|
+
} as const;
|
|
49
|
+
|
|
50
|
+
export const letterSpacing = {
|
|
51
|
+
tight: "-0.04em",
|
|
52
|
+
snug: "-0.02em",
|
|
53
|
+
normal: "0",
|
|
54
|
+
wide: "0.02em",
|
|
55
|
+
wider: "0.05em",
|
|
56
|
+
widest: "0.1em",
|
|
57
|
+
} as const;
|
|
58
|
+
|
|
59
|
+
export const spacing = {
|
|
60
|
+
none: "0px",
|
|
61
|
+
xxs: "4px",
|
|
62
|
+
xs: "8px",
|
|
63
|
+
sm: "12px",
|
|
64
|
+
md: "16px",
|
|
65
|
+
lg: "24px",
|
|
66
|
+
xl: "32px",
|
|
67
|
+
xxl: "48px",
|
|
68
|
+
xxxl: "64px",
|
|
69
|
+
huge: "80px",
|
|
70
|
+
massive: "96px",
|
|
71
|
+
titanic: "192px",
|
|
72
|
+
"0": "0px",
|
|
73
|
+
"0.5": "2px",
|
|
74
|
+
"1": "4px",
|
|
75
|
+
"2": "8px",
|
|
76
|
+
"3": "12px",
|
|
77
|
+
"4": "16px",
|
|
78
|
+
"5": "20px",
|
|
79
|
+
"6": "24px",
|
|
80
|
+
"7": "28px",
|
|
81
|
+
"8": "32px",
|
|
82
|
+
"9": "36px",
|
|
83
|
+
"10": "40px",
|
|
84
|
+
"12": "48px",
|
|
85
|
+
"16": "64px",
|
|
86
|
+
"20": "80px",
|
|
87
|
+
"24": "96px",
|
|
88
|
+
"32": "128px",
|
|
89
|
+
"40": "160px",
|
|
90
|
+
"48": "192px",
|
|
91
|
+
} as const;
|
|
92
|
+
|
|
93
|
+
export const mediaQueries = {
|
|
94
|
+
sm: "screen and (min-width: 640px)",
|
|
95
|
+
md: "screen and (min-width: 768px)",
|
|
96
|
+
lg: "screen and (min-width: 1024px)",
|
|
97
|
+
xl: "screen and (min-width: 1280px)",
|
|
98
|
+
xxl: "screen and (min-width: 1536px)",
|
|
99
|
+
dark: "(prefers-color-scheme: dark)",
|
|
100
|
+
} as const;
|
|
101
|
+
|
|
102
|
+
export const primitives = {
|
|
103
|
+
trigger: style({
|
|
104
|
+
appearance: "none",
|
|
105
|
+
backgroundColor: "transparent",
|
|
106
|
+
border: "none",
|
|
107
|
+
font: "inherit",
|
|
108
|
+
color: "inherit",
|
|
109
|
+
textDecoration: "none",
|
|
110
|
+
borderWidth: 0,
|
|
111
|
+
WebkitTapHighlightColor: "transparent",
|
|
112
|
+
}),
|
|
113
|
+
focusable: style({
|
|
114
|
+
outline: "none",
|
|
115
|
+
selectors: {
|
|
116
|
+
"&:focus-visible": {
|
|
117
|
+
outline: `2px solid ${themeContract.focusRing}`,
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
}),
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
export const borderWidth = {
|
|
124
|
+
hairline: "0.5px",
|
|
125
|
+
thin: "1px",
|
|
126
|
+
medium: "1.5px",
|
|
127
|
+
thick: "2px",
|
|
128
|
+
heavy: "3px",
|
|
129
|
+
} as const;
|
|
130
|
+
|
|
131
|
+
export const duration = {
|
|
132
|
+
instant: "50ms",
|
|
133
|
+
fast: "100ms",
|
|
134
|
+
normal: "200ms",
|
|
135
|
+
slow: "300ms",
|
|
136
|
+
slower: "500ms",
|
|
137
|
+
lazy: "700ms",
|
|
138
|
+
} as const;
|
|
139
|
+
|
|
140
|
+
export const easing = {
|
|
141
|
+
linear: "linear",
|
|
142
|
+
standard: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
143
|
+
enter: "cubic-bezier(0, 0, 0.2, 1)",
|
|
144
|
+
exit: "cubic-bezier(0.4, 0, 1, 1)",
|
|
145
|
+
spring: "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
146
|
+
bounce: "cubic-bezier(0.68, -0.55, 0.27, 1.55)",
|
|
147
|
+
} as const;
|
|
148
|
+
|
|
149
|
+
export const zIndex = {
|
|
150
|
+
base: 0,
|
|
151
|
+
raised: 100,
|
|
152
|
+
floating: 1000,
|
|
153
|
+
sticky: 1100,
|
|
154
|
+
overlay: 1200,
|
|
155
|
+
popover: 1300,
|
|
156
|
+
modal: 1400,
|
|
157
|
+
toast: 1500,
|
|
158
|
+
tooltip: 1600,
|
|
159
|
+
} as const;
|
package/tsconfig.json
ADDED
package/contract.css.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export declare const themeContract: {
|
|
2
|
-
primary: `var(--${string})`;
|
|
3
|
-
primarySubtle: `var(--${string})`;
|
|
4
|
-
secondary: `var(--${string})`;
|
|
5
|
-
primaryHover: `var(--${string})`;
|
|
6
|
-
contentPrimary: `var(--${string})`;
|
|
7
|
-
contentSecondary: `var(--${string})`;
|
|
8
|
-
contentDisabled: `var(--${string})`;
|
|
9
|
-
contentAccent: `var(--${string})`;
|
|
10
|
-
contentOnPrimary: `var(--${string})`;
|
|
11
|
-
surface: `var(--${string})`;
|
|
12
|
-
surfaceSubtle: `var(--${string})`;
|
|
13
|
-
surfaceRaised: `var(--${string})`;
|
|
14
|
-
surfaceHover: `var(--${string})`;
|
|
15
|
-
surfaceOverlay: `var(--${string})`;
|
|
16
|
-
border: `var(--${string})`;
|
|
17
|
-
borderSubtle: `var(--${string})`;
|
|
18
|
-
borderStrong: `var(--${string})`;
|
|
19
|
-
borderRadius: `var(--${string})`;
|
|
20
|
-
background: `var(--${string})`;
|
|
21
|
-
backgroundSubtle: `var(--${string})`;
|
|
22
|
-
sentimentPositive: `var(--${string})`;
|
|
23
|
-
sentimentPositiveSubtle: `var(--${string})`;
|
|
24
|
-
sentimentPositiveHover: `var(--${string})`;
|
|
25
|
-
sentimentWarning: `var(--${string})`;
|
|
26
|
-
sentimentWarningSubtle: `var(--${string})`;
|
|
27
|
-
sentimentWarningHover: `var(--${string})`;
|
|
28
|
-
sentimentNegative: `var(--${string})`;
|
|
29
|
-
sentimentNegativeSubtle: `var(--${string})`;
|
|
30
|
-
sentimentNegativeHover: `var(--${string})`;
|
|
31
|
-
sentimentInfo: `var(--${string})`;
|
|
32
|
-
sentimentInfoSubtle: `var(--${string})`;
|
|
33
|
-
sentimentInfoHover: `var(--${string})`;
|
|
34
|
-
focusRing: `var(--${string})`;
|
|
35
|
-
shadowSm: `var(--${string})`;
|
|
36
|
-
shadowMd: `var(--${string})`;
|
|
37
|
-
shadowLg: `var(--${string})`;
|
|
38
|
-
shadowXl: `var(--${string})`;
|
|
39
|
-
fontSize: `var(--${string})`;
|
|
40
|
-
hoverOverlay: `var(--${string})`;
|
|
41
|
-
hoverOverlaySoft: `var(--${string})`;
|
|
42
|
-
};
|
package/contract.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
//#region src/contract.css.ts
|
|
3
|
-
var e = {
|
|
4
|
-
primary: "var(--_1sm466m0)",
|
|
5
|
-
primarySubtle: "var(--_1sm466m1)",
|
|
6
|
-
secondary: "var(--_1sm466m2)",
|
|
7
|
-
primaryHover: "var(--_1sm466m3)",
|
|
8
|
-
contentPrimary: "var(--_1sm466m4)",
|
|
9
|
-
contentSecondary: "var(--_1sm466m5)",
|
|
10
|
-
contentDisabled: "var(--_1sm466m6)",
|
|
11
|
-
contentAccent: "var(--_1sm466m7)",
|
|
12
|
-
contentOnPrimary: "var(--_1sm466m8)",
|
|
13
|
-
surface: "var(--_1sm466m9)",
|
|
14
|
-
surfaceSubtle: "var(--_1sm466ma)",
|
|
15
|
-
surfaceRaised: "var(--_1sm466mb)",
|
|
16
|
-
surfaceHover: "var(--_1sm466mc)",
|
|
17
|
-
surfaceOverlay: "var(--_1sm466md)",
|
|
18
|
-
border: "var(--_1sm466me)",
|
|
19
|
-
borderSubtle: "var(--_1sm466mf)",
|
|
20
|
-
borderStrong: "var(--_1sm466mg)",
|
|
21
|
-
borderRadius: "var(--_1sm466mh)",
|
|
22
|
-
background: "var(--_1sm466mi)",
|
|
23
|
-
backgroundSubtle: "var(--_1sm466mj)",
|
|
24
|
-
sentimentPositive: "var(--_1sm466mk)",
|
|
25
|
-
sentimentPositiveSubtle: "var(--_1sm466ml)",
|
|
26
|
-
sentimentPositiveHover: "var(--_1sm466mm)",
|
|
27
|
-
sentimentWarning: "var(--_1sm466mn)",
|
|
28
|
-
sentimentWarningSubtle: "var(--_1sm466mo)",
|
|
29
|
-
sentimentWarningHover: "var(--_1sm466mp)",
|
|
30
|
-
sentimentNegative: "var(--_1sm466mq)",
|
|
31
|
-
sentimentNegativeSubtle: "var(--_1sm466mr)",
|
|
32
|
-
sentimentNegativeHover: "var(--_1sm466ms)",
|
|
33
|
-
sentimentInfo: "var(--_1sm466mt)",
|
|
34
|
-
sentimentInfoSubtle: "var(--_1sm466mu)",
|
|
35
|
-
sentimentInfoHover: "var(--_1sm466mv)",
|
|
36
|
-
focusRing: "var(--_1sm466mw)",
|
|
37
|
-
shadowSm: "var(--_1sm466mx)",
|
|
38
|
-
shadowMd: "var(--_1sm466my)",
|
|
39
|
-
shadowLg: "var(--_1sm466mz)",
|
|
40
|
-
shadowXl: "var(--_1sm466m10)",
|
|
41
|
-
fontSize: "var(--_1sm466m11)",
|
|
42
|
-
hoverOverlay: "var(--_1sm466m12)",
|
|
43
|
-
hoverOverlaySoft: "var(--_1sm466m13)"
|
|
44
|
-
};
|
|
45
|
-
//#endregion
|
|
46
|
-
export { e as themeContract };
|
package/index.d.ts
DELETED
package/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { themeContract as e } from "./contract.js";
|
|
2
|
-
import { darkThemeClass as t, themeClass as n, themeVars as r } from "./light-theme.js";
|
|
3
|
-
import { borderRadius as i, borderWidth as a, duration as o, easing as s, fontSize as c, fontWeight as l, fonts as u, letterSpacing as d, lineHeight as f, mediaQueries as p, primitives as m, spacing as h, zIndex as g } from "./tokens.js";
|
|
4
|
-
export { i as borderRadius, a as borderWidth, t as darkThemeClass, o as duration, s as easing, c as fontSize, l as fontWeight, u as fonts, d as letterSpacing, f as lineHeight, p as mediaQueries, m as primitives, h as spacing, n as themeClass, e as themeContract, r as themeVars, g as zIndex };
|
package/light-theme.css.d.ts
DELETED
package/light-theme.js
DELETED
package/theme.css
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
*{box-sizing:border-box;margin:0;padding:0}:before,:after{box-sizing:border-box}html,body{min-height:100%;margin:0;padding:0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}ul,ol{margin:0;padding:0}img,picture,video,canvas,svg{max-width:100%;display:block}button,a,input,textarea,select{font:inherit;color:inherit;text-decoration:none}#root{min-height:100vh}.rmo9em0{--_1sm466m0:#1c1917;--_1sm466m1:#57534e;--_1sm466m2:#4f5d95;--_1sm466mw:#5b5fc7;--_1sm466mi:#f5f3ef;--_1sm466mj:#edeae4;--_1sm466m9:#fff;--_1sm466ma:#faf9f7;--_1sm466mb:#fff;--_1sm466mc:#edeae4;--_1sm466md:#1c191759;--_1sm466me:#e2ddd6;--_1sm466mf:#edeae4;--_1sm466mg:#c8c1b5;--_1sm466m4:#1c1917;--_1sm466m5:#57534e;--_1sm466m6:#a8a29e;--_1sm466m7:#1c1917;--_1sm466m8:#fff;--_1sm466mq:#ef4444;--_1sm466mr:#fef2f2;--_1sm466mk:#10b981;--_1sm466ml:#ecfdf5;--_1sm466mn:#f59e0b;--_1sm466mo:#fffbeb;--_1sm466mt:#0ea5e9;--_1sm466mu:#f0f9ff;--_1sm466mx:0 1px 3px #1c191712, 0 1px 2px #1c19170a;--_1sm466my:0 4px 12px #1c191717, 0 2px 4px #1c19170d;--_1sm466mz:0 8px 24px #1c19171c, 0 4px 8px #1c19170d;--_1sm466m10:0 20px 48px #1c191724, 0 8px 16px #1c191712;--_1sm466m3:#292524;--_1sm466mm:#059669;--_1sm466mp:#d97706;--_1sm466ms:#dc2626;--_1sm466mv:#0284c7;--_1sm466m12:#1c19170d;--_1sm466m13:#1c19171a;--_1sm466m11:16px;--_1sm466mh:12px}.rmo9em1{--_1sm466m0:#f5f3ef;--_1sm466m1:#d4cec5;--_1sm466m2:#4f5d95;--_1sm466mw:#5b5fc7;--_1sm466mi:#1c1917;--_1sm466mj:#edeae4;--_1sm466m9:#1c1917;--_1sm466ma:#faf9f7;--_1sm466mb:#fff;--_1sm466mc:#edeae4;--_1sm466md:#1c191759;--_1sm466me:#e2ddd6;--_1sm466mf:#edeae4;--_1sm466mg:#c8c1b5;--_1sm466m4:#1c1917;--_1sm466m5:#57534e;--_1sm466m6:#a8a29e;--_1sm466m7:#1c1917;--_1sm466m8:#fff;--_1sm466mq:#ef4444;--_1sm466mr:#fef2f2;--_1sm466mk:#10b981;--_1sm466ml:#ecfdf5;--_1sm466mn:#f59e0b;--_1sm466mo:#fffbeb;--_1sm466mt:#0ea5e9;--_1sm466mu:#f0f9ff;--_1sm466mx:0 1px 3px #1c191712, 0 1px 2px #1c19170a;--_1sm466my:0 4px 12px #1c191717, 0 2px 4px #1c19170d;--_1sm466mz:0 8px 24px #1c19171c, 0 4px 8px #1c19170d;--_1sm466m10:0 20px 48px #1c191724, 0 8px 16px #1c191712;--_1sm466m3:#292524;--_1sm466mm:#059669;--_1sm466mp:#d97706;--_1sm466ms:#dc2626;--_1sm466mv:#0284c7;--_1sm466m12:#1c19170d;--_1sm466m13:#1c19171a;--_1sm466m11:16px;--_1sm466mh:12px}.ah5rrr0{appearance:none;font:inherit;color:inherit;-webkit-tap-highlight-color:transparent;background-color:#0000;border:0;text-decoration:none}.ah5rrr1{outline:none}.ah5rrr1:focus-visible{outline:2px solid var(--_1sm466mw)}
|
|
2
|
-
/*$vite$:1*/
|
package/tokens.css.d.ts
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
export declare const borderRadius: {
|
|
2
|
-
readonly xsmall: "2px";
|
|
3
|
-
readonly small: "4px";
|
|
4
|
-
readonly medium: "8px";
|
|
5
|
-
readonly large: "12px";
|
|
6
|
-
readonly xlarge: "16px";
|
|
7
|
-
readonly xxlarge: "24px";
|
|
8
|
-
readonly full: "999px";
|
|
9
|
-
};
|
|
10
|
-
export declare const fonts: {
|
|
11
|
-
readonly sans: "\"DM Sans\", system-ui, -apple-system, sans-serif";
|
|
12
|
-
readonly display: "\"DM Sans\", system-ui, sans-serif";
|
|
13
|
-
readonly heading: "\"DM Sans\", system-ui, sans-serif";
|
|
14
|
-
readonly body: "\"DM Sans\", system-ui, sans-serif";
|
|
15
|
-
readonly label: "\"DM Sans\", system-ui, sans-serif";
|
|
16
|
-
readonly mono: "\"DM Mono\", ui-monospace, SFMono-Regular, monospace";
|
|
17
|
-
};
|
|
18
|
-
export declare const fontSize: {
|
|
19
|
-
readonly xxsmall: "10px";
|
|
20
|
-
readonly xsmall: "12px";
|
|
21
|
-
readonly small: "14px";
|
|
22
|
-
readonly medium: "16px";
|
|
23
|
-
readonly large: "18px";
|
|
24
|
-
readonly xlarge: "20px";
|
|
25
|
-
readonly xxlarge: "24px";
|
|
26
|
-
readonly xxxlarge: "30px";
|
|
27
|
-
readonly display: "36px";
|
|
28
|
-
readonly displayLg: "48px";
|
|
29
|
-
readonly hero: "60px";
|
|
30
|
-
};
|
|
31
|
-
export declare const fontWeight: {
|
|
32
|
-
readonly regular: "400";
|
|
33
|
-
readonly medium: "500";
|
|
34
|
-
readonly semibold: "600";
|
|
35
|
-
readonly bold: "700";
|
|
36
|
-
readonly extrabold: "800";
|
|
37
|
-
};
|
|
38
|
-
export declare const lineHeight: {
|
|
39
|
-
readonly tight: "1.2";
|
|
40
|
-
readonly snug: "1.35";
|
|
41
|
-
readonly normal: "1.5";
|
|
42
|
-
readonly relaxed: "1.625";
|
|
43
|
-
readonly loose: "1.8";
|
|
44
|
-
};
|
|
45
|
-
export declare const letterSpacing: {
|
|
46
|
-
readonly tight: "-0.04em";
|
|
47
|
-
readonly snug: "-0.02em";
|
|
48
|
-
readonly normal: "0";
|
|
49
|
-
readonly wide: "0.02em";
|
|
50
|
-
readonly wider: "0.05em";
|
|
51
|
-
readonly widest: "0.1em";
|
|
52
|
-
};
|
|
53
|
-
export declare const spacing: {
|
|
54
|
-
readonly none: "0px";
|
|
55
|
-
readonly xxsmall: "4px";
|
|
56
|
-
readonly xsmall: "8px";
|
|
57
|
-
readonly small: "12px";
|
|
58
|
-
readonly medium: "16px";
|
|
59
|
-
readonly large: "24px";
|
|
60
|
-
readonly xlarge: "32px";
|
|
61
|
-
readonly xxlarge: "48px";
|
|
62
|
-
readonly xxxlarge: "64px";
|
|
63
|
-
readonly huge: "80px";
|
|
64
|
-
readonly massive: "96px";
|
|
65
|
-
readonly titanic: "192px";
|
|
66
|
-
readonly "0": "0px";
|
|
67
|
-
readonly "0.5": "2px";
|
|
68
|
-
readonly "1": "4px";
|
|
69
|
-
readonly "2": "8px";
|
|
70
|
-
readonly "3": "12px";
|
|
71
|
-
readonly "4": "16px";
|
|
72
|
-
readonly "5": "20px";
|
|
73
|
-
readonly "6": "24px";
|
|
74
|
-
readonly "7": "28px";
|
|
75
|
-
readonly "8": "32px";
|
|
76
|
-
readonly "9": "36px";
|
|
77
|
-
readonly "10": "40px";
|
|
78
|
-
readonly "12": "48px";
|
|
79
|
-
readonly "16": "64px";
|
|
80
|
-
readonly "20": "80px";
|
|
81
|
-
readonly "24": "96px";
|
|
82
|
-
readonly "32": "128px";
|
|
83
|
-
readonly "40": "160px";
|
|
84
|
-
readonly "48": "192px";
|
|
85
|
-
};
|
|
86
|
-
export declare const mediaQueries: {
|
|
87
|
-
readonly sm: "screen and (min-width: 640px)";
|
|
88
|
-
readonly md: "screen and (min-width: 768px)";
|
|
89
|
-
readonly lg: "screen and (min-width: 1024px)";
|
|
90
|
-
readonly xl: "screen and (min-width: 1280px)";
|
|
91
|
-
readonly xxl: "screen and (min-width: 1536px)";
|
|
92
|
-
readonly dark: "(prefers-color-scheme: dark)";
|
|
93
|
-
};
|
|
94
|
-
export declare const primitives: {
|
|
95
|
-
trigger: string;
|
|
96
|
-
focusable: string;
|
|
97
|
-
};
|
|
98
|
-
export declare const borderWidth: {
|
|
99
|
-
readonly hairline: "0.5px";
|
|
100
|
-
readonly thin: "1px";
|
|
101
|
-
readonly medium: "1.5px";
|
|
102
|
-
readonly thick: "2px";
|
|
103
|
-
readonly heavy: "3px";
|
|
104
|
-
};
|
|
105
|
-
export declare const duration: {
|
|
106
|
-
readonly instant: "50ms";
|
|
107
|
-
readonly fast: "100ms";
|
|
108
|
-
readonly normal: "200ms";
|
|
109
|
-
readonly slow: "300ms";
|
|
110
|
-
readonly slower: "500ms";
|
|
111
|
-
readonly lazy: "700ms";
|
|
112
|
-
};
|
|
113
|
-
export declare const easing: {
|
|
114
|
-
readonly linear: "linear";
|
|
115
|
-
readonly standard: "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
116
|
-
readonly enter: "cubic-bezier(0, 0, 0.2, 1)";
|
|
117
|
-
readonly exit: "cubic-bezier(0.4, 0, 1, 1)";
|
|
118
|
-
readonly spring: "cubic-bezier(0.34, 1.56, 0.64, 1)";
|
|
119
|
-
readonly bounce: "cubic-bezier(0.68, -0.55, 0.27, 1.55)";
|
|
120
|
-
};
|
|
121
|
-
export declare const zIndex: {
|
|
122
|
-
readonly base: 0;
|
|
123
|
-
readonly raised: 100;
|
|
124
|
-
readonly floating: 1000;
|
|
125
|
-
readonly sticky: 1100;
|
|
126
|
-
readonly overlay: 1200;
|
|
127
|
-
readonly popover: 1300;
|
|
128
|
-
readonly modal: 1400;
|
|
129
|
-
readonly toast: 1500;
|
|
130
|
-
readonly tooltip: 1600;
|
|
131
|
-
};
|
package/tokens.js
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
//#region src/tokens.css.ts
|
|
3
|
-
var e = {
|
|
4
|
-
xsmall: "2px",
|
|
5
|
-
small: "4px",
|
|
6
|
-
medium: "8px",
|
|
7
|
-
large: "12px",
|
|
8
|
-
xlarge: "16px",
|
|
9
|
-
xxlarge: "24px",
|
|
10
|
-
full: "999px"
|
|
11
|
-
}, t = {
|
|
12
|
-
sans: "\"DM Sans\", system-ui, -apple-system, sans-serif",
|
|
13
|
-
display: "\"DM Sans\", system-ui, sans-serif",
|
|
14
|
-
heading: "\"DM Sans\", system-ui, sans-serif",
|
|
15
|
-
body: "\"DM Sans\", system-ui, sans-serif",
|
|
16
|
-
label: "\"DM Sans\", system-ui, sans-serif",
|
|
17
|
-
mono: "\"DM Mono\", ui-monospace, SFMono-Regular, monospace"
|
|
18
|
-
}, n = {
|
|
19
|
-
xxsmall: "10px",
|
|
20
|
-
xsmall: "12px",
|
|
21
|
-
small: "14px",
|
|
22
|
-
medium: "16px",
|
|
23
|
-
large: "18px",
|
|
24
|
-
xlarge: "20px",
|
|
25
|
-
xxlarge: "24px",
|
|
26
|
-
xxxlarge: "30px",
|
|
27
|
-
display: "36px",
|
|
28
|
-
displayLg: "48px",
|
|
29
|
-
hero: "60px"
|
|
30
|
-
}, r = {
|
|
31
|
-
regular: "400",
|
|
32
|
-
medium: "500",
|
|
33
|
-
semibold: "600",
|
|
34
|
-
bold: "700",
|
|
35
|
-
extrabold: "800"
|
|
36
|
-
}, i = {
|
|
37
|
-
tight: "1.2",
|
|
38
|
-
snug: "1.35",
|
|
39
|
-
normal: "1.5",
|
|
40
|
-
relaxed: "1.625",
|
|
41
|
-
loose: "1.8"
|
|
42
|
-
}, a = {
|
|
43
|
-
tight: "-0.04em",
|
|
44
|
-
snug: "-0.02em",
|
|
45
|
-
normal: "0",
|
|
46
|
-
wide: "0.02em",
|
|
47
|
-
wider: "0.05em",
|
|
48
|
-
widest: "0.1em"
|
|
49
|
-
}, o = {
|
|
50
|
-
0: "0px",
|
|
51
|
-
1: "4px",
|
|
52
|
-
2: "8px",
|
|
53
|
-
3: "12px",
|
|
54
|
-
4: "16px",
|
|
55
|
-
5: "20px",
|
|
56
|
-
6: "24px",
|
|
57
|
-
7: "28px",
|
|
58
|
-
8: "32px",
|
|
59
|
-
9: "36px",
|
|
60
|
-
10: "40px",
|
|
61
|
-
12: "48px",
|
|
62
|
-
16: "64px",
|
|
63
|
-
20: "80px",
|
|
64
|
-
24: "96px",
|
|
65
|
-
32: "128px",
|
|
66
|
-
40: "160px",
|
|
67
|
-
48: "192px",
|
|
68
|
-
none: "0px",
|
|
69
|
-
xxsmall: "4px",
|
|
70
|
-
xsmall: "8px",
|
|
71
|
-
small: "12px",
|
|
72
|
-
medium: "16px",
|
|
73
|
-
large: "24px",
|
|
74
|
-
xlarge: "32px",
|
|
75
|
-
xxlarge: "48px",
|
|
76
|
-
xxxlarge: "64px",
|
|
77
|
-
huge: "80px",
|
|
78
|
-
massive: "96px",
|
|
79
|
-
titanic: "192px",
|
|
80
|
-
"0.5": "2px"
|
|
81
|
-
}, s = {
|
|
82
|
-
sm: "screen and (min-width: 640px)",
|
|
83
|
-
md: "screen and (min-width: 768px)",
|
|
84
|
-
lg: "screen and (min-width: 1024px)",
|
|
85
|
-
xl: "screen and (min-width: 1280px)",
|
|
86
|
-
xxl: "screen and (min-width: 1536px)",
|
|
87
|
-
dark: "(prefers-color-scheme: dark)"
|
|
88
|
-
}, c = {
|
|
89
|
-
trigger: "ah5rrr0",
|
|
90
|
-
focusable: "ah5rrr1"
|
|
91
|
-
}, l = {
|
|
92
|
-
hairline: "0.5px",
|
|
93
|
-
thin: "1px",
|
|
94
|
-
medium: "1.5px",
|
|
95
|
-
thick: "2px",
|
|
96
|
-
heavy: "3px"
|
|
97
|
-
}, u = {
|
|
98
|
-
instant: "50ms",
|
|
99
|
-
fast: "100ms",
|
|
100
|
-
normal: "200ms",
|
|
101
|
-
slow: "300ms",
|
|
102
|
-
slower: "500ms",
|
|
103
|
-
lazy: "700ms"
|
|
104
|
-
}, d = {
|
|
105
|
-
linear: "linear",
|
|
106
|
-
standard: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
107
|
-
enter: "cubic-bezier(0, 0, 0.2, 1)",
|
|
108
|
-
exit: "cubic-bezier(0.4, 0, 1, 1)",
|
|
109
|
-
spring: "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
110
|
-
bounce: "cubic-bezier(0.68, -0.55, 0.27, 1.55)"
|
|
111
|
-
}, f = {
|
|
112
|
-
base: 0,
|
|
113
|
-
raised: 100,
|
|
114
|
-
floating: 1e3,
|
|
115
|
-
sticky: 1100,
|
|
116
|
-
overlay: 1200,
|
|
117
|
-
popover: 1300,
|
|
118
|
-
modal: 1400,
|
|
119
|
-
toast: 1500,
|
|
120
|
-
tooltip: 1600
|
|
121
|
-
};
|
|
122
|
-
//#endregion
|
|
123
|
-
export { e as borderRadius, l as borderWidth, u as duration, d as easing, n as fontSize, r as fontWeight, t as fonts, a as letterSpacing, i as lineHeight, s as mediaQueries, c as primitives, o as spacing, f as zIndex };
|