API / base/colors
base/colors
색상 값.
Color value.
예제Example바닐라색 문자열로 색 만들기Create a color from the vanilla color string
import { Colors, Color } from "./build/vanilla.js";
const colorString = Colors.vanilla;
const background = Color.createFromHEX(colorString);
console.log(Colors.darkVanilla, background.toRGBAString());Colorsenum
색상 값.
Color value.
| 이름Name | 값Value | 설명Description |
|---|---|---|
black | #000000 | 검은색. (#000000)Black. (#000000) |
white | #ffffff | 흰색. (#ffffff)White. (#ffffff) |
vanilla | #f3e5ab | 바닐라색. (#f3e5ab)Vanilla. (#f3e5ab) |
darkVanilla | #d1c1b2 | 어두운 바닐라색. (#d1c1b2)Dark vanilla. (#d1c1b2) |
lightVanilla | #f1e9d8 | 밝은 바닐라색. (#f1e9d8)Light vanilla. (#f1e9d8) |