feat: use tailwindcss and mingcute

This commit is contained in:
DIYgod
2024-04-10 09:49:45 +08:00
parent 65c0ec74c8
commit b701544e86
7 changed files with 436 additions and 617 deletions
+3
View File
@@ -26,9 +26,11 @@
"electron-updater": "^6.1.7"
},
"devDependencies": {
"@egoist/tailwindcss-icons": "1.7.4",
"@electron-toolkit/eslint-config-prettier": "^2.0.0",
"@electron-toolkit/eslint-config-ts": "^2.0.0",
"@electron-toolkit/tsconfig": "^1.0.1",
"@iconify-json/mingcute": "1.1.17",
"@types/node": "^20.12.7",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
@@ -41,6 +43,7 @@
"prettier": "^3.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwindcss": "3.4.3",
"typescript": "^5.3.3",
"vite": "^5.0.12"
}
+408 -617
View File
File diff suppressed because it is too large Load Diff
+5
View File
@@ -0,0 +1,5 @@
module.exports = {
plugins: {
tailwindcss: {}
}
}
+1
View File
@@ -9,6 +9,7 @@ function App(): JSX.Element {
<img alt="logo" className="logo" src={electronLogo} />
<div className="creator">Powered by electron-vite</div>
<div className="text">
<span className="i-mingcute-rss-fill"></span>
Build an Electron app with <span className="react">React</span>
&nbsp;and <span className="ts">TypeScript</span>
</div>
+1
View File
@@ -1,3 +1,4 @@
@import './tailwind.css';
@import './base.css';
body {
+3
View File
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
+15
View File
@@ -0,0 +1,15 @@
const { iconsPlugin, getIconCollections } = require("@egoist/tailwindcss-icons");
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.tsx'],
theme: {
extend: {},
},
plugins: [
iconsPlugin({
collections: getIconCollections(["mingcute"]),
}),
],
}