diff --git a/apps/portfolio/src/layouts/BaseLayout.astro b/apps/portfolio/src/layouts/BaseLayout.astro index d15ca73..1351e89 100644 --- a/apps/portfolio/src/layouts/BaseLayout.astro +++ b/apps/portfolio/src/layouts/BaseLayout.astro @@ -9,7 +9,7 @@ const { title } = Astro.props; --- - + diff --git a/apps/portfolio/src/styles/global.css b/apps/portfolio/src/styles/global.css deleted file mode 100644 index 871659c..0000000 --- a/apps/portfolio/src/styles/global.css +++ /dev/null @@ -1,6 +0,0 @@ -html { - font-family: '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; -} diff --git a/apps/portfolio/src/styles/index.css b/apps/portfolio/src/styles/index.css index ae55fd6..4b18757 100644 --- a/apps/portfolio/src/styles/index.css +++ b/apps/portfolio/src/styles/index.css @@ -5,4 +5,3 @@ @import 'tailwindcss/components'; @import 'tailwindcss/utilities'; -@import url('./global.css'); diff --git a/apps/portfolio/tailwind.config.ts b/apps/portfolio/tailwind.config.ts index 08aebb5..08896ae 100644 --- a/apps/portfolio/tailwind.config.ts +++ b/apps/portfolio/tailwind.config.ts @@ -1,5 +1,6 @@ import tailwindColors from 'tailwindcss/colors.js'; import defaultTheme from 'tailwindcss/defaultTheme.js'; +import plugin from 'tailwindcss/plugin.js'; import type { Config } from 'tailwindcss'; @@ -73,6 +74,16 @@ const config = { }, }, }, + + plugins: [ + plugin(({ addUtilities }) => { + addUtilities({ + '.scheme-dark': { + colorScheme: 'dark', + }, + }); + }), + ], } satisfies Config; export default config;