Skip to content

Commit 4f593c6

Browse files
author
taku10101
committed
wip tailwind setting
1 parent 193bebe commit 4f593c6

File tree

6 files changed

+23
-5
lines changed

6 files changed

+23
-5
lines changed

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<head>
55
<meta charset="UTF-8" />
66
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
7+
<link href="/src/styles.css" rel="stylesheet">
8+
79
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
810
<title>Vite + TS</title>
911
</head>

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"react": "^18.2.0",
3131
"react-dom": "^18.2.0",
3232
"storybook": "^8.6.10",
33-
"tailwindcss": "^4.0.0",
33+
"tailwindcss": "^4.1.3",
3434
"tailwindcss-animate": "^1.0.7",
3535
"tailwindcss-react-aria-components": "^1.0.0",
3636
"typescript": "~5.7.2",
@@ -40,6 +40,7 @@
4040
"dependencies": {
4141
"@axe-core/playwright": "^4.10.1",
4242
"@hookform/resolvers": "^5.0.1",
43+
"@tailwindcss/vite": "^4.1.3",
4344
"axios": "^1.8.4",
4445
"framer-motion": "^11.18.2",
4546
"lucide-react": "^0.292.0",

pnpm-lock.yaml

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import './style.css'
21
import { StrictMode } from "react"
32
import { createRoot } from "react-dom/client"
43
import App from "./App.tsx"

src/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'tailwindcss';
1+
@import "tailwindcss";
22
@plugin 'tailwindcss-react-aria-components';
33
@plugin 'tailwindcss-animate';
44

vitest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import path from 'node:path';
22
import { fileURLToPath } from 'node:url';
33
import { defineConfig } from 'vitest/config';
44
import graphqlLoader from 'vite-plugin-graphql-loader';
5+
import tailwindcss from '@tailwindcss/vite'
56

67
const dirname =
78
typeof __dirname !== 'undefined' ? __dirname : path.dirname(fileURLToPath(import.meta.url));
@@ -12,5 +13,5 @@ export default defineConfig({
1213
'@': path.resolve(dirname, 'src'),
1314
},
1415
},
15-
plugins: [graphqlLoader()],
16+
plugins: [tailwindcss()],
1617
});

0 commit comments

Comments
 (0)