Reference · SVG boards and materials
THEMESconstant
Palette values used by the SVG renderer.
Import it
import { THEMES } from "@johnmorrisdotca/tobiishi/draw";
Definition
const THEMES: Record<Material, Theme> = {
stone: { board: "#f4efe4", hole: "#6b6f68", peg: "#1f2320", edge: "#141614", accent: "#b5452c" },
wood: { board: "#e2ba7a", hole: "#725640", peg: "#ab633a", edge: "#633b25", accent: "#b5452c" },
glass: { board: "#fbf8f1", hole: "#6b6f68", peg: "#579caa", edge: "#265865", accent: "#b5452c" },
}
Members
| Name | Type | Description |
|---|---|---|
stone | Theme | |
wood | Theme | |
glass | Theme |
Examples
import { THEMES } from "@johnmorrisdotca/tobiishi/draw";
console.log(THEMES.wood);{
board: '#e2ba7a',
hole: '#725640',
peg: '#ab633a',
edge: '#633b25',
accent: '#b5452c'
}What it prints (run when this page was built)