Skip to content

Commit

Permalink
Merge pull request #6 from nix6839:base-style
Browse files Browse the repository at this point in the history
feat: add base style for html
  • Loading branch information
nix6839 authored Sep 14, 2023
2 parents 83e960b + 121c4da commit e34e0b8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
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;

0 comments on commit e34e0b8

Please sign in to comment.