@cdx-ui/styles 0.0.1-beta.42 → 0.0.1-beta.44
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 +7 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ Import `theme.css` and `utilities.css` in your global stylesheet, after Tailwind
|
|
|
22
22
|
@import '@cdx-ui/styles/utilities.css';
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
`theme.css` declares all token variables — primitives in `@theme static`, mode-dependent semantics in `@variant light/dark`, and platform fonts in `@variant ios/android/web`. `utilities.css` provides composite typography utilities (`heading-xl` through `body-xs`).
|
|
25
|
+
`theme.css` declares all token variables — primitives in `@theme static`, mode-dependent semantics in `@variant light/dark`, and platform fonts in `@variant ios/android/web`. `utilities.css` provides composite typography utilities (`heading-xl` through `body-xs`, plus `label-sm` and `label-xs`).
|
|
26
26
|
|
|
27
27
|
Components then use standard Tailwind utilities backed by theme variables:
|
|
28
28
|
|
|
@@ -117,15 +117,15 @@ pnpm tokens:build
|
|
|
117
117
|
| File | Contents |
|
|
118
118
|
| --------------- | --------------------------------------------------------------------------------------------------- |
|
|
119
119
|
| `theme.css` | `@theme static` (primitives + semantic defaults), `@variant light/dark`, `@variant ios/android/web` |
|
|
120
|
-
| `utilities.css` | `@utility` blocks for composite typography (headings, body,
|
|
120
|
+
| `utilities.css` | `@utility` blocks for composite typography (headings, body-xl through body-xs, label-sm, label-xs) |
|
|
121
121
|
| `vanilla.css` | Non-Tailwind fallback — `:root` variables + `@media (prefers-color-scheme: dark)` + classes |
|
|
122
122
|
|
|
123
|
-
**
|
|
123
|
+
**Planned artifacts** (not yet implemented — tracked for future runtime theming):
|
|
124
124
|
|
|
125
|
-
| Artifact |
|
|
126
|
-
| -------------- |
|
|
127
|
-
| Runtime map |
|
|
128
|
-
| Preset patches |
|
|
125
|
+
| Artifact | Purpose | Status |
|
|
126
|
+
| -------------- | ------------------------------------------------------------------ | ------- |
|
|
127
|
+
| Runtime map | Theme object path → CSS custom property name for sparse flattening | Planned |
|
|
128
|
+
| Preset patches | Sparse diff from build default → each non-default preset | Planned |
|
|
129
129
|
|
|
130
130
|
### Validating font tokens
|
|
131
131
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdx-ui/styles",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.44",
|
|
4
4
|
"main": "lib/commonjs/index.js",
|
|
5
5
|
"module": "lib/module/index.js",
|
|
6
6
|
"react-native": "src/index.ts",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@expo-google-fonts/manrope": "0.4.2",
|
|
54
54
|
"@expo-google-fonts/outfit": "0.4.3",
|
|
55
55
|
"@expo-google-fonts/public-sans": "0.4.2",
|
|
56
|
-
"@cdx-ui/utils": "0.0.1-beta.
|
|
56
|
+
"@cdx-ui/utils": "0.0.1-beta.44"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"react": "^18.2.0 || ^19.0.0",
|