- Added ThemeContext to manage theme state and toggle functionality. - Updated components to support dark mode styles, including header, dashboard, and home page. - Enhanced CSS for smooth transitions between light and dark themes. - Modified authentication context to handle async login operations. - Improved user experience by preserving theme preference in local storage. - Refactored login and register pages to handle OAuth tokens and errors more gracefully.
20 lines
565 B
JavaScript
20 lines
565 B
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
export default {
|
|
content: [
|
|
"./index.html",
|
|
"./src/**/*.{js,ts,jsx,tsx}",
|
|
],
|
|
darkMode: 'class',
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
'ospab-primary': '#2563EB', // Более тёмный синий (blue-600) для лучшего контраста
|
|
'ospab-accent': '#DB2777', // Более тёмный розовый (pink-600) для лучшего контраста
|
|
},
|
|
fontFamily: {
|
|
mono: ['Share Tech Mono', 'monospace'],
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
} |