Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add base style for html #6

Merged
merged 3 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/portfolio/src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { title } = Astro.props;
---

<!DOCTYPE html>
<html lang="ko">
<html lang="ko" class="bg-primary font-default scheme-dark">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
Expand Down
6 changes: 0 additions & 6 deletions apps/portfolio/src/styles/global.css

This file was deleted.

1 change: 0 additions & 1 deletion apps/portfolio/src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@

@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
@import url('./global.css');
11 changes: 11 additions & 0 deletions apps/portfolio/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -73,6 +74,16 @@ const config = {
},
},
},

plugins: [
plugin(({ addUtilities }) => {
addUtilities({
'.scheme-dark': {
colorScheme: 'dark',
},
});
}),
],
} satisfies Config;

export default config;