Skip to content

Commit

Permalink
fix: fixed the tailwind config
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoluoboding committed Aug 14, 2024
1 parent 333a593 commit 208f533
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 27 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@intlify/unplugin-vue-i18n": "^4.0.0",
"@rushstack/eslint-patch": "^1.10.4",
"@types/jsdom": "^16.2.15",
"@types/node": "^16.18.105",
"@types/node": "^22.3.0",
"@types/qs": "^6.9.15",
"@vitejs/plugin-vue": "^5.1.2",
"@vue/eslint-config-prettier": "^7.1.0",
Expand Down
51 changes: 29 additions & 22 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions frontend/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
const animate = require('tailwindcss-animate')
import animate from 'tailwindcss-animate'

/** @type {import('tailwindcss').Config} */
module.exports = {
const tailwindConfig = {
darkMode: ['class'],
safelist: ['dark'],
prefix: '',

content: [
'./pages/**/*.{ts,tsx,vue}',
'./components/**/*.{ts,tsx,vue}',
'./app/**/*.{ts,tsx,vue}',
'./src/**/*.{ts,tsx,vue}'
],

theme: {
container: {
center: true,
Expand Down Expand Up @@ -91,3 +89,5 @@ module.exports = {
},
plugins: [animate]
}

export default tailwindConfig

0 comments on commit 208f533

Please sign in to comment.