feat: 新增主题色切换功能 默认为日间主题可切换夜间 (#19、#21)

fixes #19  #21
This commit is contained in:
alger
2024-12-28 16:43:52 +08:00
parent f728191a8f
commit abdb2bcd50
34 changed files with 772 additions and 758 deletions
+25 -5
View File
@@ -1,12 +1,32 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{vue,js,ts,jsx,tsx}'],
export default {
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
darkMode: 'class',
theme: {
extend: {
colors: {
highlight: 'var(--highlight-color)',
text: 'var(--text-color)',
secondary: 'var(--text-secondary)',
primary: {
DEFAULT: '#000',
light: '#fff',
dark: '#000',
},
secondary: {
DEFAULT: '#6c757d',
light: '#8c959e',
dark: '#495057',
},
dark: {
DEFAULT: '#000',
100: '#161616',
200: '#2d2d2d',
300: '#3d3d3d',
},
light: {
DEFAULT: '#fff',
100: '#f8f9fa',
200: '#e9ecef',
300: '#dee2e6',
},
},
},
},