@cosxai/ui 0.4.2 → 0.4.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/package.json
CHANGED
|
@@ -60,7 +60,10 @@ html[data-ck-chrome="ambient"] .ck-actionbar-btn {
|
|
|
60
60
|
}
|
|
61
61
|
html[data-ck-chrome="ambient"] .ck-btn--primary {
|
|
62
62
|
background: var(--ck-accent);
|
|
63
|
-
|
|
63
|
+
/* Defaults to white to pair with ambient's deep saturated accents;
|
|
64
|
+
consumer apps may stamp --ck-accent-fg when overriding
|
|
65
|
+
--ck-accent-light-override (e.g. light brand → dark text). */
|
|
66
|
+
color: var(--ck-accent-fg, #FFFFFF);
|
|
64
67
|
border: none;
|
|
65
68
|
box-shadow: var(--ck-shadow-1);
|
|
66
69
|
}
|
|
@@ -29,7 +29,10 @@ html[data-ck-chrome="editorial"] .ck-actionbar-btn {
|
|
|
29
29
|
html[data-ck-chrome="editorial"] .ck-btn--primary,
|
|
30
30
|
html[data-ck-chrome="editorial"] .ck-actionbar-btn--primary {
|
|
31
31
|
background: var(--ck-accent);
|
|
32
|
-
|
|
32
|
+
/* Defaults to near-black to pair with coral; consumer apps may
|
|
33
|
+
stamp --ck-accent-fg to a different colour when overriding
|
|
34
|
+
--ck-accent-light-override (e.g. dark brand → white text). */
|
|
35
|
+
color: var(--ck-accent-fg, #0F0F0F);
|
|
33
36
|
}
|
|
34
37
|
html[data-ck-chrome="editorial"] .ck-btn--primary:hover,
|
|
35
38
|
html[data-ck-chrome="editorial"] .ck-actionbar-btn--primary:hover {
|
|
@@ -42,7 +42,10 @@ html[data-ck-chrome="neobrutalism"] .ck-actionbar-btn:active:not(:disabled) {
|
|
|
42
42
|
|
|
43
43
|
html[data-ck-chrome="neobrutalism"] .ck-btn--primary {
|
|
44
44
|
background: var(--ck-accent);
|
|
45
|
-
|
|
45
|
+
/* Defaults to black to pair with neobrutalism's saturated pastel
|
|
46
|
+
accent; consumer apps may stamp --ck-accent-fg when overriding
|
|
47
|
+
--ck-accent-light-override. */
|
|
48
|
+
color: var(--ck-accent-fg, #000);
|
|
46
49
|
}
|
|
47
50
|
html[data-ck-chrome="neobrutalism"] .ck-btn--primary:hover:not(:disabled) {
|
|
48
51
|
background: var(--ck-accent);
|
|
@@ -86,7 +86,10 @@ html[data-ck-chrome="riso"] .ck-actionbar-btn:active:not(:disabled) {
|
|
|
86
86
|
html[data-ck-chrome="riso"] .ck-btn--primary,
|
|
87
87
|
html[data-ck-chrome="riso"] .ck-actionbar-btn--primary {
|
|
88
88
|
background: var(--ck-accent);
|
|
89
|
-
|
|
89
|
+
/* Defaults to near-black to pair with riso's pink ink accent;
|
|
90
|
+
consumer apps may stamp --ck-accent-fg when overriding
|
|
91
|
+
--ck-accent-light-override. */
|
|
92
|
+
color: var(--ck-accent-fg, #1A1A1A);
|
|
90
93
|
box-shadow: 3px 3px 0 var(--ck-riso-blue);
|
|
91
94
|
}
|
|
92
95
|
html[data-ck-chrome="riso"] .ck-btn--primary:hover:not(:disabled),
|
|
@@ -82,7 +82,10 @@ html[data-ck-chrome="sketch"] .ck-actionbar-btn:active:not(:disabled) {
|
|
|
82
82
|
html[data-ck-chrome="sketch"] .ck-btn--primary,
|
|
83
83
|
html[data-ck-chrome="sketch"] .ck-actionbar-btn--primary {
|
|
84
84
|
background: var(--ck-accent);
|
|
85
|
-
|
|
85
|
+
/* Defaults to paper-white to pair with sketch's blue ink accent;
|
|
86
|
+
consumer apps may stamp --ck-accent-fg when overriding
|
|
87
|
+
--ck-accent-light-override. */
|
|
88
|
+
color: var(--ck-accent-fg, #FFFEF9);
|
|
86
89
|
box-shadow: 2px 3px 0 var(--ck-text-primary);
|
|
87
90
|
}
|
|
88
91
|
html[data-ck-chrome="sketch"] .ck-btn--primary:hover:not(:disabled) {
|
package/src/styles/tokens.css
CHANGED
|
@@ -195,12 +195,18 @@ html[data-ck-chrome="editorial"] {
|
|
|
195
195
|
--ck-text-disabled: #C9C3B5;
|
|
196
196
|
--ck-text-inverse: #ECE6D6;
|
|
197
197
|
|
|
198
|
-
/* Coral is THE accent. Ochre lives in --ck-warning for
|
|
198
|
+
/* Coral is THE editorial accent. Ochre lives in --ck-warning for
|
|
199
199
|
secondary "guest star" use (the brief says one accent only;
|
|
200
|
-
ochre repurposes the warning slot since its tone matches).
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
ochre repurposes the warning slot since its tone matches).
|
|
201
|
+
Runtime brand override flows through --ck-accent-light-override
|
|
202
|
+
just like the default :root chain — coral is the FALLBACK, not
|
|
203
|
+
a hardcode. hover/active derive via the same color-mix formula
|
|
204
|
+
so brand colour cascades to the full accent family. Muted /
|
|
205
|
+
border keep editorial's softer 14% / 40% (vs base 8% / 35%) so
|
|
206
|
+
the editorial "watercolour wash" feel survives a brand swap. */
|
|
207
|
+
--ck-accent: var(--ck-accent-light-override, #E96E50);
|
|
208
|
+
--ck-accent-hover: color-mix(in oklab, var(--ck-accent), black 10%);
|
|
209
|
+
--ck-accent-active: color-mix(in oklab, var(--ck-accent), black 18%);
|
|
204
210
|
--ck-accent-muted: color-mix(in oklab, var(--ck-accent) 14%, transparent);
|
|
205
211
|
--ck-accent-border: color-mix(in oklab, var(--ck-accent) 40%, transparent);
|
|
206
212
|
--ck-border-focus: var(--ck-accent);
|
|
@@ -734,7 +740,7 @@ html[data-ck-chrome="riso"] {
|
|
|
734
740
|
associates with the aesthetic. Override per-app for blue /
|
|
735
741
|
yellow / orange-led palettes. */
|
|
736
742
|
--ck-accent: var(--ck-accent-light-override, #FF48B0);
|
|
737
|
-
--ck-accent-hover:
|
|
743
|
+
--ck-accent-hover: color-mix(in oklab, var(--ck-accent), black 10%);
|
|
738
744
|
--ck-accent-muted: color-mix(in oklab, var(--ck-accent) 14%, transparent);
|
|
739
745
|
--ck-accent-border: color-mix(in oklab, var(--ck-accent) 50%, transparent);
|
|
740
746
|
|
|
@@ -798,7 +804,7 @@ html[data-ck-theme="dark"][data-ck-chrome="riso"] {
|
|
|
798
804
|
--ck-text-inverse: #14131A;
|
|
799
805
|
|
|
800
806
|
--ck-accent: var(--ck-accent-dark-override, var(--ck-accent-light-override, #FF6FBF));
|
|
801
|
-
--ck-accent-hover:
|
|
807
|
+
--ck-accent-hover: color-mix(in oklab, var(--ck-accent), white 10%);
|
|
802
808
|
|
|
803
809
|
--ck-shadow-1: 0 1px 0 rgba(0, 0, 0, 0.6);
|
|
804
810
|
--ck-shadow-2: 3px 3px 0 var(--ck-riso-blue);
|
|
@@ -846,9 +852,9 @@ html[data-ck-chrome="sketch"] {
|
|
|
846
852
|
--ck-sketch-hi-green: rgba(111, 207, 151, 0.32);
|
|
847
853
|
|
|
848
854
|
--ck-accent: var(--ck-accent-light-override, var(--ck-sketch-blue));
|
|
849
|
-
--ck-accent-hover:
|
|
850
|
-
--ck-accent-muted:
|
|
851
|
-
--ck-accent-border:
|
|
855
|
+
--ck-accent-hover: color-mix(in oklab, var(--ck-accent), black 10%);
|
|
856
|
+
--ck-accent-muted: color-mix(in oklab, var(--ck-accent) 16%, transparent);
|
|
857
|
+
--ck-accent-border: color-mix(in oklab, var(--ck-accent) 50%, transparent);
|
|
852
858
|
|
|
853
859
|
/* Handwriting fonts — Caveat / Patrick Hand / Kalam are common
|
|
854
860
|
Google Fonts; Comic Sans MS is the universal fallback that
|