@motion-script/code / CodeStyleRule
Interface: CodeStyleRule
Defined in: components/code/src/style.ts:9
A single style rule: map one or more Lezer highlight Tags to a color.
This mirrors a @codemirror/language HighlightStyle entry, but instead of
emitting CSS class names it carries the color directly — we render to a canvas,
not the DOM, so there is no stylesheet to resolve against.
Properties
color
color:
string
Defined in: components/code/src/style.ts:11
tag
tag:
Tag| readonlyTag[]
Defined in: components/code/src/style.ts:10