@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @blenx-dev/theme
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 423768f: add reset file
8
+
3
9
  ## 0.1.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@blenx-dev/theme",
3
- "version": "0.1.0",
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"
@@ -1,4 +1,4 @@
1
- import { createThemeContract, globalStyle } from "@vanilla-extract/css";
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
- });
@@ -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: "#4f5d95",
60
- focusRing: "#5b5fc7",
61
-
62
- background: "#1c1917",
63
- backgroundSubtle: "#edeae4",
64
-
65
- surface: "#1c1917",
66
- surfaceSubtle: "#faf9f7",
67
- surfaceRaised: "#ffffff",
68
- surfaceHover: "#edeae4",
69
- surfaceOverlay: "rgba(28,25,23,0.35)",
70
-
71
- border: "#e2ddd6",
72
- borderSubtle: "#edeae4",
73
- borderStrong: "#c8c1b5",
74
-
75
- contentPrimary: "#1c1917",
76
- contentSecondary: "#57534e",
77
- contentDisabled: "#a8a29e",
78
- contentAccent: "#1c1917",
79
- contentOnPrimary: "#ffffff",
80
-
81
- sentimentNegative: "#ef4444",
82
- sentimentNegativeSubtle: "#fef2f2",
83
- sentimentPositive: "#10b981",
84
- sentimentPositiveSubtle: "#ecfdf5",
85
- sentimentWarning: "#f59e0b",
86
- sentimentWarningSubtle: "#fffbeb",
87
- sentimentInfo: "#0ea5e9",
88
- sentimentInfoSubtle: "#f0f9ff",
89
-
90
- shadowSm: "0 1px 3px rgba(28,25,23,0.07), 0 1px 2px rgba(28,25,23,0.04)",
91
- shadowMd: "0 4px 12px rgba(28,25,23,0.09), 0 2px 4px rgba(28,25,23,0.05)",
92
- shadowLg: "0 8px 24px rgba(28,25,23,0.11), 0 4px 8px rgba(28,25,23,0.05)",
93
- shadowXl: "0 20px 48px rgba(28,25,23,0.14), 0 8px 16px rgba(28,25,23,0.07)",
94
-
95
- primaryHover: "#292524",
96
- sentimentPositiveHover: "#059669",
97
- sentimentWarningHover: "#d97706",
98
- sentimentNegativeHover: "#dc2626",
99
- sentimentInfoHover: "#0284c7",
100
-
101
- hoverOverlay: "rgba(28,25,23,0.05)",
102
- hoverOverlaySoft: "rgba(28,25,23,0.10)",
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",
@@ -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
+ });