- Primary Colors
- Background Colors
- Additional Colors
Institucional Dorado
Color:#c29b47 (Gold)Usage:- Primary brand color
- Buttons and CTAs
- Headers and important text
- Icon colors
- Hover states
bg-institucional-dorado or text-institucional-doradoPowered by Mintlify
Auto-generate your docs
Tailwind CSS configuration and styling patterns in ESBO Web
tailwind.config.js file defines custom brand colors:
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
// colores personalizados para la marca institucional
'institucional-dorado': '#c29b47',
// color blanco para el fondo de la marca institucional
'institucional-claro': '#fdfaf5',
}
},
},
plugins: [],
}
content array tells Tailwind which files to scan for class names. This enables automatic purging of unused styles in production builds.#c29b47 (Gold)Usage:bg-institucional-dorado or text-institucional-dorado<div className="bg-institucional-dorado text-white">
Primary button
</div>
#fdfaf5 (Light cream)Usage:bg-institucional-claro<div className="min-h-screen bg-institucional-claro">
Page content
</div>
#0b132b (Dark blue)Usage:bg-[#0b132b] (arbitrary value)#d4af37 (Brighter gold)Usage:bg-[#d4af37] or text-[#d4af37]@tailwind base;
@tailwind components;
@tailwind utilities;
What do these directives do?
App.css file contains legacy styles from the Vite template:
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
{/* Mobile: 2xl, Desktop: 3xl */}
<h1 className="text-2xl sm:text-3xl font-bold">
ESBO
</h1>
{/* Mobile: 4px padding, Desktop: 8px padding */}
<header className="py-4 px-4 sm:px-8">
...
</header>
{/* Mobile: column, Desktop: row */}
<div className="flex flex-col sm:flex-row gap-6">
...
</div>
| Prefix | Min Width | Description |
|---|---|---|
| (none) | 0px | Mobile (default) |
sm: | 640px | Small tablets |
md: | 768px | Tablets |
lg: | 1024px | Laptops |
xl: | 1280px | Desktops |
2xl: | 1536px | Large screens |
<button className="
px-4 sm:px-6 {/* Smaller padding on mobile */}
py-2 {/* Consistent vertical padding */}
text-xs sm:text-sm {/* Smaller text on mobile */}
bg-institucional-dorado
text-white
rounded-sm
">
Acceso Estudiantes / Staff
</button>
Flexbox Centering
<div className="flex items-center justify-center">
{/* Centered content */}
</div>
Full-Height Layouts
<div className="min-h-screen flex flex-col">
<header>...</header>
<main className="flex-grow">...</main>
<footer>...</footer>
</div>
min-h-screen and flex-grow to ensure footer stays at bottom.Absolute Positioning
<section className="relative">
<div className="absolute inset-0">
{/* Background layer */}
</div>
<div className="relative z-10">
{/* Content layer */}
</div>
</section>
Fixed Positioning
<div className="fixed bottom-6 right-6 z-50">
{/* Floating chat button */}
</div>
{/* Page title - large, bold, gold */}
<h1 className="text-2xl sm:text-3xl font-bold text-institucional-dorado tracking-wide">
ESBO
</h1>
{/* Hero heading - extra large, white, with shadow */}
<h2 className="text-white text-3xl md:text-4xl font-bold tracking-widest mb-2 drop-shadow-md">
SINTEGRA:
</h2>
{/* Hero subheading - serif font for elegance */}
<h3 className="text-white text-4xl md:text-5xl font-serif mb-10 drop-shadow-md">
Salud Mental y Formación de Excelencia
</h3>
{/* Section heading - dark backgrounds */}
<h4 className="text-[#d4af37] font-bold text-xl mb-2 tracking-wide">
CORREOS Y TELÉFONO
</h4>
tracking-wide and tracking-widest for letter spacing, and drop-shadow-md for text readability over images.<button className="
bg-institucional-dorado
text-white
hover:bg-[#a3823a] /* Darker gold on hover */
transition-colors
shadow-lg
px-8 py-3
rounded
font-bold
">
Agenda tu Cita
</button>
{/* Sections */}
py-12 /* Vertical section padding */
py-16 /* Larger section padding */
px-8 /* Horizontal section padding */
{/* Components */}
gap-2 /* Small gaps between items */
gap-4 /* Medium gaps */
gap-6 /* Larger gaps for buttons */
gap-8 /* Section element spacing */
{/* Text */}
mb-2 /* Small margin below */
mb-4 /* Icon margin */
mb-10 /* Large margin for hero text */
{/* Button hover with color transition */}
<button className="hover:bg-[#a3823a] transition-colors">
{/* Link hover with underline */}
<button className="hover:underline">
{/* Link hover with color change */}
<a className="hover:text-[#d4af37] transition-colors">
{/* Chat button hover */}
<div className="hover:bg-yellow-500 transition-colors cursor-pointer">
transition-colors for smooth state changes. This creates a polished, professional feel.z-0 /* Background layers (images, overlays) */
z-10 /* Main content sections */
z-20 /* Header and footer */
z-50 /* Floating chat button (always on top) */
{/* Responsive logo */}
<img
src={logo}
alt="Logo ESBO"
className="w-16 sm:w-20 h-auto"
/>
{/* Background images with cover */}
<div className="w-1/2 h-full bg-cover bg-center"
style={{ backgroundImage: "url(...)" }}>
</div>
sm:, md: prefixes for larger screenstailwind.config.js for easy maintenance