@refine-studio/ui 0.2.0 → 0.3.0

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.
Files changed (2) hide show
  1. package/dist/styles.css +107 -19
  2. package/package.json +1 -1
package/dist/styles.css CHANGED
@@ -210,6 +210,30 @@
210
210
  --violet-ink: oklch(0.48 0.18 295);
211
211
  --violet-foreground: oklch(0.985 0.01 295);
212
212
 
213
+ --status-todo: oklch(0.55 0.014 286);
214
+ --status-todo-soft: var(--muted);
215
+ --status-todo-ink: oklch(0.45 0.014 286);
216
+ --status-todo-foreground: oklch(0.985 0 0);
217
+ --status-doing: var(--info);
218
+ --status-doing-soft: var(--info-soft);
219
+ --status-doing-ink: var(--info-ink);
220
+ --status-doing-foreground: var(--info-foreground);
221
+ --status-done: var(--success);
222
+ --status-done-soft: var(--success-soft);
223
+ --status-done-ink: var(--success-ink);
224
+ --status-done-foreground: var(--success-foreground);
225
+ --status-ended: oklch(0.72 0.006 286);
226
+ --status-ended-soft: oklch(0.975 0.001 286);
227
+ --status-ended-ink: oklch(0.54 0.006 286);
228
+ --status-ended-foreground: oklch(0.141 0.005 286);
229
+
230
+ --chart-1: oklch(0.66 0.115 182);
231
+ --chart-2: oklch(0.58 0.085 182);
232
+ --chart-3: oklch(0.5 0.06 182);
233
+ --chart-4: oklch(0.42 0.035 182);
234
+ --chart-other: oklch(0.86 0.004 286);
235
+ --chart-other-line: oklch(0.74 0.006 286);
236
+
213
237
  --shadow-color: oklch(0.141 0.005 286);
214
238
  --shadow-strength: 1;
215
239
  }
@@ -268,6 +292,30 @@
268
292
  --violet-ink: oklch(0.83 0.1 300);
269
293
  --violet-foreground: oklch(0.18 0.05 295);
270
294
 
295
+ --status-todo: oklch(0.68 0.014 286);
296
+ --status-todo-soft: oklch(0.27 0.008 286);
297
+ --status-todo-ink: oklch(0.82 0.012 286);
298
+ --status-todo-foreground: oklch(0.141 0.005 286);
299
+ --status-doing: var(--info);
300
+ --status-doing-soft: var(--info-soft);
301
+ --status-doing-ink: var(--info-ink);
302
+ --status-doing-foreground: var(--info-foreground);
303
+ --status-done: var(--success);
304
+ --status-done-soft: var(--success-soft);
305
+ --status-done-ink: var(--success-ink);
306
+ --status-done-foreground: var(--success-foreground);
307
+ --status-ended: oklch(0.42 0.006 286);
308
+ --status-ended-soft: oklch(0.2 0.004 286);
309
+ --status-ended-ink: oklch(0.66 0.006 286);
310
+ --status-ended-foreground: oklch(0.985 0 0);
311
+
312
+ --chart-1: oklch(0.8 0.13 182);
313
+ --chart-2: oklch(0.7 0.1 182);
314
+ --chart-3: oklch(0.61 0.075 182);
315
+ --chart-4: oklch(0.53 0.05 182);
316
+ --chart-other: oklch(0.36 0.006 286);
317
+ --chart-other-line: oklch(0.46 0.006 286);
318
+
271
319
  --shadow-color: oklch(0 0 0);
272
320
  --shadow-strength: 4;
273
321
  }
@@ -354,6 +402,22 @@
354
402
  --color-info-soft: var(--info-soft);
355
403
  --color-info-ink: var(--info-ink);
356
404
  --color-info-foreground: var(--info-foreground);
405
+ --color-status-todo: var(--status-todo);
406
+ --color-status-todo-soft: var(--status-todo-soft);
407
+ --color-status-todo-ink: var(--status-todo-ink);
408
+ --color-status-todo-foreground: var(--status-todo-foreground);
409
+ --color-status-doing: var(--status-doing);
410
+ --color-status-doing-soft: var(--status-doing-soft);
411
+ --color-status-doing-ink: var(--status-doing-ink);
412
+ --color-status-doing-foreground: var(--status-doing-foreground);
413
+ --color-status-done: var(--status-done);
414
+ --color-status-done-soft: var(--status-done-soft);
415
+ --color-status-done-ink: var(--status-done-ink);
416
+ --color-status-done-foreground: var(--status-done-foreground);
417
+ --color-status-ended: var(--status-ended);
418
+ --color-status-ended-soft: var(--status-ended-soft);
419
+ --color-status-ended-ink: var(--status-ended-ink);
420
+ --color-status-ended-foreground: var(--status-ended-foreground);
357
421
  --color-violet: var(--violet);
