@invana/styling 0.0.6 → 0.0.11
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/package.json +1 -1
- package/src/index.css +63 -18
- package/src/themes/default.css +8 -8
package/package.json
CHANGED
package/src/index.css
CHANGED
|
@@ -39,25 +39,27 @@
|
|
|
39
39
|
--color-ring: hsl(142 70% 43%);
|
|
40
40
|
--color-background: hsl(0 0% 97%);
|
|
41
41
|
--color-foreground: hsl(210 10% 20%);
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
--color-primary: hsl(142 70% 43%);
|
|
44
44
|
--color-primary-foreground: hsl(0 0% 100%);
|
|
45
|
-
|
|
45
|
+
|
|
46
46
|
--color-secondary: hsl(142 30% 95%);
|
|
47
47
|
--color-secondary-foreground: hsl(142 25% 40%);
|
|
48
|
-
|
|
48
|
+
|
|
49
49
|
--color-destructive: hsl(0 70% 60%);
|
|
50
50
|
--color-destructive-foreground: hsl(0 0% 100%);
|
|
51
|
-
|
|
51
|
+
|
|
52
52
|
--color-muted: hsl(210 6% 90%);
|
|
53
53
|
--color-muted-foreground: hsl(210 8% 45%);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
|
|
55
|
+
/* accent = neutral interactive feedback (hover/focus), NOT brand green.
|
|
56
|
+
Kept a SOLID color so opacity modifiers (bg-accent/50) still work. */
|
|
57
|
+
--color-accent: hsl(210 6% 92%);
|
|
58
|
+
--color-accent-foreground: hsl(210 10% 20%);
|
|
59
|
+
|
|
58
60
|
--color-popover: hsl(0 0% 98%);
|
|
59
61
|
--color-popover-foreground: hsl(210 10% 20%);
|
|
60
|
-
|
|
62
|
+
|
|
61
63
|
--color-card: hsl(0 0% 100%);
|
|
62
64
|
--color-card-foreground: hsl(210 10% 20%);
|
|
63
65
|
|
|
@@ -73,28 +75,70 @@
|
|
|
73
75
|
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
|
-
/*
|
|
78
|
+
/*
|
|
77
79
|
* NOTE: Theme-specific color variables are defined in theme files:
|
|
78
80
|
* - themes/default.css
|
|
79
|
-
* - themes/tailwind.css
|
|
81
|
+
* - themes/tailwind.css
|
|
80
82
|
* - themes/vite.css
|
|
81
|
-
*
|
|
83
|
+
*
|
|
82
84
|
* These files use [data-theme="..."] selectors to apply theme-specific colors.
|
|
83
85
|
* Default fallbacks are handled by the first theme (default-light).
|
|
84
86
|
*/
|
|
85
87
|
|
|
88
|
+
/*
|
|
89
|
+
* Interactive surface controls.
|
|
90
|
+
*
|
|
91
|
+
* Glass mode is opt-in: set `data-glass="true"` on any element (root, a panel
|
|
92
|
+
* subtree, or a single component) and every descendant that uses the
|
|
93
|
+
* `--surface-alpha` / `--glass-blur` tokens becomes translucent + blurred.
|
|
94
|
+
* Defaults below reproduce the current opaque, no-blur rendering exactly.
|
|
95
|
+
*
|
|
96
|
+
* The raw HSL triplets mirror default-light so `hsl(var(--token) / <alpha>)`
|
|
97
|
+
* resolves even when no [data-theme] is applied; theme files override them.
|
|
98
|
+
*/
|
|
99
|
+
:root {
|
|
100
|
+
--primary: 142 70% 43%;
|
|
101
|
+
--secondary: 142 30% 95%;
|
|
102
|
+
--destructive: 0 70% 60%;
|
|
103
|
+
--background: 0 0% 97%;
|
|
104
|
+
--accent: 210 6% 92%;
|
|
105
|
+
|
|
106
|
+
--surface-alpha: 1; /* opaque → identical to current look */
|
|
107
|
+
--glass-blur: none; /* no backdrop blur */
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
[data-glass="true"] {
|
|
111
|
+
--surface-alpha: 0.6;
|
|
112
|
+
--glass-blur: blur(12px);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Apply on any surface that should frost in glass mode (no-op when off). */
|
|
116
|
+
@utility glassable {
|
|
117
|
+
backdrop-filter: var(--glass-blur, none);
|
|
118
|
+
-webkit-backdrop-filter: var(--glass-blur, none);
|
|
119
|
+
}
|
|
120
|
+
|
|
86
121
|
@keyframes accordion-down {
|
|
87
|
-
from {
|
|
88
|
-
|
|
122
|
+
from {
|
|
123
|
+
height: 0;
|
|
124
|
+
}
|
|
125
|
+
to {
|
|
126
|
+
height: var(--radix-accordion-content-height);
|
|
127
|
+
}
|
|
89
128
|
}
|
|
90
129
|
|
|
91
130
|
@keyframes accordion-up {
|
|
92
|
-
from {
|
|
93
|
-
|
|
131
|
+
from {
|
|
132
|
+
height: var(--radix-accordion-content-height);
|
|
133
|
+
}
|
|
134
|
+
to {
|
|
135
|
+
height: 0;
|
|
136
|
+
}
|
|
94
137
|
}
|
|
95
138
|
|
|
96
139
|
/* Base styles */
|
|
97
|
-
html,
|
|
140
|
+
html,
|
|
141
|
+
body {
|
|
98
142
|
font-size: 13px;
|
|
99
143
|
font-family: ui-sans-serif, system-ui, sans-serif;
|
|
100
144
|
-webkit-font-smoothing: antialiased;
|
|
@@ -109,7 +153,8 @@ body {
|
|
|
109
153
|
color: var(--color-foreground);
|
|
110
154
|
}
|
|
111
155
|
|
|
112
|
-
button,
|
|
156
|
+
button,
|
|
157
|
+
a {
|
|
113
158
|
cursor: pointer;
|
|
114
159
|
}
|
|
115
160
|
|
package/src/themes/default.css
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
--foreground: 210 10% 20%;
|
|
12
12
|
--muted: 210 6% 90%;
|
|
13
13
|
--muted-foreground: 210 8% 45%;
|
|
14
|
-
--accent:
|
|
15
|
-
--accent-foreground:
|
|
14
|
+
--accent: 210 6% 92%;
|
|
15
|
+
--accent-foreground: 210 10% 20%;
|
|
16
16
|
--popover: 0 0% 98%;
|
|
17
17
|
--popover-foreground: 210 10% 20%;
|
|
18
18
|
--border: 210 6% 85%;
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
--color-secondary-foreground: hsl(142 25% 40%);
|
|
41
41
|
--color-muted: hsl(210 6% 90%);
|
|
42
42
|
--color-muted-foreground: hsl(210 8% 45%);
|
|
43
|
-
--color-accent: hsl(
|
|
44
|
-
--color-accent-foreground: hsl(
|
|
43
|
+
--color-accent: hsl(210 6% 92%);
|
|
44
|
+
--color-accent-foreground: hsl(210 10% 20%);
|
|
45
45
|
--color-destructive: hsl(0 70% 60%);
|
|
46
46
|
--color-destructive-foreground: hsl(0 0% 100%);
|
|
47
47
|
--color-border: hsl(210 6% 85%);
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
--foreground: 0 0% 85%;
|
|
58
58
|
--muted: 210 6% 18%;
|
|
59
59
|
--muted-foreground: 210 8% 60%;
|
|
60
|
-
--accent:
|
|
61
|
-
--accent-foreground:
|
|
60
|
+
--accent: 210 6% 22%;
|
|
61
|
+
--accent-foreground: 0 0% 85%;
|
|
62
62
|
--popover: 210 4% 11%;
|
|
63
63
|
--popover-foreground: 0 0% 85%;
|
|
64
64
|
--border: 210 6% 22%;
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
--color-secondary-foreground: hsl(0 0% 85%);
|
|
87
87
|
--color-muted: hsl(210 6% 18%);
|
|
88
88
|
--color-muted-foreground: hsl(210 8% 60%);
|
|
89
|
-
--color-accent: hsl(
|
|
90
|
-
--color-accent-foreground: hsl(
|
|
89
|
+
--color-accent: hsl(210 6% 22%);
|
|
90
|
+
--color-accent-foreground: hsl(0 0% 85%);
|
|
91
91
|
--color-destructive: hsl(0 60% 45%);
|
|
92
92
|
--color-destructive-foreground: hsl(0 0% 95%);
|
|
93
93
|
--color-border: hsl(210 6% 22%);
|