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 backs

CARD_BACK_PROPERTIESconstant

The CSS custom properties a back drawn into a page takes its colours from, when no colour is given.

Import it

import { CARD_BACK_PROPERTIES } from "@johnmorrisdotca/toranpu/card-backs";

Definition

const CARD_BACK_PROPERTIES: { readonly field: "--toranpu-back"; readonly ink: "--toranpu-back-ink"; readonly paper: "--toranpu-back-paper"; } = { field: "--toranpu-back", ink: "--toranpu-back-ink", paper: "--toranpu-back-paper" } as const

Members

NameTypeDescription
field"--toranpu-back"
ink"--toranpu-back-ink"
paper"--toranpu-back-paper"

Examples

import { CARD_BACK_PROPERTIES } from "@johnmorrisdotca/toranpu/card-backs";
console.log(CARD_BACK_PROPERTIES);
{
  field: '--toranpu-back',
  ink: '--toranpu-back-ink',
  paper: '--toranpu-back-paper'
}

What it prints (run when this page was built)

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