@duro-app/tokens 0.48.0 → 0.50.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.
Files changed (2) hide show
  1. package/dist/vars.css +149 -0
  2. package/package.json +5 -3
package/dist/vars.css ADDED
@@ -0,0 +1,149 @@
1
+ /*
2
+ * GENERATED by scripts/generate-vars-css.mjs — do not edit.
3
+ *
4
+ * Stable public names for the design tokens. The StyleX variables these point
5
+ * at carry a build-generated hash and are not a stable API; these are.
6
+ *
7
+ * .thing { background: var(--duro-color-bg-card); }
8
+ *
9
+ * Declared on :root AND on every themed element, deliberately: a custom
10
+ * property resolves its var() where it is declared, so a :root-only alias
11
+ * would freeze the base palette and ignore the theme applied further down.
12
+ */
13
+ :root,
14
+ [data-theme] {
15
+ /* colors */
16
+ --duro-color-accent: var(--accent-xw7wp3v);
17
+ --duro-color-accent-contrast: var(--accentContrast-x3gzxyp);
18
+ --duro-color-accent-hover: var(--accentHover-x18fqoz);
19
+ --duro-color-bg: var(--bg-xqkwqtp);
20
+ --duro-color-bg-card: var(--bgCard-xj2l5r);
21
+ --duro-color-bg-card-hover: var(--bgCardHover-xlxk7vw);
22
+ --duro-color-border: var(--border-x1drj1pb);
23
+ --duro-color-error: var(--error-x13gdhh0);
24
+ --duro-color-error-bg: var(--errorBg-xrl8836);
25
+ --duro-color-error-border: var(--errorBorder-x1a6pjl);
26
+ --duro-color-error-contrast: var(--errorContrast-x1lvjkah);
27
+ --duro-color-error-hover: var(--errorHover-x7eyu03);
28
+ --duro-color-error-text: var(--errorText-xf51nwe);
29
+ --duro-color-info: var(--info-x97ho0r);
30
+ --duro-color-info-bg: var(--infoBg-xho8jir);
31
+ --duro-color-info-border: var(--infoBorder-xnevk3x);
32
+ --duro-color-info-text: var(--infoText-x19pseus);
33
+ --duro-color-success: var(--success-x197pe5n);
34
+ --duro-color-success-bg: var(--successBg-xzjukav);
35
+ --duro-color-success-border: var(--successBorder-x1my3ygc);
36
+ --duro-color-success-text: var(--successText-x46dg9e);
37
+ --duro-color-text: var(--text-xlpbogt);
38
+ --duro-color-text-muted: var(--textMuted-x651nu9);
39
+ --duro-color-warning: var(--warning-x1gq0pyw);
40
+ --duro-color-warning-bg: var(--warningBg-xtnxqss);
41
+ --duro-color-warning-border: var(--warningBorder-x1ev2mr5);
42
+ --duro-color-warning-text: var(--warningText-x1lgjghx);
43
+ /* radii */
44
+ --duro-radius-full: var(--full-x9vxdtd);
45
+ --duro-radius-lg: var(--lg-xwd56yl);
46
+ --duro-radius-md: var(--md-xx2g89g);
47
+ --duro-radius-sm: var(--sm-x1bhtfs5);
48
+ --duro-radius-xs: var(--xs-x1gb5bcy);
49
+ /* shadows */
50
+ --duro-shadow-lg: var(--lg-x1mxd62i);
51
+ --duro-shadow-md: var(--md-x1oyt0aw);
52
+ --duro-shadow-sm: var(--sm-x17hhtln);
53
+ /* spacing */
54
+ --duro-spacing-lg: var(--lg-x34mutn);
55
+ --duro-spacing-md: var(--md-x3pkb85);
56
+ --duro-spacing-ms: var(--ms-x13y09zs);
57
+ --duro-spacing-sm: var(--sm-xbh8y7f);
58
+ --duro-spacing-xl: var(--xl-xttpygj);
59
+ --duro-spacing-xs: var(--xs-xxfyjsd);
60
+ --duro-spacing-xxl: var(--xxl-xbe9eha);
61
+ --duro-spacing-xxxl: var(--xxxl-xroalp5);
62
+ /* layoutSpacing */
63
+ --duro-layout-spacing-container-lg: var(--containerLg-x1n6aasq);
64
+ --duro-layout-spacing-container-md: var(--containerMd-x170dvin);
65
+ --duro-layout-spacing-container-sm: var(--containerSm-x3nosus);
66
+ --duro-layout-spacing-inline-lg: var(--inlineLg-xz69o43);
67
+ --duro-layout-spacing-inline-md: var(--inlineMd-x1oalkxi);
68
+ --duro-layout-spacing-inline-sm: var(--inlineSm-x2o8bbf);
69
+ --duro-layout-spacing-inline-xs: var(--inlineXs-xq4tp4f);
70
+ --duro-layout-spacing-stack-lg: var(--stackLg-xeue779);
71
+ --duro-layout-spacing-stack-md: var(--stackMd-xhblkt4);
72
+ --duro-layout-spacing-stack-sm: var(--stackSm-x2rk1ut);
73
+ --duro-layout-spacing-stack-xl: var(--stackXl-x7sbbgu);
74
+ --duro-layout-spacing-stack-xs: var(--stackXs-x1qfrfo2);
75
+ /* typography */
76
+ --duro-typography-font-family: var(--fontFamily-xvrmnat);
77
+ --duro-typography-font-family-mono: var(--fontFamilyMono-x1bzqfky);
78
+ --duro-typography-font-size-heading: var(--fontSizeHeading-x1stydh2);
79
+ --duro-typography-font-size-lg: var(--fontSizeLg-x18ngplw);
80
+ --duro-typography-font-size-md: var(--fontSizeMd-xq8d99q);
81
+ --duro-typography-font-size-sm: var(--fontSizeSm-x1bjjs4u);
82
+ --duro-typography-font-size-xl: var(--fontSizeXl-x1b1mqsu);
83
+ --duro-typography-font-size-xs: var(--fontSizeXs-x1w5m325);
84
+ --duro-typography-font-weight-bold: var(--fontWeightBold-x1pjkvwg);
85
+ --duro-typography-font-weight-medium: var(--fontWeightMedium-xaw13ft);
86
+ --duro-typography-font-weight-normal: var(--fontWeightNormal-x1y1cayu);
87
+ --duro-typography-font-weight-semibold: var(--fontWeightSemibold-xg6c7xe);
88
+ --duro-typography-line-height: var(--lineHeight-x1gubzd5);
89
+ /* typeScale */
90
+ --duro-type-scale-display-lg: var(--displayLg-x6qsr1u);
91
+ --duro-type-scale-display-md: var(--displayMd-x1oektom);
92
+ --duro-type-scale-display-sm: var(--displaySm-x5inqzv);
93
+ --duro-type-scale-font-size1: var(--fontSize1-xx27tux);
94
+ --duro-type-scale-font-size2: var(--fontSize2-x5hag8h);
95
+ --duro-type-scale-font-size3: var(--fontSize3-x1mf6j39);
96
+ --duro-type-scale-font-size4: var(--fontSize4-xh0hch2);
97
+ --duro-type-scale-font-size5: var(--fontSize5-xcllv62);
98
+ --duro-type-scale-font-size6: var(--fontSize6-xo5veds);
99
+ --duro-type-scale-font-size7: var(--fontSize7-x1j85tz8);
100
+ --duro-type-scale-font-size8: var(--fontSize8-x17zhits);
101
+ --duro-type-scale-font-size9: var(--fontSize9-xveysf7);
102
+ --duro-type-scale-letter-spacing-normal: var(--letterSpacingNormal-x1ih41v1);
103
+ --duro-type-scale-letter-spacing-tight: var(--letterSpacingTight-xmavxfk);
104
+ --duro-type-scale-letter-spacing-wide: var(--letterSpacingWide-xt8z9rj);
105
+ --duro-type-scale-line-height1: var(--lineHeight1-x17o1wol);
106
+ --duro-type-scale-line-height2: var(--lineHeight2-xinpx5n);
107
+ --duro-type-scale-line-height3: var(--lineHeight3-x1163vpm);
108
+ --duro-type-scale-line-height4: var(--lineHeight4-x1y0jdbp);
109
+ --duro-type-scale-line-height5: var(--lineHeight5-xjln4cz);
110
+ --duro-type-scale-line-height6: var(--lineHeight6-x1h1b5wo);
111
+ --duro-type-scale-line-height7: var(--lineHeight7-xx3gx0p);
112
+ --duro-type-scale-line-height8: var(--lineHeight8-xk1f09j);
113
+ --duro-type-scale-line-height9: var(--lineHeight9-xshcxhh);
114
+ /* duration */
115
+ --duro-duration-base: var(--base-x13vs74m);
116
+ --duro-duration-fast: var(--fast-x8gs7zb);
117
+ --duro-duration-instant: var(--instant-x3tclo2);
118
+ --duro-duration-slow: var(--slow-xtti36c);
119
+ /* easing */
120
+ --duro-easing-ease-in: var(--easeIn-xxaysck);
121
+ --duro-easing-ease-out: var(--easeOut-x1dtgzac);
122
+ --duro-easing-standard: var(--standard-xg4ngex);
123
+ }
124
+
125
+ /*
126
+ * The page canvas, per theme.
127
+ *
128
+ * In @layer reset so an app that paints its own body wins without needing
129
+ * !important — unlayered author CSS beats layered CSS regardless of order.
130
+ */
131
+ @layer reset {
132
+ body {
133
+ background-color: #0f0f0f;
134
+ color: #e5e5e5;
135
+ color-scheme: dark;
136
+ }
137
+
138
+ body:has([data-theme='light']) {
139
+ background-color: #ffffff;
140
+ color: #1a1a1a;
141
+ color-scheme: light;
142
+ }
143
+
144
+ body:has([data-theme='high-contrast']) {
145
+ background-color: #000000;
146
+ color: #ffffff;
147
+ color-scheme: dark;
148
+ }
149
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duro-app/tokens",
3
- "version": "0.48.0",
3
+ "version": "0.50.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -44,7 +44,8 @@
44
44
  "./tokens/motion.css": "./src/tokens/motion.css.ts",
45
45
  "./tokens/type-presets.css": "./src/tokens/type-presets.css.ts",
46
46
  "./themes/light.css": "./src/themes/light.css.ts",
47
- "./themes/high-contrast.css": "./src/themes/high-contrast.css.ts"
47
+ "./themes/high-contrast.css": "./src/themes/high-contrast.css.ts",
48
+ "./vars.css": "./dist/vars.css"
48
49
  },
49
50
  "peerDependencies": {
50
51
  "react-strict-dom": "^0.0.55"
@@ -61,6 +62,7 @@
61
62
  "dev": "vite build --watch",
62
63
  "prebuild": "node scripts/check-token-drift.mjs",
63
64
  "build": "vite build",
64
- "typecheck": "tsc --noEmit"
65
+ "typecheck": "tsc --noEmit",
66
+ "postbuild": "node scripts/generate-vars-css.mjs"
65
67
  }
66
68
  }