MediaWiki:Colors.css

From MB Wiki
Revision as of 09:08, 25 March 2026 by Ais (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* ===== COLOR SYSTEM ===== */

:root {
	/* Gray Scale */
	--gray-950: #0f1419;
	--gray-900: #1a202c;
	--gray-800: #2d3748;
	--gray-700: #4a5568;
	--gray-600: #718096;
	--gray-500: #a0aec0;
	--gray-400: #cbd5e0;
	--gray-300: #e2e8f0;
	--gray-200: #edf2f7;
	--gray-100: #f7fafc;
	
	/* Teal Scale */
	--teal-900: #1d4044;
	--teal-800: #234e52;
	--teal-700: #285e61;
	--teal-600: #2c7a7b;
	--teal-500: #319795;
	--teal-400: #38b2ac;
	--teal-300: #4fd1c7;
	--teal-200: #81e6d9;
	--teal-100: #b2f5ea;
	--teal-50: #e6fffa;
	
	/* Spacing */
	--spacing-xs: 4px;
	--spacing-sm: 8px;
	--spacing-md: 16px;
	--spacing-lg: 24px;
	--spacing-xl: 32px;
	--spacing-2xl: 48px;
	
	/* Shadows */
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
	--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
	--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
	
	/* Borders */
	--border-radius-sm: 4px;
	--border-radius-md: 8px;
	--border-radius-lg: 12px;
	--border-radius-full: 9999px;
	
	/* Transitions */
	--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
:root body:not(.skin-vector-dark) {
	--theme-page-text-color: #1a2a2a;
	--theme-page-background-color: #f5fdfb;
	--theme-page-background-color--secondary: #e8f5f3;
	--theme-link-color: #007d7a;
	--theme-link-color--hover: #005652;
	--theme-accent-color: #38b2ac;
	--theme-accent-label-color: #ffffff;
	--theme-border-color: #a1e9dc;
	--theme-border-color--subtle: #d1f5ee;
	--card-bg-main: #ffffff;
	--card-bg-elevated: #ffffff;
	--input-bg: #ffffff;
	--input-border: #cbd5e0;
}

/* Dark Theme */
:root .skin-vector-dark {
	--theme-page-text-color: #e6f7f5;
	--theme-page-background-color: rgba(22, 28, 36, 0.98);
	--theme-page-background-color--secondary: #2a363d;
	--theme-link-color: #5fd9cf;
	--theme-link-color--hover: #81e6d9;
	--theme-accent-color: #5fd9cf;
	--theme-accent-label-color: #1a202c;
	--theme-border-color: #4d6872;
	--theme-border-color--subtle: #3a5059;
	--card-bg-main: #2a363d;
	--card-bg-elevated: #34444d;
	--input-bg: #2d3748;
	--input-border: #4a5568;
}

/* Element-specific Colors */
.text-player { color: #60d9c5; font-weight: 600; }
.text-accent { color: var(--theme-accent-color); font-weight: 600; }
.text-error { color: #d53f3f; }
.text-warning { color: #c05621; }
.text-success { color: #2e8b57; }