Reference · SVG boards and materials
Themetype
SVG color properties that can be partially overridden by a caller.
Import it
import type { Theme } from "@johnmorrisdotca/tobiishi/draw";
Definition
type Theme = {
board: string;
hole: string;
peg: string;
edge: string;
accent: string;
};
Members
| Name | Type | Description |
|---|---|---|
board | string | |
hole | string | |
peg | string | |
edge | string | |
accent | string |
Examples
import type { Theme } from "@johnmorrisdotca/tobiishi/draw";
import { THEMES } from "@johnmorrisdotca/tobiishi/draw";
const value: Theme = THEMES.wood;
console.log(value);{
board: '#e2ba7a',
hole: '#725640',
peg: '#ab633a',
edge: '#633b25',
accent: '#b5452c'
}What it prints (run when this page was built)