🪛 Added darkmode and fixed coding standards

This commit is contained in:
RJ
2025-11-11 10:46:46 +02:00
parent 6ee39c4438
commit 68d9b61bbb
17 changed files with 451 additions and 79 deletions

View File

@@ -1,5 +1,6 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
@@ -20,6 +21,65 @@ module.exports = {
800: '#075985',
900: '#0c4a6e',
},
'dark-primary': '#18181b',
'dark-secondary': '#0f172a',
'dark-tertiary': '#1e293b',
'accent': {
DEFAULT: '#164e63',
hover: '#155e75',
light: '#0e7490',
},
'accent-emerald': {
DEFAULT: '#064e3b',
hover: '#065f46',
},
'accent-teal': {
DEFAULT: '#134e4a',
hover: '#115e59',
},
},
animation: {
'glitch': 'glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both',
'flicker': 'flicker 0.15s infinite',
'scanline': 'scanline 8s linear infinite',
'noise': 'noise 0.2s infinite',
},
keyframes: {
glitch: {
'0%': { transform: 'translate(0)' },
'20%': { transform: 'translate(-2px, 2px)' },
'40%': { transform: 'translate(-2px, -2px)' },
'60%': { transform: 'translate(2px, 2px)' },
'80%': { transform: 'translate(2px, -2px)' },
'100%': { transform: 'translate(0)' },
},
flicker: {
'0%, 100%': { opacity: '1' },
'41.99%': { opacity: '1' },
'42%': { opacity: '0' },
'43%': { opacity: '0' },
'43.01%': { opacity: '1' },
'47.99%': { opacity: '1' },
'48%': { opacity: '0' },
'49%': { opacity: '0' },
'49.01%': { opacity: '1' },
},
scanline: {
'0%': { transform: 'translateY(-100%)' },
'100%': { transform: 'translateY(100%)' },
},
noise: {
'0%, 100%': { backgroundPosition: '0 0' },
'10%': { backgroundPosition: '-5% -10%' },
'20%': { backgroundPosition: '-15% 5%' },
'30%': { backgroundPosition: '7% -25%' },
'40%': { backgroundPosition: '-5% 25%' },
'50%': { backgroundPosition: '-15% 10%' },
'60%': { backgroundPosition: '15% 0%' },
'70%': { backgroundPosition: '0% 15%' },
'80%': { backgroundPosition: '3% 35%' },
'90%': { backgroundPosition: '-10% 10%' },
},
},
},
},