joyent-portal/packages/ui-toolkit/src/theme/index.js

109 lines
2.5 KiB
JavaScript
Raw Normal View History

/*
* There should be no string value to keys outside the `base` object.
* If a new colors needs to be used, check it doesn't already exist, or
* anything that is similar, and if it doesn't, add a key-value and reference from
* there. Lets try and keep different color variations down ot a minimum.
2017-02-14 17:03:21 +02:00
*
---
Color Object example
const color_name = {
color_name: '#FFFFFF',
color_name_style1: '#FFF000',
color_name_style2: '#FFF333',
};
*/
const primary = {
primary: '#3B47CC',
primaryHover: '#1838C0',
primaryActive: '#12279F',
primaryDesaturated: '#3B4AAF',
primaryDesaturatedHover: '#34429D',
primaryDesaturatedActive: '#2D3884',
primaryDark: '#2D3884',
primaryDarkHover: '#34429D',
2017-05-16 16:46:04 +03:00
primaryDarkActive: '#2D3884',
primaryDarkBrand: '#1E313B'
};
const secondary = {
secondary: '#464646',
secondaryHover: '#3F3F3F',
2017-02-20 16:18:19 +02:00
secondaryActive: '#343434'
};
const white = {
white: '#FFFFFF',
whiteHover: '#F8F8F8',
2017-02-20 16:18:19 +02:00
whiteActive: '#E9E9E9'
};
/** ********************************** BASE *********************************** */
export const base = {
...primary,
...secondary,
...white,
2017-02-14 17:03:21 +02:00
text: '#646464',
grey: '#D8D8D8',
disabled: '#FAFAFA',
background: '#FAFAFA',
green: '#00AF66',
greenDark: '#009858',
orange: '#E38200',
orangeDark: '#CB7400',
red: '#DA4B42',
2017-02-20 16:18:19 +02:00
redDark: '#CD251B'
};
/** ********************************** FONTS ********************************** */
export const fonts = {
semibold: base.secondary,
regular: base.text,
abbrBorderColor: base.secondary,
textMuted: base.secondary
2017-01-04 20:51:17 +02:00
};
/** ******************************** INACTIVE ********************************* */
export const inactive = {
2017-02-14 17:03:21 +02:00
default: base.disabled,
border: base.grey,
2017-02-20 16:18:19 +02:00
text: base.grey
};
/** ***************************** NOTIFICATIONS ******************************* */
export const notifications = {
alert: base.red,
confirmation: base.green,
2017-02-20 16:18:19 +02:00
warning: base.orange
};
/** ********************************* FORMS *********************************** */
2017-01-16 21:42:12 +02:00
export const inputError = base.red;
export const inputWarning = base.orange;
2017-01-06 13:06:02 +02:00
/** ******************************** METRICS ********************************* */
2017-01-10 13:55:25 +02:00
export const miniBackground = '#F3F4F9';
export const seperator = '#D9DEF3';
/** ******************************** TOPOLOGY ********************************* */
export const topologyBackground = base.secondaryActive;
export default {
...base,
fonts,
inactive,
notifications,
inputError,
inputWarning,
miniBackground,
seperator,
topologyBackground
};