Commit 19080866 by dliangx

add tailwindcss support

parent c3df7063
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
gen
\ No newline at end of file
...@@ -10,17 +10,20 @@ ...@@ -10,17 +10,20 @@
"tauri": "tauri" "tauri": "tauri"
}, },
"dependencies": { "dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@tauri-apps/api": ">=2.0.0-rc.0", "@tauri-apps/api": ">=2.0.0-rc.0",
"@tauri-apps/plugin-shell": ">=2.0.0-rc.0" "@tauri-apps/plugin-shell": ">=2.0.0-rc.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}, },
"devDependencies": { "devDependencies": {
"@tauri-apps/cli": ">=2.0.0-rc.0",
"@types/react": "^18.2.15", "@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7", "@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.2.1", "@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.41",
"tailwindcss": "^3.4.10",
"typescript": "^5.2.2", "typescript": "^5.2.2",
"vite": "^5.3.1", "vite": "^5.3.1"
"@tauri-apps/cli": ">=2.0.0-rc.0"
} }
} }
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
[build]
target = "aarch64-apple-darwin"
[target]
This source diff could not be displayed because it is too large. You can view the blob instead.
@tailwind base;
@tailwind components;
@tailwind utilities;
.logo.vite:hover { .logo.vite:hover {
filter: drop-shadow(0 0 2em #747bff); filter: drop-shadow(0 0 2em #747bff);
} }
......
...@@ -38,6 +38,7 @@ function App() { ...@@ -38,6 +38,7 @@ function App() {
}} }}
> >
<input <input
className=" bg-green-300"
id="greet-input" id="greet-input"
onChange={(e) => setName(e.currentTarget.value)} onChange={(e) => setName(e.currentTarget.value)}
placeholder="Enter a name..." placeholder="Enter a name..."
......
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment