feat: 整合tailwindcss

This commit is contained in:
haoxr 2022-12-31 22:04:00 +08:00
parent 61eb5efdd1
commit 9f7aa82451
3 changed files with 25 additions and 0 deletions

6
postcss.config.js Normal file
View File

@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

4
src/styles/tailwind.scss Normal file
View File

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

15
tailwind.config.js Normal file
View File

@ -0,0 +1,15 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
purge: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
darkMode: 'class',
theme: {
backgroundColor: theme => ({
...theme('colors'),
"sidebar-logo":'#2b2f3a'
})
},
plugins: [],
}