@nexus-cross/crossx-design-system 1.5.0-beta.1 → 1.5.0-beta.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/README.md +4 -4
- package/dist/index.d.ts +8 -8
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,10 +42,10 @@ const css = buildDesignSystemCss(defaultDesignSystem);
|
|
|
42
42
|
|
|
43
43
|
## Picking a ramp
|
|
44
44
|
|
|
45
|
-
`accent.primary` is the **brand
|
|
46
|
-
`system.
|
|
47
|
-
`system.
|
|
48
|
-
|
|
45
|
+
`accent.primary` is the **brand purple** (light `#7E54F4` / `#7346F3`, dark
|
|
46
|
+
`#A392FF`). `system.purple` shares the light values but is a status ramp,
|
|
47
|
+
`system.orange` is the **warning amber** (`#FC8B01` / `#E56F00`), and
|
|
48
|
+
`system.green` is the teal success ramp. Choose by meaning, not by eye:
|
|
49
49
|
|
|
50
50
|
| Intent | Ramp |
|
|
51
51
|
|---|---|
|
package/dist/index.d.ts
CHANGED
|
@@ -176,14 +176,14 @@ type ThemeMode = 'light' | 'dark';
|
|
|
176
176
|
* Black/white alpha steps (content, border, overlay) are emitted as hex with an
|
|
177
177
|
* alpha byte.
|
|
178
178
|
*
|
|
179
|
-
* ⚠️ `accent.primary` is the **
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* - `system.orange` —
|
|
184
|
-
* - `system.green` —
|
|
185
|
-
*
|
|
186
|
-
*
|
|
179
|
+
* ⚠️ `accent.primary` is the **purple** brand ramp (light `#7E54F4` / `#7346F3`,
|
|
180
|
+
* dark `#A392FF`). It was previously the orange ramp (`#FF8438` / `#F0640D`).
|
|
181
|
+
* - `accent.primary` — brand purple (same light values as `system.purple`;
|
|
182
|
+
* dark mode uses the lighter `#A392FF` for contrast on dark surfaces)
|
|
183
|
+
* - `system.orange` — warning amber (`#FC8B01` / `#E56F00`)
|
|
184
|
+
* - `system.green` — teal ramp, used only for success/positive
|
|
185
|
+
* `accent.primary` and `system.purple` share light values but are NOT
|
|
186
|
+
* interchangeable — pick by meaning (brand vs status), not by eye.
|
|
187
187
|
*/
|
|
188
188
|
|
|
189
189
|
declare const lightColors: ColorScale;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var d={bg:{default:"#FFFFFF",dim:"#F5F7FA"},surface:{default:"#FFFFFF",medium:"#F5F7FA",high:"#EDF1F2",dim:"#F9FAFB",inverted:"#1E232E"},content:{highest:"#000000",high:"#000000D9",medium:"#000000A6",low:"#00000066",lowest:"#00000040",inverted:"#FFFFFF"},border:{default:"#00000012",medium:"#0000002E",high:"#000000A6"},accent:{primary:{on:"#FFFFFF",default:"#
|
|
1
|
+
var d={bg:{default:"#FFFFFF",dim:"#F5F7FA"},surface:{default:"#FFFFFF",medium:"#F5F7FA",high:"#EDF1F2",dim:"#F9FAFB",inverted:"#1E232E"},content:{highest:"#000000",high:"#000000D9",medium:"#000000A6",low:"#00000066",lowest:"#00000040",inverted:"#FFFFFF"},border:{default:"#00000012",medium:"#0000002E",high:"#000000A6"},accent:{primary:{on:"#FFFFFF",default:"#7E54F4",high:"#7346F3",low:"#F5F3FF",lowest:"#F9F8FF",onInverted:"#7E54F4"}},system:{red:{on:"#FFFFFF",default:"#DA0B2E",high:"#D20609",low:"#FFEEEE",lowest:"#FFF6F6",onInverted:"#FF0F47"},blue:{on:"#FFFFFF",default:"#0888DE",high:"#008DCA",low:"#ECF8FC",lowest:"#F5FBFE",onInverted:"#0FC7FF"},orange:{on:"#FFFFFF",default:"#FC8B01",high:"#E56F00",medium:"#FDEFDA",low:"#FCF5E9",lowest:"#FFF9F2",onInverted:"#FF9F21"},purple:{on:"#FFFFFF",default:"#7E54F4",high:"#7346F3",low:"#F5F3FF",lowest:"#F9F8FF",onInverted:"#9B78FF"},green:{on:"#FFFFFF",default:"#00B4B7",high:"#00A0A2",medium:"#D8F3F2",low:"#E7F9F8",lowest:"#F0FAF9",onInverted:"#00E8C9"}},overlay:{dim:"#00000080",subtle:"#00000005"},static:{white:"#FFFFFF",black:"#000000"}},m={bg:{default:"#1E232E",dim:"#191D27"},surface:{default:"#1E232E",medium:"#252B39",high:"#363B4C",dim:"#161B26",inverted:"#FFFFFF"},content:{highest:"#FFFFFF",high:"#FFFFFFD9",medium:"#FFFFFFA6",low:"#FFFFFF66",lowest:"#FFFFFF40",inverted:"#000000"},border:{default:"#FFFFFF12",medium:"#FFFFFF2E",high:"#FFFFFFA6"},accent:{primary:{on:"#000000",default:"#A392FF",high:"#A392FF",low:"#2E2854",lowest:"#2A2740",onInverted:"#A392FF"}},system:{red:{on:"#FFFFFF",default:"#CD0C40",high:"#EA1546",low:"#461420",lowest:"#39151E",onInverted:"#D20609"},blue:{on:"#FFFFFF",default:"#0888DE",high:"#17B4E3",low:"#143446",lowest:"#162B3B",onInverted:"#008DCA"},orange:{on:"#000000",default:"#FF9F21",high:"#FF9F21",medium:"#41321E",low:"#342B1E",lowest:"#2E2820",onInverted:"#E56F00"},purple:{on:"#FFFFFF",default:"#744FDC",high:"#9B78FF",low:"#2E2854",lowest:"#2A2740",onInverted:"#7346F3"},green:{on:"#000000",default:"#00CEB2",high:"#00CEB2",medium:"#114146",low:"#123235",lowest:"#102E31",onInverted:"#00A0A2"}},overlay:{dim:"#000000B3",subtle:"#00000026"},static:{white:"#FFFFFF",black:"#000000"}};var E="Inter, sans-serif",e=(t,o,r,n)=>({fontFamily:E,fontSize:t,fontWeight:o,lineHeight:r,letterSpacing:n}),c={text:{"2xs":e(10,400,1.5,-1),xs:e(12,400,1.5,-1),sm:e(14,400,1.5,-1),base:e(16,400,1.5,-1),lg:e(18,400,1.5,-1),xl:e(20,400,1.5,-1)},textMedium:{"2xs":e(10,500,1.5,-1),xs:e(12,500,1.5,-1),sm:e(14,500,1.5,-1),base:e(16,500,1.5,-1),lg:e(18,500,1.5,-1),xl:e(20,500,1.5,-1)},textSemibold:{xs:e(12,600,1.5,-1),sm:e(14,600,1.5,-1),base:e(16,600,1.5,-1),lg:e(18,600,1.5,-1),xl:e(20,600,1.5,-1)},label:{xs:e(10,500,1,0),sm:e(12,500,1,0),md:e(14,500,1,0),lg:e(16,500,1,0)},labelSemibold:{sm:e(12,600,1,0),md:e(14,600,1,0),lg:e(16,600,1,0)},heading:{h7:e(14,600,1.25,0),h6:e(16,600,1.25,0),h5:e(18,600,1.25,0),h4:e(20,600,1.25,0),h3:e(24,600,1.25,0),h2:e(30,700,1.25,0),h1:e(36,700,1.25,0)},display:{sm:e(36,700,1.25,0),md:e(48,700,1.25,0),lg:e(60,700,1.25,0)}};var g={responsivePadding:{sm:16,md:24,lg:32}};var u={shadowModal:{light:"0px 4px 30px -1px rgba(0, 0, 0, 0.15)",dark:"0px 4px 30px -1px rgba(0, 0, 0, 0.7)"},bgBlur7:"blur(3.5px)",accentGradient:"linear-gradient(196deg, #ff2589 16%, #ff823d 84%)"};var p={name:"crossx",colors:{light:d,dark:m},typography:c,layout:g,effects:u};var h="--ds";function a(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function S(t,o,r){for(let[n,s]of Object.entries(t)){let i=[...o,a(n)];typeof s=="string"?r.push(` ${h}-${i.join("-")}: ${s};`):s&&typeof s=="object"&&S(s,i,r)}}function f(t){let o=[];return S(t,[],o),o.join(`
|
|
2
2
|
`)}function b(t){let o=[];for(let[r,n]of Object.entries(t)){let s=a(r);for(let[i,l]of Object.entries(n))o.push(` ${h}-${s}-${a(i)}: ${l}px;`)}return o.join(`
|
|
3
|
-
`)}function
|
|
3
|
+
`)}function D(t){return t===0?"0":`${t/100}em`}function C(t,o){return[`.${t} {`,` font-family: ${o.fontFamily};`,` font-size: ${o.fontSize}px;`,` font-weight: ${o.fontWeight};`,` line-height: ${o.lineHeight};`,` letter-spacing: ${D(o.letterSpacing)};`,"}"].join(`
|
|
4
4
|
`)}function x(t){let o=[];for(let[r,n]of Object.entries(t)){let s=a(r);for(let[i,l]of Object.entries(n))o.push(C(`ds-${s}-${i}`,l))}return o.join(`
|
|
5
5
|
|
|
6
6
|
`)}function y(t,o={}){return[`${o.scope??":root"}, [data-ds-theme="dark"] {`,f(t.colors.dark),b(t.layout),` --ds-shadow-modal: ${t.effects.shadowModal.dark};`,` --ds-bg-blur-7: ${t.effects.bgBlur7};`,` --ds-accent-gradient: ${t.effects.accentGradient};`,"}","",'[data-ds-theme="light"] {',f(t.colors.light),` --ds-shadow-modal: ${t.effects.shadowModal.light};`,"}","",x(t.typography),""].join(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-cross/crossx-design-system",
|
|
3
|
-
"version": "1.5.0-beta.
|
|
3
|
+
"version": "1.5.0-beta.3",
|
|
4
4
|
"description": "CROSSx design system — color, typography and layout tokens with a swappable DesignSystem contract",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|