@skirbi/pinta 0.0.27 → 0.0.29
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/Changes +8 -0
- package/README.md +28 -0
- package/lib/index.mjs +1 -1
- package/lib/themes/pinta.css +1143 -32
- package/package.json +5 -1
package/Changes
CHANGED
package/README.md
CHANGED
|
@@ -391,6 +391,34 @@ This is the preferred extension model. Whether you pick class based vs
|
|
|
391
391
|
attribute based is up to you as the author.
|
|
392
392
|
|
|
393
393
|
|
|
394
|
+
|
|
395
|
+
# Documentation source
|
|
396
|
+
|
|
397
|
+
`pinta.css` is the source of truth for the detailed style documentation.
|
|
398
|
+
|
|
399
|
+
The stylesheet uses DocumentCSS-style comment blocks for the public theme
|
|
400
|
+
contract:
|
|
401
|
+
|
|
402
|
+
* `@stylesheet` for the Pinta overview
|
|
403
|
+
* `@styles` for token groups, cascade layers, transforms, and Semtic recipes
|
|
404
|
+
* Markdown tables and examples inside the comment body
|
|
405
|
+
|
|
406
|
+
The README stays the human-facing overview. The generated style guide can use
|
|
407
|
+
`pinta.css` directly.
|
|
408
|
+
|
|
409
|
+
Example `documentjs.json` shape:
|
|
410
|
+
|
|
411
|
+
```json
|
|
412
|
+
{
|
|
413
|
+
"sites": {
|
|
414
|
+
"styles": {
|
|
415
|
+
"glob": "lib/**/*.{css,md}",
|
|
416
|
+
"dest": "styleguide"
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
```
|
|
421
|
+
|
|
394
422
|
# Optional utilities
|
|
395
423
|
|
|
396
424
|
Pinta v0.0.12 removed built-in utility attributes from the core package.
|
package/lib/index.mjs
CHANGED