Variable tokensConst

    tokens: {
        charWidth: 0.6;
        corner: 2;
        decoration: { braceGap: 3; braceHeight: 5; crossGap: 1; gap: 2 };
        font: "'New CM', monospace";
        fontSize: 14;
        mathFont: "'New CM Math', 'Cambria Math', 'STIXTwoMath-Regular', 'NotoSansMath-Regular', 'New CM', math, serif";
        mutedOpacity: 0.5;
        stroke: "var(--text-color)";
        subFontSize: "0.75em";
        tex: {
            highlightColor: "rgba(255, 220, 80, 0.45)";
            highlightCorner: 2;
            highlightDurationMs: 120;
            size: 26;
        };
        thinWeight: 1.5;
        weight: 2;
    } = ...

    Type Declaration

    • ReadonlycharWidth: 0.6

      Approximate glyph aspect (SVG can't measure).

    • Readonlycorner: 2
    • Readonlydecoration: { braceGap: 3; braceHeight: 5; crossGap: 1; gap: 2 }
    • Readonlyfont: "'New CM', monospace"
    • ReadonlyfontSize: 14
    • ReadonlymathFont: "'New CM Math', 'Cambria Math', 'STIXTwoMath-Regular', 'NotoSansMath-Regular', 'New CM', math, serif"

      Stack of fonts with OpenType MATH tables.

    • ReadonlymutedOpacity: 0.5
    • Readonlystroke: "var(--text-color)"

      CSS var so dark mode flips automatically.

    • ReadonlysubFontSize: "0.75em"
    • Readonlytex: {
          highlightColor: "rgba(255, 220, 80, 0.45)";
          highlightCorner: 2;
          highlightDurationMs: 120;
          size: 26;
      }
    • ReadonlythinWeight: 1.5
    • Readonlyweight: 2