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 · Backgrounds for a bracket

BackgroundInktype

The colours that read well over a background: text, lines, boxes, edges and its dominant colours.

Import it

import type { BackgroundInk } from "@johnmorrisdotca/taisen-brackets/backgrounds";

Also exported from: @johnmorrisdotca/taisen-brackets

Definition

type BackgroundInk = shared.BackgroundInk;

Members

NameTypeDescription
basestring

The plain colour to fill the picture with before body: the ground's first colour.

darkboolean

Whether the ground is dark (so the text is light).

textstring
mutedstring
linestring

The connecting lines.

boxstring

The fill and edge of a box laid on the picture; both are rgba().

edgestring
panelstring

The pill behind a round's name, a team's plain disc, the ring round a mark, the dotted road and the accent for a winner, a champion and a highlight.

plainstring
ringstring
spinestring
accentstring
dominantstring[]

The colours the picture is mostly, worst cases included: the ground's two colours and each blended with the glow at its strongest.

Examples

import { backgroundSvg, type BackgroundInk } from "@johnmorrisdotca/taisen-brackets/backgrounds";

const ink: BackgroundInk = backgroundSvg("ice", { width: 400, height: 300, theme: "light" }).ink;
console.log(ink.dark, ink.text);
false #16181a

What it prints (run when this page was built)

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