Skip to content

Commit

Permalink
feat: add tailwindcss typography plugin (#10)
Browse files Browse the repository at this point in the history
* feat: add tailwindcss-typography plugin

* feat: remove marketing folder
  • Loading branch information
fahmiidris authored Jan 23, 2024
1 parent 18f3171 commit 7af4bd0
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 18 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"editor.tabSize": 4,
"editor.rulers": [150],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"tailwindCSS.classAttributes": ["class", "className", "classNames"],
"emmet.includeLanguages": {
"postcss": "css"
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1",
"@commitlint/types": "^17.8.1",
"@tailwindcss/typography": "^0.5.10",
"@types/node": "^20.10.2",
"@types/react": "^18.2.40",
"@types/react-dom": "^18.2.17",
Expand Down
27 changes: 27 additions & 0 deletions pnpm-lock.yaml

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

7 changes: 0 additions & 7 deletions src/app/(marketing)/layout.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions src/app/(marketing)/page.tsx

This file was deleted.

11 changes: 11 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import * as React from 'react';

export default async function Page() {
return (
<main className="relative">
<div className="container relative flex min-h-dvh flex-col items-center justify-center text-center">
<p>Insanity is doing the same thing over and over again and expecting different results.</p>
</div>
</main>
);
}
6 changes: 4 additions & 2 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import colors from 'tailwindcss/colors';
import defaultTheme from 'tailwindcss/defaultTheme';

import tailwindcssTypography from '@tailwindcss/typography';

import type { Config } from 'tailwindcss';

const tailwindConfig = {
Expand All @@ -17,14 +19,14 @@ const tailwindConfig = {
primary: colors.cyan,
},
fontFamily: {
sans: [['Inter var', ...defaultTheme.fontFamily.sans], { fontFeatureSettings: "'cv02', 'cv03', 'cv04', 'cv11'" }],
sans: [['Inter var', ...defaultTheme.fontFamily.sans], { fontFeatureSettings: "'cv02', 'cv03', 'cv04', 'cv09', 'cv10', 'cv11'" }],
},
screens: {
'2xl': '1536px',
},
},
},
plugins: [],
plugins: [tailwindcssTypography],
} satisfies Config;

export default tailwindConfig;

0 comments on commit 7af4bd0

Please sign in to comment.