Skip to content

Commit

Permalink
feat: define color tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
nix6839 committed Sep 14, 2023
1 parent 4544419 commit 596a7a0
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions apps/portfolio/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,56 @@
import tailwindColors from 'tailwindcss/colors.js';

import type { Config } from 'tailwindcss';

const COLORS = {
...tailwindColors,
brand: '#b4ec94',
} as const;

const config = {
content: ['./src/**/*.astro'],
corePlugins: {
preflight: false,
},

theme: {
backgroundColor: {
primary: {
DEFAULT: COLORS.zinc['900'],
},
},

textColor: {
brand: {
DEFAULT: COLORS.brand,
},
primary: {
DEFAULT: COLORS.zinc['100'],
hover: COLORS.zinc['300'],
pressed: COLORS.zinc['400'],
},
secondary: {
DEFAULT: COLORS.zinc['200'],
},
tertiary: {
DEFAULT: COLORS.zinc['300'],
},
},

borderColor: {
primary: {
DEFAULT: COLORS.zinc['500'],
},
},

fill: {
icon: {
primary: {
DEFAULT: COLORS.zinc['200'],
},
},
},
},
} satisfies Config;

export default config;

0 comments on commit 596a7a0

Please sign in to comment.