@boyernick/standard-ui-tokens 0.1.1-canary.8 → 0.2.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.
- package/css/tokens.css +121 -0
- package/package.json +1 -1
package/css/tokens.css
CHANGED
|
@@ -73,6 +73,18 @@
|
|
|
73
73
|
transparent
|
|
74
74
|
);
|
|
75
75
|
|
|
76
|
+
/* Status colours for an inverted surface — a toast, or anything else that
|
|
77
|
+
flips against the page. The plain `--status-*` tokens are tuned for the
|
|
78
|
+
page's own background, so on a surface that is dark in light mode they
|
|
79
|
+
come out too dark to read. These carry the opposite pairing and flip with
|
|
80
|
+
the theme in the opposite direction, the same way `--text-primary-inverted`
|
|
81
|
+
does. The hue ramps themselves do not move between themes — only the greys
|
|
82
|
+
do — so both sides are spelled out. */
|
|
83
|
+
--status-info-inverted: var(--blue-200);
|
|
84
|
+
--status-success-inverted: var(--green-200);
|
|
85
|
+
--status-warning-inverted: var(--orange-200);
|
|
86
|
+
--status-critical-inverted: var(--red-200);
|
|
87
|
+
|
|
76
88
|
--chart-1: 4 184 76;
|
|
77
89
|
--chart-2: 2 133 255;
|
|
78
90
|
--chart-3: 251 106 34;
|
|
@@ -190,6 +202,11 @@
|
|
|
190
202
|
--status-warning: var(--orange-200);
|
|
191
203
|
--status-critical: var(--red-200);
|
|
192
204
|
|
|
205
|
+
--status-info-inverted: var(--blue-600);
|
|
206
|
+
--status-success-inverted: var(--green-700);
|
|
207
|
+
--status-warning-inverted: var(--orange-700);
|
|
208
|
+
--status-critical-inverted: var(--red-600);
|
|
209
|
+
|
|
193
210
|
--chart-neutral: 143 143 143;
|
|
194
211
|
|
|
195
212
|
--destructive: var(--red-400);
|
|
@@ -284,6 +301,10 @@
|
|
|
284
301
|
--color-status-warning-background: var(--status-warning-background);
|
|
285
302
|
--color-status-critical: var(--status-critical);
|
|
286
303
|
--color-status-critical-background: var(--status-critical-background);
|
|
304
|
+
--color-status-info-inverted: var(--status-info-inverted);
|
|
305
|
+
--color-status-success-inverted: var(--status-success-inverted);
|
|
306
|
+
--color-status-warning-inverted: var(--status-warning-inverted);
|
|
307
|
+
--color-status-critical-inverted: var(--status-critical-inverted);
|
|
287
308
|
|
|
288
309
|
--color-destructive: var(--destructive);
|
|
289
310
|
--color-destructive-active: var(--destructive-active);
|
|
@@ -609,6 +630,46 @@
|
|
|
609
630
|
}
|
|
610
631
|
}
|
|
611
632
|
|
|
633
|
+
@keyframes text-shimmer {
|
|
634
|
+
from {
|
|
635
|
+
background-position: 200% center;
|
|
636
|
+
}
|
|
637
|
+
to {
|
|
638
|
+
background-position: -200% center;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
@keyframes spinner-dot {
|
|
643
|
+
0%,
|
|
644
|
+
80%,
|
|
645
|
+
100% {
|
|
646
|
+
opacity: 0.25;
|
|
647
|
+
}
|
|
648
|
+
40% {
|
|
649
|
+
opacity: 1;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
@keyframes spinner-spoke {
|
|
654
|
+
from {
|
|
655
|
+
opacity: 1;
|
|
656
|
+
}
|
|
657
|
+
to {
|
|
658
|
+
opacity: 0.2;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/* Indeterminate progress. A stripe crossing the track, because there is no
|
|
663
|
+
proportion to fill — the movement is the only thing carrying "still going". */
|
|
664
|
+
@keyframes progress-indeterminate {
|
|
665
|
+
from {
|
|
666
|
+
transform: translateX(-100%);
|
|
667
|
+
}
|
|
668
|
+
to {
|
|
669
|
+
transform: translateX(400%);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
|
|
612
673
|
@keyframes ticker-scroll {
|
|
613
674
|
from {
|
|
614
675
|
translate: 0 0;
|
|
@@ -617,3 +678,63 @@
|
|
|
617
678
|
translate: -50% 0;
|
|
618
679
|
}
|
|
619
680
|
}
|
|
681
|
+
|
|
682
|
+
@keyframes lifeline-rail-draw {
|
|
683
|
+
from {
|
|
684
|
+
transform: scaleX(0);
|
|
685
|
+
}
|
|
686
|
+
to {
|
|
687
|
+
transform: scaleX(1);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
@keyframes lifeline-marker-in {
|
|
692
|
+
from {
|
|
693
|
+
opacity: 0;
|
|
694
|
+
transform: translate3d(0, 6px, 0);
|
|
695
|
+
}
|
|
696
|
+
to {
|
|
697
|
+
opacity: 1;
|
|
698
|
+
transform: translate3d(0, 0, 0);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
@keyframes lifeline-labels-in {
|
|
703
|
+
from {
|
|
704
|
+
opacity: 0;
|
|
705
|
+
}
|
|
706
|
+
to {
|
|
707
|
+
opacity: 1;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.lifeline-rail-intro {
|
|
712
|
+
transform: scaleX(var(--lifeline-intro-progress, 0));
|
|
713
|
+
transform-origin: left center;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.lifeline-rail-intro-vertical {
|
|
717
|
+
transform: scaleY(var(--lifeline-intro-progress, 0));
|
|
718
|
+
transform-origin: top center;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.lifeline-marker-intro {
|
|
722
|
+
opacity: 0;
|
|
723
|
+
animation: lifeline-marker-in var(--lifeline-marker-fade-ms, 420ms)
|
|
724
|
+
cubic-bezier(0.22, 1, 0.36, 1) forwards;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.lifeline-labels-intro {
|
|
728
|
+
opacity: 0;
|
|
729
|
+
animation: lifeline-labels-in var(--lifeline-labels-ms, 600ms)
|
|
730
|
+
cubic-bezier(0.22, 1, 0.36, 1) forwards;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.lifeline-labels.is-pinned {
|
|
734
|
+
z-index: 20;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.lifeline-typeset {
|
|
738
|
+
--lifeline-font: var(--font-sans);
|
|
739
|
+
font-family: var(--lifeline-font);
|
|
740
|
+
}
|