Skip to the content

Taisen Brackets対戦

Knockout brackets as SVG, from a list of ties.

Taisen (対戦, たいせん) is Japanese for a matchup: two sides facing each other. About the name

Contents

Reference · Draw a bracket, a table or a road to the final

THEMESconstant

The looks. Every colour is the fallback for a custom property, so a page can restyle a drawing with --tb-ink: … and nothing else.

Import it

import { THEMES } from "@johnmorrisdotca/taisen-brackets";

Definition

const THEMES: Readonly<Record<"light" | "dark" | "poster", Palette>> = Object.freeze({
    light: { bg: "#f4efe4", ink: "#1f2320", muted: "#62665f", line: "#8d9087", box: "#fbf8f1", edge: "#cfc7b3", win: "#b5452c", gold: "#845f06", plain: "#d9d3c2" },
    dark: { bg: "#141614", ink: "#ece8dc", muted: "#9aa095", line: "#6c7168", box: "#1e211d", edge: "#3b403a", win: "#e0705a", gold: "#e0b43b", plain: "#3b403a" },
    poster: { bg: "#0a1130", ink: "#f6f1e3", muted: "#a9b2d3", line: "#d9b24c", box: "#111b47", edge: "#8e7632", win: "#f0c64a", gold: "#f0c64a", plain: "#26336b" },
})

Examples

import { THEMES } from "@johnmorrisdotca/taisen-brackets";

console.log(Object.keys(THEMES), THEMES.poster.gold);
[ 'light', 'dark', 'poster' ] #f0c64a

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/taisen-brackets 0.20.0.