feat: 整合tailwindcss
Former-commit-id: 9f7aa8245149c0e45790277d4780dc93dbe1c495
This commit is contained in:
6
postcss.config.js
Normal file
6
postcss.config.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
module.exports = {
|
||||||
|
plugins: {
|
||||||
|
tailwindcss: {},
|
||||||
|
autoprefixer: {},
|
||||||
|
},
|
||||||
|
}
|
||||||
4
src/styles/tailwind.scss
Normal file
4
src/styles/tailwind.scss
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
||||||
15
tailwind.config.js
Normal file
15
tailwind.config.js
Normal 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: [],
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user