添加 tailwindcss

This commit is contained in:
2024-09-28 22:27:23 +08:00
parent a53973433f
commit e5ff18abe6
5 changed files with 30 additions and 0 deletions

View File

@@ -26,9 +26,12 @@
"@types/node": "^20.12.5",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/tsconfig": "^0.5.1",
"autoprefixer": "^10.4.20",
"element-plus": "^2.7.3",
"npm": "^10.8.3",
"npm-run-all2": "^6.1.2",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.13",
"typescript": "~5.4.0",
"unplugin-auto-import": "^0.17.6",
"unplugin-vue-components": "^0.27.0",

6
tonecn/postcss.config.js Normal file
View File

@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

View File

@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

View File

@@ -1,4 +1,5 @@
import './assets/main.css'
import './assets/tailwind.css'
import { createApp } from 'vue'
import 'element-plus/dist/index.css'

17
tonecn/tailwind.config.js Normal file
View File

@@ -0,0 +1,17 @@
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
'default-bg': '#fafafa',
'dark-bg': '#1a1a1a',
}
},
},
plugins: [],
}