@blenx-dev/theme 0.1.0 → 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/CHANGELOG.md +6 -0
- package/package.json +3 -2
- package/src/contract.css.ts +1 -41
- package/src/light-theme.css.ts +45 -44
- package/src/reset.css.ts +48 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blenx-dev/theme",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
7
7
|
"./contract": "./src/contract.css.ts",
|
|
8
8
|
"./tokens": "./src/tokens.css.ts",
|
|
9
|
-
"./light-theme": "./src/light-theme.css.ts"
|
|
9
|
+
"./light-theme": "./src/light-theme.css.ts",
|
|
10
|
+
"./reset": "./src/reset.css.ts"
|
|
10
11
|
},
|
|
11
12
|
"publishConfig": {
|
|
12
13
|
"access": "public"
|
package/src/contract.css.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createThemeContract
|
|
1
|
+
import { createThemeContract } from "@vanilla-extract/css";
|
|
2
2
|
|
|
3
3
|
export const themeContract = createThemeContract({
|
|
4
4
|
primary: "primary",
|
|
@@ -42,43 +42,3 @@ export const themeContract = createThemeContract({
|
|
|
42
42
|
hoverOverlay: "hover-overlay",
|
|
43
43
|
hoverOverlaySoft: "hover-overlay-soft",
|
|
44
44
|
});
|
|
45
|
-
|
|
46
|
-
globalStyle("*", {
|
|
47
|
-
margin: 0,
|
|
48
|
-
padding: 0,
|
|
49
|
-
boxSizing: "border-box",
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
globalStyle("*::before, *::after", {
|
|
53
|
-
boxSizing: "border-box",
|
|
54
|
-
});
|
|
55
|
-
globalStyle("html, body", {
|
|
56
|
-
margin: 0,
|
|
57
|
-
padding: 0,
|
|
58
|
-
minHeight: "100%",
|
|
59
|
-
});
|
|
60
|
-
globalStyle("body", {
|
|
61
|
-
lineHeight: 1.5,
|
|
62
|
-
WebkitFontSmoothing: "antialiased",
|
|
63
|
-
MozOsxFontSmoothing: "grayscale",
|
|
64
|
-
});
|
|
65
|
-
globalStyle("h1, h2, h3, h4, h5, h6", {
|
|
66
|
-
fontSize: "inherit",
|
|
67
|
-
fontWeight: "inherit",
|
|
68
|
-
});
|
|
69
|
-
globalStyle("ul, ol", {
|
|
70
|
-
margin: 0,
|
|
71
|
-
padding: 0,
|
|
72
|
-
});
|
|
73
|
-
globalStyle("img, picture, video, canvas, svg", {
|
|
74
|
-
display: "block",
|
|
75
|
-
maxWidth: "100%",
|
|
76
|
-
});
|
|
77
|
-
globalStyle("button,a,input, textarea, select", {
|
|
78
|
-
font: "inherit",
|
|
79
|
-
color: "inherit",
|
|
80
|
-
textDecoration: "none",
|
|
81
|
-
});
|
|
82
|
-
globalStyle("#root", {
|
|
83
|
-
minHeight: "100vh",
|
|
84
|
-
});
|
package/src/light-theme.css.ts
CHANGED
|
@@ -56,50 +56,51 @@ export const [themeClass, themeVars] = createTheme(themeContract, {
|
|
|
56
56
|
export const darkThemeClass = createTheme(themeContract, {
|
|
57
57
|
primary: "#f5f3ef",
|
|
58
58
|
primarySubtle: "#d4cec5",
|
|
59
|
-
secondary: "#
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
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)",
|
|
103
104
|
|
|
104
105
|
fontSize: "16px",
|
|
105
106
|
borderRadius: "12px",
|
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
|
+
});
|