Skip to content

Commit

Permalink
config: 🔧 removed tailwind/typography and added css
Browse files Browse the repository at this point in the history
BREAKING CHANGE: - Using tailwindcss/jit compiler for faster development
  • Loading branch information
vanntile committed Mar 20, 2021
1 parent 813f58d commit b22f742
Show file tree
Hide file tree
Showing 8 changed files with 528 additions and 202 deletions.
4 changes: 3 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"ignoreAtRules": [
"extends",
"tailwind",
"layer"
"layer",
"screen",
"variants"
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion components/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const Container: React.FC<Props> = ({ children, ...customMeta }): JSX.Element =>
{router.asPath === '/' ? (
<main className="flex flex-col justify-center py-16">{children}</main>
) : (
<div className="max-w-full mx-auto prose-sm prose md:prose 2xl:prose-2xl dark:prose-dark md:max-w-3xl 2xl:max-w-6xl">
<div className="max-w-full mx-auto prose md:max-w-3xl 2xl:max-w-6xl">
{mounted && <Navigation theme={theme} onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')} />}
<main className="pt-8 pb-32">{children}</main>
</div>
Expand Down
125 changes: 71 additions & 54 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@mdx-js/loader": "^1.6.22",
"@mdx-js/mdx": "^1.6.22",
"@mdx-js/react": "^1.6.22",
"@tailwindcss/typography": "^0.4.0",
"@tailwindcss/jit": "^0.1.4",
"@types/eslint": "^7.2.7",
"@types/eslint-plugin-prettier": "^3.1.0",
"@types/mdx-js__react": "^1.5.3",
Expand Down
4 changes: 1 addition & 3 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ const IndexPage = (): JSX.Element => (
<h1 className="text-4xl text-black dark:text-white">Hello Next.js 👋</h1>
<p>
<Link href="/blog">
<a className="leading-6 underline transition-colors text-black-600 hover:text-blue-600 visited:text-purple-600">
Blog again
</a>
<a className="leading-6">Blog again</a>
</Link>
</p>
</Container>
Expand Down
2 changes: 1 addition & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
'@tailwindcss/jit': {},
autoprefixer: {},
},
}
Loading

0 comments on commit b22f742

Please sign in to comment.