@cosxai/ui 0.4.2 → 0.4.3

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosxai/ui",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "COSX design system — React 19 component primitives shared across product-meta and other consumers",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -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
- --ck-accent: #E96E50;
202
- --ck-accent-hover: #D85A3E;
203
- --ck-accent-active: #C44D34;
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: #E63A9D;
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: #FF8FCC;
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: #3A78C8;
850
- --ck-accent-muted: rgba(74, 144, 226, 0.16);
851
- --ck-accent-border: rgba(74, 144, 226, 0.5);
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