CARD_BACK_LOOKconstant
Each back's own colours: its field, the lines and dots drawn on the field, and the paper round it.
Import it
import { CARD_BACK_LOOK } from "@johnmorrisdotca/toranpu/card-backs";
Definition
const CARD_BACK_LOOK: Readonly<Record<"classic-red" | "classic-blue" | "ink-dots", { field: string; ink: string; paper: string; }>> = {
"classic-red": { field: "#b3262d", ink: "#fffaf0", paper: "#fffdf8" },
"classic-blue": { field: "#1f4e8c", ink: "#fffaf0", paper: "#fffdf8" },
"ink-dots": { field: "#24231f", ink: "#fffaf0", paper: "#fffdf8" },
}
Members
| Name | Type | Description |
|---|---|---|
classic-red | { field: string; ink: string; paper: string; } | |
classic-blue | { field: string; ink: string; paper: string; } | |
ink-dots | { field: string; ink: string; paper: string; } |
Examples
import { CARD_BACK_LOOK } from "@johnmorrisdotca/toranpu/card-backs";
console.log(CARD_BACK_LOOK);{
'classic-red': { field: '#b3262d', ink: '#fffaf0', paper: '#fffdf8' },
'classic-blue': { field: '#1f4e8c', ink: '#fffaf0', paper: '#fffdf8' },
'ink-dots': { field: '#24231f', ink: '#fffaf0', paper: '#fffdf8' }
}What it prints (run when this page was built)