feat: ui-v2 Color System Naming

This commit is contained in:
Rodrigo Antinarelli authored and James A. Petts committed 2020-05-15 13:43:46 +02:00
1 parent 5541fb1f4b
commit b6201ebc34
23 files changed
+254 -119

No files matched your search

+44 -23
View File
@@ -16,22 +16,43 @@ module.exports = {
initial: 'initial',
inherit: 'inherit',
primary: {
light: '#5acce6',
main: '#0944b3',
dark: '#090c29',
active: '#348cfd',
},
secondary: {
light: '#3a3f99',
main: '#2b166b',
dark: '#041c4a',
active: '#1f1f27',
},
common: {
bright: '#e1e1e1',
light: '#a19fad',
main: '#fff',
dark: '#726f7e',
active: '#2c3074',
},
/** CUSTOM THEME COLORS */
custom: {
dark: '#1f1f27',
aquaBright: '#5acce6',
navyDark: '#090c29',
navy: '#041c4a',
violetDark: '#2b166b',
violetPale: '#3a3f99',
blue: '#0944b3',
blueBright: '#348cfd',
aquaPale: '#7bb2ce',
white: '#ffffff',
grayBright: '#e1e1e1',
grayLight: '#a19fad',
gray: '#726f7e',
darkSlateBlue: '#2c3074',
dark: '#1f1f27', // [class]-secondary-active
aquaBright: '#5acce6', // [class]-primary-light
navyDark: '#090c29', // [class]-primary-dark
navy: '#041c4a', // [class]-secondary-dark
violetDark: '#2b166b', // [class]-secondary-main
violetPale: '#3a3f99', // [class]-secondary-light
blue: '#0944b3', // [class]-primary-main
blueBright: '#348cfd', // [class]-primary-active
white: '#ffffff', // [class]-common-main
grayBright: '#e1e1e1', // [class]-common-bright
grayLight: '#a19fad', // [class]-common-light
gray: '#726f7e', // [class]-common-dark
darkSlateBlue: '#2c3074', // [class]-common-active
},
/** END CUSTOM THEME COLORS */
@@ -170,7 +191,7 @@ module.exports = {
'80': '20rem',
'250px': '250px',
},
backgroundColor: theme => theme('colors'),
backgroundColor: (theme) => theme('colors'),
backgroundPosition: {
bottom: 'bottom',
center: 'center',
@@ -187,7 +208,7 @@ module.exports = {
cover: 'cover',
contain: 'contain',
},
borderColor: theme => ({
borderColor: (theme) => ({
...theme('colors'),
default: theme('colors.gray.300', 'currentColor'),
}),
@@ -301,7 +322,7 @@ module.exports = {
extrabold: '800',
black: '900',
},
height: theme => ({
height: (theme) => ({
auto: 'auto',
...theme('spacing'),
full: '100%',
@@ -345,7 +366,7 @@ module.exports = {
...theme('spacing'),
...negative(theme('spacing')),
}),
maxHeight: theme => ({
maxHeight: (theme) => ({
full: '100%',
screen: '100vh',
...theme('spacing'),
@@ -430,8 +451,8 @@ module.exports = {
'11': '11',
'12': '12',
},
padding: theme => theme('spacing'),
placeholderColor: theme => theme('colors'),
padding: (theme) => theme('spacing'),
placeholderColor: (theme) => theme('colors'),
stroke: {
current: 'currentColor',
},
@@ -440,8 +461,8 @@ module.exports = {
'1': '1',
'2': '2',
},
textColor: theme => theme('colors'),
width: theme => ({
textColor: (theme) => theme('colors'),
width: (theme) => ({
auto: 'auto',
...theme('spacing'),
'1/2': '50%',
@@ -505,7 +526,7 @@ module.exports = {
'40': '40',
'50': '50',
},
gap: theme => theme('spacing'),
gap: (theme) => theme('spacing'),
gridTemplateColumns: {
none: 'none',
'1': 'repeat(1, minmax(0, 1fr))',