Skip to content

Commit

Permalink
feat: use constants to define the colors
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyrusso committed Sep 23, 2023
1 parent e43a778 commit 45c701d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/** @type {import('tailwindcss').Config} */

const NEUTRAL_FOCUS_LIGHT = "#4C515B";
const NEUTRAL_FOCUS_DARK = "#A0A5AE";

module.exports = {
content: [
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
Expand All @@ -19,7 +23,7 @@ module.exports = {
"accent-focus": "#98DDBD",
"accent-content": "#D7EDE3",
neutral: "#6B7280",
"neutral-focus": "#4C515B",
"neutral-focus": NEUTRAL_FOCUS_LIGHT,
"neutral-content": "#9CA1AA",
info: "#8FC4E5",
"info-content": "#DCEDF7",
Expand All @@ -33,7 +37,7 @@ module.exports = {
"base-200": "#F5F5F5",
"base-300": "#16171A",
"base-content": "#EEEFF0",
"--neutral-focus": "#4C515B",
"--neutral-focus": NEUTRAL_FOCUS_LIGHT,
},
},
{
Expand All @@ -48,7 +52,7 @@ module.exports = {
"accent-focus": "#6EE7B7",
"accent-content": "#6B9984",
neutral: "#6B7280",
"neutral-focus": "#A0A5AE",
"neutral-focus": NEUTRAL_FOCUS_DARK,
"neutral-content": "#3B3F46",
info: "#84B5D4",
"info-content": "#668BA3",
Expand All @@ -62,7 +66,7 @@ module.exports = {
"base-200": "#16171A",
"base-300": "#F5F5F5",
"base-content": "#2D3036",
"--neutral-focus": "#A0A5AE",
"--neutral-focus": NEUTRAL_FOCUS_DARK,
},
},
],
Expand Down

0 comments on commit 45c701d

Please sign in to comment.