emily-css 1.0.6 → 1.0.7
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 +14 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -175,7 +175,6 @@ Edit `emily.config.json` to customise:
|
|
|
175
175
|
},
|
|
176
176
|
|
|
177
177
|
"purge": {
|
|
178
|
-
"sourceDir": "./src",
|
|
179
178
|
"extensions": [".html", ".jsx", ".tsx", ".vue"]
|
|
180
179
|
}
|
|
181
180
|
}
|
|
@@ -254,7 +253,7 @@ All utilities are built with WCAG 2.2 AA in mind:
|
|
|
254
253
|
npm test
|
|
255
254
|
```
|
|
256
255
|
|
|
257
|
-
|
|
256
|
+
72 automated tests covering colour generation, utilities, variants, config integrity, and build output. All passing.
|
|
258
257
|
|
|
259
258
|
## Troubleshooting
|
|
260
259
|
|
|
@@ -278,17 +277,26 @@ npx emily-css purge
|
|
|
278
277
|
|
|
279
278
|
## Fonts
|
|
280
279
|
|
|
281
|
-
|
|
280
|
+
EmilyUI includes built-in support for **Inter** and **Lexend** via Google Fonts CDN. No font files to download or host — the generated CSS handles the import automatically.
|
|
281
|
+
|
|
282
|
+
Set `fontFamily` as an object to use different fonts for headings and body:
|
|
282
283
|
|
|
283
284
|
```json
|
|
284
|
-
"fontFamily":
|
|
285
|
+
"fontFamily": {
|
|
286
|
+
"heading": "lexend",
|
|
287
|
+
"body": "inter"
|
|
288
|
+
}
|
|
285
289
|
```
|
|
286
290
|
|
|
291
|
+
Or as a string if you want one font throughout:
|
|
292
|
+
|
|
287
293
|
```json
|
|
288
|
-
"fontFamily": "
|
|
294
|
+
"fontFamily": "inter"
|
|
289
295
|
```
|
|
290
296
|
|
|
291
|
-
|
|
297
|
+
Supported values: `inter`, `lexend`, `system` (system-ui stack), `georgia`, `mono`.
|
|
298
|
+
|
|
299
|
+
To use a custom font, set `fontFamily` to any other value and add your own `@import` or `<link>` to your HTML before loading `emily.css`.
|
|
292
300
|
|
|
293
301
|
## Support
|
|
294
302
|
|