@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 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
- Every category publishes a Tailwind `@theme` file. Colour files map onto `--color-*` and
164
- reference the CSS variables file (import both); non-colour categories carry direct values
165
- (one import each):
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
  | -------------------------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------- |