Skip to content

Commit

Permalink
feat : Add Set tailwind css
Browse files Browse the repository at this point in the history
  • Loading branch information
pinomaker-hoo committed Dec 4, 2023
1 parent 87c5e3b commit dc54f2b
Show file tree
Hide file tree
Showing 6 changed files with 327 additions and 13 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,17 @@
"@typescript-eslint/parser": "^6.11.0",
"@vitejs/plugin-react": "^4.0.0",
"@vitejs/plugin-react-swc": "^3.3.2",
"autoprefixer": "^10.4.16",
"eslint": "^8.38.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-svg-transformer": "^1.0.0",
"postcss": "^8.4.32",
"prettier": "^2.8.8",
"tailwindcss": "^3.3.5",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
Expand Down
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
2 changes: 2 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import App from './App'
import { Provider } from 'react-redux'
import { store } from '@/store'

import './style/index.css'

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)

root.render(
Expand Down
3 changes: 3 additions & 0 deletions src/style/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
8 changes: 8 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {},
},
plugins: [],
}
Loading

0 comments on commit dc54f2b

Please sign in to comment.