@lucian-seo/lucian-ui 0.1.3 → 0.1.4
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/lib/styles.css +1 -1
- package/dist/lib/tokens.css +30 -0
- package/package.json +1 -1
package/dist/lib/tokens.css
CHANGED
|
@@ -617,6 +617,15 @@
|
|
|
617
617
|
/* The focus ring is one token so it cannot drift between components, and it is a
|
|
618
618
|
* two-tone ring so it survives being drawn on either the accent or the surface. */
|
|
619
619
|
--focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
|
|
620
|
+
/* Fields follow the radius scale within these limits. */
|
|
621
|
+
--radius-field-min: 4px;
|
|
622
|
+
--radius-field-max: 10px;
|
|
623
|
+
--duration-field-focus: 220ms;
|
|
624
|
+
--ease-field-focus: cubic-bezier(0.16, 1, 0.3, 1);
|
|
625
|
+
--field-shadow: 0 1px 2px 0 rgb(0 0 0 / 4%);
|
|
626
|
+
--focus-field-border-strength: 100%;
|
|
627
|
+
--focus-field-edge-strength: 100%;
|
|
628
|
+
--focus-outline-color: Highlight;
|
|
620
629
|
|
|
621
630
|
/*
|
|
622
631
|
* Press — a veil, not a colour.
|
|
@@ -635,6 +644,22 @@
|
|
|
635
644
|
--press-veil: hsl(var(--shadow-color) / 0.14);
|
|
636
645
|
}
|
|
637
646
|
|
|
647
|
+
/* Rebind derived field colors at theme and brand scopes, including nested scopes. */
|
|
648
|
+
:root,
|
|
649
|
+
[data-theme],
|
|
650
|
+
[data-brand] {
|
|
651
|
+
--focus-border-field: color-mix(in srgb, var(--accent) var(--focus-field-border-strength), var(--surface));
|
|
652
|
+
--focus-border-field-invalid: color-mix(in srgb, var(--danger) var(--focus-field-border-strength), var(--surface));
|
|
653
|
+
--focus-ring-field:
|
|
654
|
+
0 0 0 1px color-mix(in srgb, var(--accent) var(--focus-field-edge-strength), transparent),
|
|
655
|
+
0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent),
|
|
656
|
+
0 4px 12px -2px color-mix(in srgb, var(--accent) 12%, transparent);
|
|
657
|
+
--focus-ring-field-invalid:
|
|
658
|
+
0 0 0 1px color-mix(in srgb, var(--danger) var(--focus-field-edge-strength), transparent),
|
|
659
|
+
0 0 0 4px color-mix(in srgb, var(--danger) 18%, transparent),
|
|
660
|
+
0 4px 12px -2px color-mix(in srgb, var(--danger) 12%, transparent);
|
|
661
|
+
}
|
|
662
|
+
|
|
638
663
|
/*
|
|
639
664
|
* Variations. Nothing below touches a component and no component knows these blocks exist —
|
|
640
665
|
* that is what makes them variations rather than forks.
|
|
@@ -665,6 +690,8 @@
|
|
|
665
690
|
* `dark` is first because it is the one that proves the split.
|
|
666
691
|
*/
|
|
667
692
|
[data-theme="dark"] {
|
|
693
|
+
--focus-field-border-strength: 70%;
|
|
694
|
+
--focus-field-edge-strength: 45%;
|
|
668
695
|
/*
|
|
669
696
|
* `color-scheme` is how the parts the browser draws itself find out which way this theme
|
|
670
697
|
* goes: the caret, the autofill background, the native date picker, Safari's scrollbar.
|
|
@@ -772,6 +799,8 @@
|
|
|
772
799
|
* Roles only. The primitive scale stays on `:root` and a theme never repeats it — rule 9.
|
|
773
800
|
*/
|
|
774
801
|
[data-theme="light"] {
|
|
802
|
+
--focus-field-border-strength: 100%;
|
|
803
|
+
--focus-field-edge-strength: 100%;
|
|
775
804
|
color-scheme: light;
|
|
776
805
|
|
|
777
806
|
--surface-sunken: var(--gray-50);
|
|
@@ -1106,6 +1135,7 @@
|
|
|
1106
1135
|
@media (prefers-reduced-motion: reduce) {
|
|
1107
1136
|
:root {
|
|
1108
1137
|
--duration-fast: 0.01ms;
|
|
1138
|
+
--duration-field-focus: 0.01ms;
|
|
1109
1139
|
--duration-base: 0.01ms;
|
|
1110
1140
|
--duration-slow: 0.01ms;
|
|
1111
1141
|
--duration-slower: 0.01ms;
|