Skip to content

Commit

Permalink
Merge pull request #3 from nix6839/tailwind-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
nix6839 authored Sep 14, 2023
2 parents 4544419 + 3b5f15e commit 6a5736d
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/portfolio/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ const title = '포트폴리오';
---

<BaseLayout {title}>
<h1 class="m-5 text-lg text-slate-200">{title}</h1>
<h1>{title}</h1>
</BaseLayout>
68 changes: 68 additions & 0 deletions apps/portfolio/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,78 @@
import tailwindColors from 'tailwindcss/colors.js';
import defaultTheme from 'tailwindcss/defaultTheme.js';

import type { Config } from 'tailwindcss';

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

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

theme: {
fontFamily: {
default: [
'"Pretendard Variable"',
'Pretendard',
'-apple-system',
'BlinkMacSystemFont',
'system-ui',
'Roboto',
'"Helvetica Neue"',
'"Segoe UI"',
'"Apple SD Gothic Neo"',
'"Noto Sans KR"',
'"Malgun Gothic"',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'sans-serif',
],
mono: ['"JetBrains Mono"', ...defaultTheme.fontFamily.mono],
},

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 6a5736d

Please sign in to comment.