Skip to content

pantoken-root / formats/tokens/src / byTheme

関数: byTheme() ​

byTheme(theme): Token[]

ベータ

テーマのIRを名前で検索します。

パラメーター ​

theme ​

Theme

戻り値 ​

Token[]

例 ​

ts
import { byTheme } from "@pantoken/tokens";
import { toScss } from "@pantoken/scss";

toScss(byTheme("canvas"), { mode: "dark" });