nipponcolorsjs

nipponcolors js library

Usage no npm install needed!

<script type="module">
  import nipponcolorsjs from 'https://cdn.skypack.dev/nipponcolorsjs';
</script>

README

nipponcolorsjs

日本の伝統色

Install

npm install nipponcolorsjs
// or
yarn add nipponcolorsjs

Use

// nodejs
const {
    colors,
    getColorWithName,
    getColorWithRoma,
    getRandonColor
} = require('nipponcolorsjs')

// es6
import {
    colors,
    getColorWithName,
    getColorWithRoma,
    getRandonColor
} from 'nipponcolorsjs'

console.log(colors)  // [color1, color2, ……]
const color = getColorWithName('空')
const color = getColorWithRoma('SORA')
const color = getRandonColor()

Reference