pleco-default-tone-colors
v0.0.0
Published
Pleco default pinyin tone colors for light and dark themes.
Maintainers
Readme
pleco-default-tone-colors
Pleco default pinyin tone colors for light and dark themes.
Usage
import { plecoDefaultToneColorsDark, plecoDefaultToneColorsLight } from "pleco-default-tone-colors";
import {
plecoDefaultToneColorsListDark,
plecoDefaultToneColorsListLight,
} from "pleco-default-tone-colors/array";
import lightArrayJson from "pleco-default-tone-colors/light-array.json" with { type: "json" };Arrays are indexed by pinyin tone number: 0 and 5 are both the neutral tone.
plecoDefaultToneColorsListLight;
// ["#9e9e9e", "#e53935", "#43a047", "#1e88e5", "#8e24aa", "#9e9e9e"]
plecoDefaultToneColorsLight;
// {
// tone0: "#9e9e9e",
// tone1: "#e53935",
// tone2: "#43a047",
// tone3: "#1e88e5",
// tone4: "#8e24aa",
// tone5: "#9e9e9e",
// }Package Files
light-array.jsonlight-object.jsondark-array.jsondark-object.jsonarray.jsindex.js- TypeScript declarations for every export
Development
- Install dependencies:
vp install- Run the unit tests:
vp test- Check formatting, linting, and types:
vp check