- Font service (src/engine/fonts.ts) loads system fonts on demand - Same font bytes registered in both CanvasKit and browser (FontFace API) - Eliminates rendering mismatch between canvas and text editing overlay - queryLocalFonts() for enumeration and blob() for font data - Bundled Inter-Regular.ttf as fallback when API unavailable - Renderer uses font service instead of hardcoded fetch
31 lines
527 B
CSS
31 lines
527 B
CSS
@import "tailwindcss";
|
|
|
|
|
|
@theme {
|
|
--color-panel: #2a2a2a;
|
|
--color-canvas: #1e1e1e;
|
|
--color-border: #3a3a3a;
|
|
--color-hover: #353535;
|
|
--color-accent: #3b82f6;
|
|
--color-surface: #e0e0e0;
|
|
--color-muted: #888888;
|
|
--color-input: #1e1e1e;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#app {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body {
|
|
font-family: Inter, system-ui, -apple-system, sans-serif;
|
|
font-size: 13px;
|
|
color: var(--color-surface);
|
|
background: var(--color-canvas);
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|