ํ๋ก์ ํธ
GitHub์์ ๋ณด๊ธฐ
unjs/theme-colors
์๊ฐ
๐จ ํ ๋ง ์์์ ์ฌ๋ฌ ๋ช ๋๋ฅผ ๊ฐํธํ๊ฒ ์์ฑ
์น ๋ฐ ์ฑ ๊ฐ๋ฐ์ธก์ ๋ ์คํ ์ฆ๊ฐ
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- ๊ธฐ๋ก ์์ง ์ค
์๋ก ๊ฒน์น๋ ๊ธฐ๊ฐ์ ์์ฆ๊ฐ๋์ด๋ฉฐ ์ผ๋ณ ํฉ๊ณ๊ฐ ์๋๋๋ค. ์ธก์ ๊ฐ์ด ์์ผ๋ฉด ๋น์ ๋ก๋๋ค. ์คํ๋ ๊ด์ฌ๋๋ฅผ ๋ํ๋ด๋ฉฐ ํ์ง์ ๋ณด์ฅํ์ง ์์ต๋๋ค.
README.md
Originaltheme-colors
Easily generate color shades for themes
Usage
Install package:
# npm
npm install theme-colors
# yarn
yarn add theme-colors
# pnpm
pnpm install theme-colors
# bun
bun install theme-colors
Import:
// ESM
import { getColors } from "theme-colors";
// CommonJS
const { getColors } = require("theme-colors");
const theme = getColors("#ABABAB");
// Or using RGB
const theme = getColors("172,172,172");
This will generate the following shades:
{
50: '#FBFBFB',
100: '#F7F7F7',
200: '#EAEAEA',
300: '#DDDDDD',
400: '#C4C4C4',
500: '#ABABAB',
600: '#9A9A9A',
700: '#676767',
800: '#4D4D4D',
900: '#333333',
950: '#222222',
}
Development
- Clone this repository
- Install latest LTS version of Node.js
- Enable Corepack using
corepack enable - Install dependencies using
pnpm install - Run interactive tests using
pnpm dev
License
Inspired by javisperez/tailwindcolorshades
Made with ๐
Published under MIT License.
๊ด๋ จ ํ๋ก์ ํธ ์ดํด๋ณด๊ธฐ
๋ถ๋ฌ์ค๋ ์คโฆ