mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +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)
|