Reference · Where every tie sits
ThemeNametype
The colours of a drawing: auto follows the page's light or dark, light, dark, poster is dark with gold lines, and none writes no style, for your own CSS.
Import it
import type { ThemeName } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
type ThemeName = "auto" | "light" | "dark" | "poster" | "none";
Examples
import { drawBracket, type ThemeName } from "@johnmorrisdotca/taisen-brackets";
const theme: ThemeName = "poster";
console.log(drawBracket([{ sides: ["Aurora", "Harbour"], score: [2, 1] }, { sides: ["Cascade", "Delta"], score: [0, 1] }, { sides: ["Aurora", "Delta"], score: [3, 1] }], { theme }).startsWith("<svg"));trueWhat it prints (run when this page was built)