mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
8 lines
281 B
JavaScript
8 lines
281 B
JavaScript
|
const tinyColor = require('tinycolor2')
|
||
|
|
||
|
const red = tinyColor('#ce347c').getBrightness()
|
||
|
const green = tinyColor('#00c060').getBrightness()
|
||
|
const orange = tinyColor('#EF8745').getBrightness()
|
||
|
const blue = tinyColor('#2090f0').getBrightness()
|
||
|
console.log(red, green, orange, blue)
|