defaultTheme関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The theme without a page: the light one, for a drawing made where there is no style to read (a test, a server).
インポート
import { defaultTheme } from "@johnmorrisdotca/karakuri/play";
定義
function defaultTheme(dark?: boolean): Theme
引数
| 名前 | 型 | 説明 |
|---|---|---|
dark (省略可) | boolean | Whether the native dark theme is selected. |
戻り値
Theme
The theme without a page: the light one, for a drawing made where there is no style to read (a test, a server).
例
import { defaultTheme } from "@johnmorrisdotca/karakuri/play";
console.log(defaultTheme(true).dark);true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。