@dimaan/ui 0.0.28 → 0.0.30

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/dist/preset.css CHANGED
@@ -105,7 +105,7 @@
105
105
  --color-popover-foreground: oklch(0.16 0.018 264);
106
106
 
107
107
  /* Brand */
108
- --color-primary: oklch(0.55 0.22 264);
108
+ --color-primary: oklch(0.55 0.1 195);
109
109
  --color-primary-foreground: oklch(0.985 0.002 264);
110
110
 
111
111
  /* Accent (hover / subtle highlight) */
@@ -124,10 +124,44 @@
124
124
  --color-warning: oklch(0.78 0.16 80);
125
125
  --color-warning-foreground: oklch(0.205 0 0);
126
126
 
127
+ /* Soft-badge text — dark, AA-readable on a translucent /15 tint of each status color */
128
+ --color-primary-soft-foreground: oklch(0.42 0.08 195);
129
+ --color-success-soft-foreground: oklch(0.43 0.13 145);
130
+ --color-warning-soft-foreground: oklch(0.47 0.09 70);
131
+ --color-destructive-soft-foreground: oklch(0.47 0.19 27);
132
+
133
+ /* ── Bold gradient + glow — signature moments only ───────────── */
134
+ --gradient-primary: linear-gradient(
135
+ 135deg,
136
+ oklch(0.64 0.24 295),
137
+ oklch(0.55 0.25 270) 55%,
138
+ oklch(0.62 0.2 230)
139
+ );
140
+ --color-primary-glow: oklch(0.55 0.1 195 / 0.4);
141
+
142
+ /* Primary button "tactile" depth — colored bloom follows --color-primary-glow */
143
+ --shadow-btn: inset 0 1px 0 oklch(1 0 0 / 0.22), 0 1px 2px oklch(0.2 0.03 264 / 0.25), 0 5px 14px -4px var(--color-primary-glow);
144
+ --shadow-btn-hover: inset 0 1px 0 oklch(1 0 0 / 0.28), 0 2px 5px oklch(0.2 0.03 264 / 0.25), 0 10px 24px -5px var(--color-primary-glow);
145
+ --shadow-btn-active: inset 0 1px 2px oklch(0.2 0.03 264 / 0.4);
146
+
147
+ /* Semantic solid buttons (destructive/success/warning) — same tactile material as
148
+ primary but a neutral bloom, so primary stays the brand-glow hero. */
149
+ --shadow-solid: inset 0 1px 0 oklch(1 0 0 / 0.18), 0 1px 2px oklch(0.2 0.03 264 / 0.22), 0 4px 12px -4px oklch(0.2 0.03 264 / 0.22);
150
+ --shadow-solid-hover: inset 0 1px 0 oklch(1 0 0 / 0.24), 0 2px 5px oklch(0.2 0.03 264 / 0.22), 0 9px 22px -5px oklch(0.2 0.03 264 / 0.28);
151
+ --shadow-solid-active: inset 0 1px 2px oklch(0.2 0.03 264 / 0.38);
152
+
153
+ /* Elevated surface — premium cards and the data-table container */
154
+ --shadow-card: 0 1px 2px oklch(0.2 0.03 264 / 0.05), 0 12px 28px -14px oklch(0.2 0.03 264 / 0.16);
155
+
156
+ /* ── Glass surfaces — sidebar, header, overlays ──────────────── */
157
+ --glass-bg: oklch(1 0 0 / 0.55);
158
+ --glass-border: oklch(1 0 0 / 0.6);
159
+ --glass-blur: 20px;
160
+
127
161
  /* Borders & inputs */
128
162
  --color-border: oklch(0.92 0.006 264);
129
163
  --color-input: oklch(0.92 0.006 264);
130
- --color-ring: oklch(0.55 0.22 264);
164
+ --color-ring: oklch(0.55 0.1 195);
131
165
 
132
166
  /* Sidebar surface (slightly tinted off the main background) */
133
167
  --color-sidebar: oklch(0.985 0.004 264);
@@ -214,9 +248,22 @@
214
248
  --color-popover-foreground: oklch(0.96 0.004 264);
215
249
 
216
250
  /* Brand — a touch brighter so it pops against dark surfaces */
217
- --color-primary: oklch(0.62 0.2 264);
251
+ --color-primary: oklch(0.6 0.1 195);
218
252
  --color-primary-foreground: oklch(0.985 0.004 264);
219
253
 
254
+ /* Bold gradient + glow — brighter to pop on dark surfaces */
255
+ --gradient-primary: linear-gradient(
256
+ 135deg,
257
+ oklch(0.7 0.22 295),
258
+ oklch(0.62 0.22 270) 55%,
259
+ oklch(0.66 0.18 230)
260
+ );
261
+ --color-primary-glow: oklch(0.6 0.1 195 / 0.5);
262
+
263
+ /* Glass — dark frosted surfaces */
264
+ --glass-bg: oklch(0.28 0.02 264 / 0.5);
265
+ --glass-border: oklch(1 0 0 / 0.12);
266
+
220
267
  /* Accent */
221
268
  --color-accent: oklch(0.27 0.022 264);
222
269
  --color-accent-foreground: oklch(0.96 0.004 264);
@@ -233,10 +280,19 @@
233
280
  --color-warning: oklch(0.8 0.15 80);
234
281
  --color-warning-foreground: oklch(0.2 0.01 80);
235
282
 
283
+ /* Soft-badge text — light, AA-readable on a translucent /15 tint in dark mode */
284
+ --color-primary-soft-foreground: oklch(0.8 0.09 195);
285
+ --color-success-soft-foreground: oklch(0.8 0.14 145);
286
+ --color-warning-soft-foreground: oklch(0.84 0.13 85);
287
+ --color-destructive-soft-foreground: oklch(0.78 0.15 27);
288
+
289
+ /* Elevated surface — stronger in dark so the lift reads on dark backgrounds */
290
+ --shadow-card: 0 1px 2px oklch(0 0 0 / 0.4), 0 14px 30px -14px oklch(0 0 0 / 0.6);
291
+
236
292
  /* Borders & inputs */
237
293
  --color-border: oklch(0.27 0.016 264);
238
294
  --color-input: oklch(0.3 0.016 264);
239
- --color-ring: oklch(0.62 0.2 264);
295
+ --color-ring: oklch(0.6 0.1 195);
240
296
 
241
297
  /* Sidebar surface */
242
298
  --color-sidebar: oklch(0.205 0.014 264);
@@ -330,11 +386,22 @@
330
386
  @utility zoom-out-95 {
331
387
  --tw-exit-scale: 0.95;
332
388
  }
389
+ @utility bg-gradient-primary {
390
+ background-image: var(--gradient-primary);
391
+ }
392
+
393
+ @utility glass {
394
+ background-color: var(--glass-bg);
395
+ backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
396
+ -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
397
+ border: 1px solid var(--glass-border);
398
+ }
399
+
333
400
 
334
- /* Respect users who ask for less motion. */
401
+ /* Respect users who prefer reduced motion: neutralize our entrance animations. */
335
402
  @media (prefers-reduced-motion: reduce) {
336
403
  .animate-in,
337
404
  .animate-out {
338
- animation: none;
405
+ animation: none !important;
339
406
  }
340
407
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimaan/ui",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "description": "Shared React UI component library for Diman company projects.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,