@zuilib/text-editor 0.8.0 → 0.9.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/CHANGELOG.md +8 -0
- package/dist/index.d.ts +148 -98
- package/dist/index.js +575 -180
- package/dist/styles.css +17 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -884,3 +884,20 @@
|
|
|
884
884
|
.zui-token-meta { color: var(--zui-code-meta); }
|
|
885
885
|
.zui-token-inserted { color: var(--zui-code-inserted); background: var(--zui-code-inserted-background); }
|
|
886
886
|
.zui-token-deleted { color: var(--zui-code-deleted); background: var(--zui-code-deleted-background); }
|
|
887
|
+
|
|
888
|
+
/*
|
|
889
|
+
* Ink drawing style (`drawingStyle="ink"`). Geometry is handled by the
|
|
890
|
+
* renderer (drawing/ink.ts); the stylesheet only switches the face: Recursive
|
|
891
|
+
* on its casual/cursive axes when the host loads it, the regular font
|
|
892
|
+
* otherwise. Load it with e.g.
|
|
893
|
+
* https://fonts.googleapis.com/css2?family=Recursive:slnt,wght,CASL,CRSV,MONO@-15..0,300..1000,0..1,0..1,0..1
|
|
894
|
+
*/
|
|
895
|
+
.zui-drawing-canvas.is-ink {
|
|
896
|
+
--zui-drawing-font: 'Recursive', ui-sans-serif, system-ui, sans-serif;
|
|
897
|
+
--zui-drawing-grid: rgba(0, 0, 0, 0.06);
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
.zui-drawing-canvas.is-ink :is(.zui-drawing-surface text, .zui-drawing-text-input) {
|
|
901
|
+
font-variation-settings: 'CASL' 1, 'CRSV' 1, 'MONO' 0, 'wght' 440, 'slnt' -3;
|
|
902
|
+
letter-spacing: 0.01em;
|
|
903
|
+
}
|