Skip to content

Commit 53452b2

Browse files
committed
UI-7
1 parent 7577648 commit 53452b2

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
44

55
Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://vuejs.org/guide/scaling-up/tooling.html#ide-support).
6+
7+
#使用CNPM安装依赖

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@
1515
},
1616
"devDependencies": {
1717
"@electron/remote": "^2.1.2",
18+
"@tailwindcss/postcss": "^4.0.12",
1819
"@vitejs/plugin-vue": "^5.2.1",
20+
"autoprefixer": "^10.4.21",
1921
"concurrently": "^9.1.2",
2022
"electron": "^35.0.1",
2123
"electron-builder": "^25.1.8",
24+
"postcss": "^8.5.3",
25+
"tailwindcss": "latest",
2226
"vite": "^6.2.0",
2327
"wait-on": "^8.0.2"
2428
}

postcss.config.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
'@tailwindcss/postcss': {},
4+
autoprefixer: {},
5+
},
6+
}

tailwind.config.cjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
purge: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
4+
darkMode: false, // or 'media' or 'class'
5+
theme: {
6+
extend: {
7+
colors: {
8+
primary: '#007BFF',
9+
secondary: '#6C757D',
10+
text: '#343A40',
11+
background: '#F8F9FA',
12+
navigation: '#2654A1',
13+
message_self: '#e2f5fd',
14+
message_other: '#ffffff'
15+
}
16+
},
17+
},
18+
variants: {
19+
extend: {},
20+
},
21+
plugins: [],
22+
}

0 commit comments

Comments
 (0)