Reference · Options, materials, stacks and wear
CardMaterialtype
A card material: a stock or a metal with a thickness read from a maker or a standard, and the colour its edge is drawn in.
Import it
import type { CardMaterial } from "@johnmorrisdotca/fuda-cards";
Definition
interface CardMaterial {
id: string;
name: string;
group: CardMaterialGroup;
thicknessMm: number;
edge: string;
source: CardMaterialSource;
}
Members
| Name | Type | Description |
|---|---|---|
id | string | |
name | string | |
group | CardMaterialGroup | |
thicknessMm | number | Thickness of one card in millimetres. |
edge | string | The colour of the card's edge (a look, not a measurement). |
source | CardMaterialSource |
Examples
import { cardMaterial, type CardMaterial } from "@johnmorrisdotca/fuda-cards";
const steel: CardMaterial | undefined = cardMaterial("steel-0.5");
console.log(steel?.name, steel?.thicknessMm); // Stainless steel card, 0.5 mm 0.5Stainless steel card, 0.5 mm 0.5What it prints (run when this page was built)