Skip to content

Commit 3c476ac

Browse files
authored
Merge pull request #2 from ansidev/feature/config-tailwind
Feature: Config TailwindCSS
2 parents f9fbdf5 + 945811d commit 3c476ac

File tree

4 files changed

+310
-5
lines changed

4 files changed

+310
-5
lines changed

astro.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import tailwind from '@astrojs/tailwind'
12
import { defineConfig } from 'astro/config'
23
import compress from 'astro-compress'
34
import purgecss from 'astro-purgecss'
@@ -17,6 +18,7 @@ if (baseURL.length === 0) {
1718
export default defineConfig({
1819
site: baseURL,
1920
integrations: [
21+
tailwind(),
2022
purgecss(),
2123
compress(),
2224
]

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@
1515
"lint": "eslint --ext .cjs,.mjs,.ts,.astro --ignore-path .gitignore ."
1616
},
1717
"dependencies": {
18+
"@astrojs/tailwind": "^3.0.1",
1819
"astro": "^2.0.14",
1920
"astro-compress": "^1.1.33",
20-
"astro-purgecss": "^2.0.0"
21+
"astro-purgecss": "^2.0.0",
22+
"tailwindcss": "^3.0.24"
2123
},
2224
"devDependencies": {
2325
"@commitlint/cli": "^17.4.4",
2426
"@commitlint/config-conventional": "^17.4.4",
27+
"@tailwindcss/typography": "^0.5.9",
2528
"@types/node": "^18.14.0",
2629
"@typescript-eslint/eslint-plugin": "^5.53.0",
2730
"@typescript-eslint/parser": "^5.53.0",

0 commit comments

Comments
 (0)