I've got a SCSS file containing an array of color values.
export const COLORS = {
transparent: 'rgba(0,0,0,0)',
primary: '#09596e',
primary01: '#317D92',
primary02: '#6BADBF',
primary03: '#97C6D2',
primary04: '#D4E9EF',
primary05: '#ECFAFF',
primary06: '#9DBDC6',
primary07: '#EDF2F2',
primary08: '#009DAB',
primaryLight: '#46869C',
primaryDark: '#003043',
secondary: '#E15A52',
secondaryLight: '#FF8A7F',
secondaryDark: '#A92629',
textBlack: '#323030',
textGray: '#757575',
bgGray: '#E0E0E0',
border: '#BDBDBD',
rail: '#EEEEEE', // used for dividers, etc.
bgLightGray: '#FAFAFA',
white: '#FFFFFF',
errorPink: '#EF7279',
pink01: '#FFF5F5',
yel01: '#EBA338',
yel02: '#F5C173',
yel03: '#E7C798',
yel04: '#FBF6F0',
yel05: '#FEFBEA',
green01: '#34C84C'
};
I'm interested in updating my border style by utilizing one of the colors listed above. For example:
border: '1px solid #BDBDBD',
border-radius:' 1px 2px 1px #34C84C',
If anyone has a solution for dynamically replacing these hard-coded color values with the ones from the variables, I'd greatly appreciate your assistance. Thank you!