WebKit Colors System
WebKit Colors System is a color library based on the Humans Color Apple documentation to provide generic color palettes in your JS projects.
Table of Contents
Installation
yarn add @minedelve/webkit-colors-system -D
npm install @minedelve/webkit-colors-system --save-dev
Use
import { getSystemColor } from "@minedelve/webkit-colors-system";
[...]
const color = getSystemColor('Red');
// return color red in Light Theme.
const color = getSystemColor('Red', true);
// return color red to Dark Theme.
const color = getSystemColor('Red', true, true);
// return color red to Dark Theme on Variant Color.
const color = getSystemColor('Red', undefined, undefined, true);
// return color red to Light Theme on Accesibility Mode.
import {systemColor} from "@minedelve/webkit-colors-system";
[...]
console.log(systemColor)
// return All Key for display Color
Colors
Default
Gray
Variant
Core Team
License
Licensed under the MIT license.
Copyright © 2021-2023 Minedelve
We support these projects
Human.txt |