This document explains how colors are managed in the project to make it easy to adapt for different portals (Angular.DE, ReactJS.DE, VueJS.DE).
Colors are defined in two places:
src/styles/global.css- Full Tailwind color scales (the source of truth)src/config/site.ts- Reference values for JS/TS usage (gradients, etc.)
@theme {
/* Primary color scale (React cyan #0891b2) */
--color-primary-50: #ecfeff;
--color-primary-100: #cffafe;
--color-primary-200: #a5f3fc;
--color-primary-300: #67e8f9;
--color-primary-400: #22d3ee;
--color-primary-500: #06b6d4;
--color-primary-600: #0891b2; /* Base */
--color-primary-700: #0e7490;
--color-primary-800: #155e75;
--color-primary-900: #164e63;
--color-primary-950: #083344;
--color-primary: #0891b2; /* Alias */
/* Accent color scale (Blue #3b82f6) */
--color-accent-50: #eff6ff;
--color-accent-100: #dbeafe;
--color-accent-200: #bfdbfe;
--color-accent-300: #93c5fd;
--color-accent-400: #60a5fa;
--color-accent-500: #3b82f6; /* Base */
--color-accent-600: #2563eb;
--color-accent-700: #1d4ed8;
--color-accent-800: #1e40af;
--color-accent-900: #1e3a8a;
--color-accent-950: #172554;
--color-accent: #3b82f6; /* Alias */
}Use these utility classes that automatically adapt to the brand:
text-primary- Primary text colorbg-primary-100- Light primary backgroundborder-primary-200- Light primary bordertext-accent- Accent text color
| Avoid | Use Instead |
|---|---|
text-cyan-500 |
text-primary |
text-blue-500 |
text-accent |
text-gray-*- Neutral colorstext-red-500- Error states (not brand color!)text-green-500- Success states
- Update
src/styles/global.css- Change color values in@themeblock - Update
src/config/site.ts- Update branding gradients - Update logos and images in
public/assets/img/