358
422
  --color-violet-soft: var(--violet-soft);
359
423
  --color-violet-ink: var(--violet-ink);
@@ -441,6 +505,7 @@
441
505
  --animate-marquee: marquee var(--marquee-duration, 30s) linear infinite;
442
506
  --animate-rise: rise 0.5s var(--ease-out-expo) both;
443
507
  --animate-indeterminate: indeterminate 1.4s var(--ease-out-expo) infinite;
508
+ --animate-in-progress: in-progress 2.4s linear infinite;
444
509
 
445
510
  @keyframes shimmer {
446
511
  from {
@@ -492,6 +557,15 @@
492
557
  }
493
558
  }
494
559
 
560
+ @keyframes in-progress {
561
+ from {
562
+ background-position: 0 0;
563
+ }
564
+ to {
565
+ background-position: 1.5rem 0;
566
+ }
567
+ }
568
+
495
569
  @keyframes indeterminate {
496
570
  from {
497
571
  transform: translateX(-100%) scaleX(0.4);
@@ -514,32 +588,25 @@
514
588
  }
515
589
 
516
590
  /*
517
- * Chart colours: categorical series, used in order from chart-1.
518
- * Tailwind's 500 step, the same in light and dark. Neighbours in the order
519
- * stay apart under protanopia, deuteranopia and tritanopia. The fills reach
520
- * 2:1 on white, not 3:1, so every chart carries a legend or direct labels.
591
+ * Chart colours: one ramp of the gem hue, ordered by emphasis. chart-1 is
592
+ * vivid and the default for a single series. Each later step moves at
593
+ * least 0.08 in lightness and loses chroma. Light mode steps get darker.
594
+ * Dark mode has its own, brighter steps, so the tail stays apart from the
595
+ * near-black card.
596
+ * chart-other is the quietest band, a neutral for "Others": lighter than
597
+ * chart-4 in light mode and dimmer in dark mode.
598
+ * chart-other-line is a step stronger, for the context lines of a line
599
+ * chart, where a thin stroke needs more contrast than a band. The values
600
+ * sit in the colour-mode blocks above.
521
601
  */
522
602
 
523
- :root {
524
- --chart-1: oklch(0.704 0.14 182.503);
525
- --chart-2: oklch(0.667 0.295 322.15);
526
- --chart-3: oklch(0.723 0.219 149.579);
527
- --chart-4: oklch(0.606 0.25 292.717);
528
- --chart-5: oklch(0.637 0.237 25.331);
529
- --chart-6: oklch(0.685 0.169 237.323);
530
- --chart-7: oklch(0.656 0.241 354.308);
531
- --chart-8: oklch(0.769 0.188 70.08);
532
- }
533
-
534
603
  @theme inline {
535
604
  --color-chart-1: var(--chart-1);
536
605
  --color-chart-2: var(--chart-2);
537
606
  --color-chart-3: var(--chart-3);
538
607
  --color-chart-4: var(--chart-4);
539
- --color-chart-5: var(--chart-5);
540
- --color-chart-6: var(--chart-6);
541
- --color-chart-7: var(--chart-7);
542
- --color-chart-8: var(--chart-8);
608
+ --color-chart-other: var(--chart-other);
609
+ --color-chart-other-line: var(--chart-other-line);
543
610
  }
544
611
 
545
612
  /* Utilities that carry the brand. */
@@ -659,6 +726,27 @@
659
726
  background-size: 200% 100%;
660
727
  }
661
728
 
729
+ /*
730
+ * A calm stripe that drifts across an in-progress fill, such as a bar in
731
+ * `bg-status-doing`. It keeps the fill's own colour and stops under
732
+ * `prefers-reduced-motion: reduce`, where the static stripes still mark it.
733
+ */
734
+ @utility in-progress {
735
+ background-image: linear-gradient(
736
+ 45deg,
737
+ oklch(1 0 0 / 0.2) 25%,
738
+ transparent 25% 50%,
739
+ oklch(1 0 0 / 0.2) 50% 75%,
740
+ transparent 75%
741
+ );
742
+ background-size: 1.5rem 1.5rem;
743
+ animation: var(--animate-in-progress);
744
+
745
+ @media (prefers-reduced-motion: reduce) {
746
+ animation: none;
747
+ }
748
+ }
749
+
662
750
  @layer base {
663
751
  *,
664
752
  ::before,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refine-studio/ui",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Refine UI: the design system the Diamonds use to build internal tools.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://ui.refine.studio",