@nswds/tokens 3.5.1 → 3.7.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.
- package/README.md +12 -3
- package/dist/tailwind/preset.css +958 -0
- package/dist/tokens/border.base.json +12 -4
- package/dist/tokens/breakpoints.base.json +15 -5
- package/dist/tokens/primitives-global.light.json +1032 -344
- package/dist/tokens/primitives-semantic.light.json +228 -76
- package/dist/tokens/radius.base.json +15 -5
- package/dist/tokens/space.base.json +36 -12
- package/dist/tokens/themes-masterbrand.light.json +171 -57
- package/dist/tokens/typography.base.json +93 -31
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -160,9 +160,18 @@ are the source of truth; `hex/rgb/hsl/oklch.json` are derived colour views.
|
|
|
160
160
|
> **Requires Tailwind CSS v4.0 or later.** The Tailwind outputs use the CSS-first
|
|
161
161
|
> [`@theme`](https://tailwindcss.com/docs/theme) at-rule, which does not exist in v3.
|
|
162
162
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
**One-import preset** — covers global + semantic colours (hex) and every non-colour
|
|
164
|
+
category in a single file:
|
|
165
|
+
|
|
166
|
+
```css
|
|
167
|
+
@import '@nswds/tokens/tailwind/preset.css';
|
|
168
|
+
/* themes are opt-in (they define the same family names as one another): */
|
|
169
|
+
@import '@nswds/tokens/tailwind/colors/themes/masterbrand/hex.css';
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Or import per category. Every category publishes a Tailwind `@theme` file. Colour files
|
|
173
|
+
map onto `--color-*` and reference the CSS variables file (import both); non-colour
|
|
174
|
+
categories carry direct values (one import each):
|
|
166
175
|
|
|
167
176
|
| Import | Namespace | Utilities unlocked |
|
|
168
177
|
| -------------------------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------- |
|