16 lines
569 B
JavaScript
16 lines
569 B
JavaScript
// License: LGPL-3.0-or-later
|
|
const color = require('color')
|
|
|
|
module.exports = (brand_color = null) => {
|
|
let brandColor = brand_color || '#5FB88D'
|
|
return {
|
|
lightest: color(brandColor).lighten(0.8).hexString()
|
|
, lighter: color(brandColor).lighten(0.7).hexString()
|
|
, light: color(brandColor).lighten(0.5).hexString()
|
|
, base: brandColor
|
|
, dark: color(brandColor).darken(0.1).hexString()
|
|
, darker: color(brandColor).darken(0.3).hexString()
|
|
, grey: "#636363"
|
|
, light_grey: "rgb(248, 248, 248)"
|
|
}
|
|
}
|