Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
refactor: added color comments to white and black
Browse files Browse the repository at this point in the history
  • Loading branch information
brianacnguyen committed Jun 3, 2024
1 parent f9bcd98 commit 5bc04dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/brandColors.jsonToCss.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ for (const color in brandColors) {
cssContent += ` ${variableName}: ${colorValue};\n`;
}
} else {
cssContent += ` /* ${color.charAt(0).toUpperCase() + color.slice(1)} */\n`;
const variableName = `--brand-colors-${color}`;
const colorValue = brandColors[color].value;
cssContent += ` ${variableName}: ${colorValue};\n`;
Expand Down
2 changes: 2 additions & 0 deletions src/css/brand-colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@
--brand-colors-lime-lime900: #011515;
--brand-colors-lime-lime025: #effed9;
--brand-colors-lime-lime050: #e3febd;
/* White */
--brand-colors-white: #ffffff;
/* Black */
--brand-colors-black: #000000;
}

0 comments on commit 5bc04dc

Please sign in to comment.