@adminiumjs/tokens 0.3.0-rc.2 → 0.3.0-rc.3
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/exceptions.css +13 -0
- package/src/motion.css +25 -1
- package/src/tailwind.css +9 -0
- package/src/tokens.css +20 -0
package/package.json
CHANGED
package/src/exceptions.css
CHANGED
|
@@ -57,6 +57,13 @@
|
|
|
57
57
|
--warn-soft-solid: color-mix(in srgb, var(--warn) 14%, var(--surface));
|
|
58
58
|
--danger-soft-solid: color-mix(in srgb, var(--danger) 14%, var(--surface));
|
|
59
59
|
--info-soft-solid: color-mix(in srgb, var(--info) 14%, var(--surface));
|
|
60
|
+
/* The method tones (tokens.css, HTTP METHOD TONES), dark values, same reasons as above. */
|
|
61
|
+
--method-put: #c4a0ff;
|
|
62
|
+
--method-put-soft: rgba(196,160,255,.14);
|
|
63
|
+
--method-put-soft-solid: color-mix(in srgb, var(--method-put) 14%, var(--surface));
|
|
64
|
+
--method-batch: #5ed6c8;
|
|
65
|
+
--method-batch-soft: rgba(94,214,200,.13);
|
|
66
|
+
--method-batch-soft-solid: color-mix(in srgb, var(--method-batch) 13%, var(--surface));
|
|
60
67
|
--shadow: 0 1px 2px rgba(0,0,0,.4);
|
|
61
68
|
--shadow-md: 0 6px 20px rgba(0,0,0,.5);
|
|
62
69
|
--shadow-lg: 0 16px 40px rgba(0,0,0,.6);
|
|
@@ -110,6 +117,12 @@
|
|
|
110
117
|
--warn-soft-solid: var(--warn-soft);
|
|
111
118
|
--danger-soft-solid: var(--danger-soft);
|
|
112
119
|
--info-soft-solid: var(--info-soft);
|
|
120
|
+
--method-put: #7c3aed;
|
|
121
|
+
--method-put-soft: #f0e9fd;
|
|
122
|
+
--method-put-soft-solid: var(--method-put-soft);
|
|
123
|
+
--method-batch: #0f766e;
|
|
124
|
+
--method-batch-soft: #e2f4f2;
|
|
125
|
+
--method-batch-soft-solid: var(--method-batch-soft);
|
|
113
126
|
--shadow: 0 1px 2px rgba(20,20,35,.04), 0 1px 3px rgba(20,20,35,.05);
|
|
114
127
|
--shadow-md: 0 4px 14px rgba(20,20,35,.09);
|
|
115
128
|
--shadow-lg: 0 12px 34px rgba(20,20,35,.13);
|
package/src/motion.css
CHANGED
|
@@ -22,6 +22,16 @@
|
|
|
22
22
|
to { opacity: 1; transform: none; }
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
/* sheet veil (.18s ease) and sheet panel (.26s cubic-bezier(.2,.7,.3,1)) — API Keys comp, K 26-30 */
|
|
26
|
+
@keyframes nb-veil {
|
|
27
|
+
from { opacity: 0; }
|
|
28
|
+
to { opacity: 1; }
|
|
29
|
+
}
|
|
30
|
+
@keyframes nb-sheet {
|
|
31
|
+
from { opacity: 0; transform: translateY(14px) scale(.995); }
|
|
32
|
+
to { opacity: 1; transform: none; }
|
|
33
|
+
}
|
|
34
|
+
|
|
25
35
|
/* drawer slide-in from inline-end (.22s); RTL consumers flip via --nb-slide-from */
|
|
26
36
|
@keyframes nb-slide {
|
|
27
37
|
from { opacity: 0; transform: translateX(var(--nb-slide-from, 24px)); }
|
|
@@ -86,7 +96,7 @@
|
|
|
86
96
|
|
|
87
97
|
/* card hover bloom: shadow only, NO lift. Distinct from .nb-lift on purpose —
|
|
88
98
|
a dashboard is ~40 cards, and translating each one on mouseover reads as
|
|
89
|
-
noise. Matches the comp's `.nb-card:hover` (Analytics
|
|
99
|
+
noise. Matches the comp's `.nb-card:hover` (the Analytics design comp, lines 32-33).
|
|
90
100
|
The dark value has no comp counterpart (the comp's dark block never restates
|
|
91
101
|
it); it is the light recipe re-tuned for a #141419 surface. */
|
|
92
102
|
.nb-cardh {
|
|
@@ -179,6 +189,20 @@
|
|
|
179
189
|
}
|
|
180
190
|
.nb-scroll::-webkit-scrollbar-track { background: transparent; }
|
|
181
191
|
|
|
192
|
+
/* The API comps' own scrollbar: 10px, a 3px clear border, radius 8,
|
|
193
|
+
and NO standard `scrollbar-*` properties — Chrome 121+ ignores the webkit rules whenever
|
|
194
|
+
`scrollbar-width` is set, which is how `.nb-scroll` stopped matching those comps. */
|
|
195
|
+
.nb-scroll-comp::-webkit-scrollbar {
|
|
196
|
+
width: 10px;
|
|
197
|
+
height: 10px;
|
|
198
|
+
}
|
|
199
|
+
.nb-scroll-comp::-webkit-scrollbar-thumb {
|
|
200
|
+
background: var(--border-strong);
|
|
201
|
+
border: 3px solid transparent;
|
|
202
|
+
border-radius: 8px;
|
|
203
|
+
background-clip: padding-box;
|
|
204
|
+
}
|
|
205
|
+
|
|
182
206
|
/* ------------------------------------------------- prefers-reduced-motion */
|
|
183
207
|
/* Policy: entrances, lifts, grows, ring sweeps and toast slides collapse to instant;
|
|
184
208
|
spinners keep rotating (a frozen spinner reads as a hang); skeletons go static. */
|
package/src/tailwind.css
CHANGED
|
@@ -36,6 +36,15 @@
|
|
|
36
36
|
--color-warn-soft-solid: var(--warn-soft-solid);
|
|
37
37
|
--color-danger-soft-solid: var(--danger-soft-solid);
|
|
38
38
|
--color-info-soft-solid: var(--info-soft-solid);
|
|
39
|
+
--color-method-put: var(--method-put); --color-method-put-soft: var(--method-put-soft);
|
|
40
|
+
--color-method-put-soft-solid: var(--method-put-soft-solid);
|
|
41
|
+
--color-method-batch: var(--method-batch); --color-method-batch-soft: var(--method-batch-soft);
|
|
42
|
+
--color-method-batch-soft-solid: var(--method-batch-soft-solid);
|
|
43
|
+
/* The dark island's syntax inks (exceptions.css). Declared only inside .adm-always-dark;
|
|
44
|
+
outside it these utilities resolve to nothing, which is the intent. */
|
|
45
|
+
--color-code-blue: var(--code-blue); --color-code-green: var(--code-green);
|
|
46
|
+
--color-code-orange: var(--code-orange); --color-code-purple: var(--code-purple);
|
|
47
|
+
--color-code-gray: var(--code-gray);
|
|
39
48
|
--color-viz-1: var(--viz-1); --color-viz-2: var(--viz-2); --color-viz-3: var(--viz-3);
|
|
40
49
|
--color-viz-4: var(--viz-4); --color-viz-5: var(--viz-5); --color-viz-6: var(--viz-6);
|
|
41
50
|
--color-viz-7: var(--viz-7); --color-viz-8: var(--viz-8);
|
package/src/tokens.css
CHANGED
|
@@ -81,6 +81,16 @@
|
|
|
81
81
|
--warn-soft-solid: var(--warn-soft);
|
|
82
82
|
--danger-soft-solid: var(--danger-soft);
|
|
83
83
|
--info-soft-solid: var(--info-soft);
|
|
84
|
+
/* HTTP METHOD TONES. GET, POST, PATCH and DELETE wear info / pos / warn / danger;
|
|
85
|
+
PUT and BATCH had no tone, and a raw hex is review-rejected, so they get these two pairs,
|
|
86
|
+
starting from the API Keys comp's own values. They are ordinary tones to the
|
|
87
|
+
contrast gate — discovered by shape, measured on every surface and on their -soft partner. */
|
|
88
|
+
--method-put: #7c3aed;
|
|
89
|
+
--method-put-soft: #f0e9fd;
|
|
90
|
+
--method-put-soft-solid: var(--method-put-soft);
|
|
91
|
+
--method-batch: #0f766e;
|
|
92
|
+
--method-batch-soft: #e2f4f2;
|
|
93
|
+
--method-batch-soft-solid: var(--method-batch-soft);
|
|
84
94
|
--shadow: 0 1px 2px rgba(20,20,35,.04), 0 1px 3px rgba(20,20,35,.05);
|
|
85
95
|
--shadow-md: 0 4px 14px rgba(20,20,35,.09);
|
|
86
96
|
--shadow-lg: 0 12px 34px rgba(20,20,35,.13);
|
|
@@ -130,6 +140,16 @@
|
|
|
130
140
|
--warn-soft-solid: color-mix(in srgb, var(--warn) 14%, var(--surface));
|
|
131
141
|
--danger-soft-solid: color-mix(in srgb, var(--danger) 14%, var(--surface));
|
|
132
142
|
--info-soft-solid: color-mix(in srgb, var(--info) 14%, var(--surface));
|
|
143
|
+
/* The comp's dark method tints are 16 %; the semantic softs' 14 % is kept so the six methods
|
|
144
|
+
read as one family. BATCH is the one exception, at 13 %: teal is the lightest
|
|
145
|
+
hue here, and at 14 % --fg-subtle on its wash over --surface-3 measured 4.44:1 — the gate's
|
|
146
|
+
refusal is what moved it, by the smallest step that clears 4.5:1. */
|
|
147
|
+
--method-put: #c4a0ff;
|
|
148
|
+
--method-put-soft: rgba(196,160,255,.14);
|
|
149
|
+
--method-put-soft-solid: color-mix(in srgb, var(--method-put) 14%, var(--surface));
|
|
150
|
+
--method-batch: #5ed6c8;
|
|
151
|
+
--method-batch-soft: rgba(94,214,200,.13);
|
|
152
|
+
--method-batch-soft-solid: color-mix(in srgb, var(--method-batch) 13%, var(--surface));
|
|
133
153
|
--shadow: 0 1px 2px rgba(0,0,0,.4);
|
|
134
154
|
--shadow-md: 0 6px 20px rgba(0,0,0,.5);
|
|
135
155
|
--shadow-lg: 0 16px 40px rgba(0,0,0,.6);
|