houdini/client/js/recurring_donations/edit/custom-nonprofit-branding.es6

17 lines
569 B
Text
Raw Normal View History

2018-03-29 20:42:43 +00:00
// 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)"
}
}