Skip to content

Commit

Permalink
update colors (#317)
Browse files Browse the repository at this point in the history
* update colors

* update colors names to match tailwind

* update component classes to new colors

Co-authored-by: Zuza <[email protected]>
  • Loading branch information
anqaka and Zuza authored Jul 16, 2021
1 parent 5e6ce1e commit 848a58e
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/atoms/label/Label.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
},
primary: {
label: [
'text-gray-600'
'text-gray-400'
]
},
hidden: {
Expand Down
2 changes: 1 addition & 1 deletion src/atoms/price/Price.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default {
],
price__old: [
'mr-3',
'text-xs', 'md:text-sm', 'font-normal', 'text-gray-600', 'line-through'
'text-xs', 'md:text-sm', 'font-normal', 'text-gray-500', 'line-through'
],
price__special: [
'text-red', 'no-underline'
Expand Down
4 changes: 2 additions & 2 deletions src/molecules/breadcrumbs/Breadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ export default {
],
breadcrumbs__link: [
'flex', 'items-center',
'text-gray-600', 'hover:text-gray-800'
'text-gray-400', 'hover:text-gray-500'
],
'breadcrumbs__link--current': [
'flex', 'items-center',
'text-gray-800'
'text-gray-500'
],
breadcrumbs__separator: [
'mx-2'
Expand Down
63 changes: 52 additions & 11 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,47 @@ module.exports = {
extend: {
maxWidth: {
content: '1328px'
},
colors: {
gray: {
100: '#dde1e6',
200: '#c1c7cd',
300: '#a2a9b0',
400: '#6e767c',
500: '#121619'
},
coral: {
100: '#ffefec',
200: '#f5dbd7',
300: '#deb9b3',
400: '#956760'
},
red: {
100: '#ffd7d9',
200: '#ff8389',
300: '#da1e28'
},
blue: {
100: '#d0e2ff',
200: '#78a9ff',
300: '#0043ce'
},
green: {
100: '#cfe8cc',
200: '#6eb966',
300: '#0e8a00'
},
yellow: {
100: '#fcf3d1',
200: '#f7da76',
300: '#f1c21b'
},
orange: {
100: '#ffe6d5',
200: '#ffb580',
300: '#ff832b'
},
focus: '#00b8ff'
}
},
screens: {
Expand All @@ -25,32 +66,32 @@ module.exports = {
...theme('colors'),
primary: theme('colors.white'),
secondary: theme('colors.gray.200'),
dark: theme('colors.gray.800')
dark: theme('colors.gray.500')
}),
borderColor: theme => ({
...theme('colors'),
primary: theme('colors.gray.500'),
secondary: theme('colors.gray.600'),
form: theme('colors.gray.500'),
dark: theme('colors.gray.800'),
light: theme('colors.gray.300'),
primary: theme('colors.coral.300'),
secondary: theme('colors.gray.500'),
form: theme('colors.gray.200'),
dark: theme('colors.gray.500'),
light: theme('colors.gray.200'),

}),
textColor: theme => ({
...theme('colors'),
primary: theme('colors.gray.800'),
secondary: theme('colors.gray.600')
primary: theme('colors.gray.500'),
secondary: theme('colors.gray.400')
}),
placeholderColor: theme => ({
primary: theme('colors.gray.600'),
primary: theme('colors.gray.400'),
}),
fill: theme => ({
...theme('colors'),
dark: theme('colors.gray.800'),
dark: theme('colors.gray.500'),
light: theme('colors.gray.200')
}),
outline: theme => ({
focus: [`2px solid ${theme('colors.bright-sky-blue')}`, '-1px']
focus: [`2px solid ${theme('colors.focus')}`, '-1px']
})
},
variants: {},
Expand Down

0 comments on commit 848a58e

Please sign in to comment.