Skip to the content

Toranpuトランプ

Use a deck, play eleven games with computers, solve a solitaire, or display cards in your own design.

Toranpu is Japanese for playing cards. About the name

Contents

Reference · Card designs

CARD_FACE_PROPERTIESconstant

The CSS custom properties a plain or four-colour face drawn into a page takes its colours from.

Import it

import { CARD_FACE_PROPERTIES } from "@johnmorrisdotca/toranpu/card-faces";

Definition

const CARD_FACE_PROPERTIES: { readonly paper: "--toranpu-card"; readonly black: "--toranpu-card-ink"; readonly red: "--toranpu-card-red"; readonly blue: "--toranpu-card-blue"; readonly green: "--toranpu-card-green"; } = { paper: "--toranpu-card", black: "--toranpu-card-ink", red: "--toranpu-card-red", blue: "--toranpu-card-blue", green: "--toranpu-card-green" } as const

Members

NameTypeDescription
paper"--toranpu-card"
black"--toranpu-card-ink"
red"--toranpu-card-red"
blue"--toranpu-card-blue"
green"--toranpu-card-green"

Examples

import { CARD_FACE_PROPERTIES } from "@johnmorrisdotca/toranpu/card-faces";
console.log(CARD_FACE_PROPERTIES);
{
  paper: '--toranpu-card',
  black: '--toranpu-card-ink',
  red: '--toranpu-card-red',
  blue: '--toranpu-card-blue',
  green: '--toranpu-card-green'
}

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/toranpu 2.15.0.