Skip to the content

Jarajaraジャラジャラ

Draw mahjong tiles, arrange racks and stacked boards, and play seeded Awase alone or at a shared table.

Jarajara is the Japanese sound of mahjong tiles rattling together. About the name

Contents

Reference · SVG faces and looks

clothVarsfunction

A cloth as CSS custom properties (--jarajara-felt, --jarajara-felt-deep, --jarajara-felt-ink); nothing for a name that is not a cloth.

Import it

import { clothVars } from "@johnmorrisdotca/jarajara/faces";

Definition

function clothVars(cloth: string | undefined | null): Record<`--jarajara-${string}`, string>

Parameters

NameTypeDescription
clothstring | null | undefined

The named native cloth theme.

Returns

Record<`--jarajara-${string}`, string>

A cloth as CSS custom properties (--jarajara-felt, --jarajara-felt-deep, --jarajara-felt-ink); nothing for a name that is not a cloth.

Examples

import { clothVars } from "@johnmorrisdotca/jarajara/faces";

console.log(clothVars("green"));
{
  '--jarajara-felt': '#2f5d4a',
  '--jarajara-felt-deep': '#1f4135',
  '--jarajara-felt-ink': '#f3efe4'
}

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/jarajara 1.7.0.