CSS moderno: Grid, Variables y Modo Oscuro sin librerías
Hoy en día CSS nativo resuelve tareas que antes requerían frameworks completos. Con CSS Grid y Custom Properties puedes crear interfaces limpias y mantenibles en pocos kilobytes.
:root {
--bg: #f8fafc;
--surface: #ffffff;
--text: #0f172a;
}
Cambiar entre tema claro y oscuro es tan sencillo como alternar un atributo data-theme="dark" en la etiqueta <html>.