DaisyUI: Tema Personalizado en NuxtJs

Guía para integrar DaisyUI en NuxtJS con Tailwind: instalación, temas personalizados y buenas prácticas de maquetación. Soluciones a medida con Q2BSTUDIO

16 sept 2025 • 3 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

DaisyUI suele ser mi elección porque sus componentes basados en CSS aceleran el desarrollo con alta capacidad de personalización y facilidad de uso. Al aplicar DaisyUI en un proyecto NuxtJs puede reducir mucho el tiempo de maquetado, aunque en la configuración inicial es común encontrar pequeños ajustes que conviene resolver de forma ordenada.

Instalación básica: ejecuta el comando npm install tailwindcss@latest @tailwindcss/vite@latest daisyui@latest para añadir Tailwind y DaisyUI a tu proyecto Nuxt. A continuación edita la configuración de Nuxt para integrar el plugin de Tailwind en Vite y declarar tu hoja de estilos global, por ejemplo importando el plugin tailwindcss desde @tailwindcss/vite y registrando en defineNuxtConfig la sección vite con plugins que incluya tailwindcss() y el array css con ~/assets/app.css.

En la hoja assets/app.css importa Tailwind y DaisyUI y añade la configuración de tema. Como guía rápida puedes usar las directivas @import tailwindcss y @plugin daisyui al principio del archivo. Para personalizar un tema abre el generador de temas en la web de DaisyUI y copia las propiedades CSS que necesites; pega esos estilos en app.css dentro de un bloque de tema. Ejemplo simplificado de bloque de tema para ilustrar la estructura:

@plugin daisyui/theme { name : winter; default : true; prefersdark : false; color-scheme : light; --color-base-100 : oklch(97% 0.014 254.604); --color-base-200 : oklch(93% 0.032 255.585); --color-base-300 : oklch(88% 0.059 254.128); --color-base-content : oklch(37% 0.146 265.522); --color-primary : oklch(0% 0 0); --color-primary-content : oklch(100% 0 0); --color-secondary : oklch(44% 0.017 285.786); --color-secondary-content : oklch(98% 0 0); --color-accent : oklch(59% 0.145 163.225); --color-accent-content : oklch(97% 0.021 166.113); --color-neutral : oklch(54% 0.245 262.881); --color-neutral-content : oklch(97% 0.014 254.604); --color-info : oklch(78% 0.154 211.53); --color-info-content : oklch(30% 0.056 229.695); --color-success : oklch(79% 0.209 151.711); --color-success-content : oklch(26% 0.065 152.934); --color-warning : oklch(85% 0.199 91.936); --color-warning-content : oklch(28% 0.066 53.813); --color-error : oklch(71% 0.194 13.428); --color-error-content : oklch(27% 0.105 12.094); --radius-selector : 2rem; --radius-field : 0.5rem; --radius-box : 0.5rem; --size-selector : 0.25rem; --size-field : 0.21875rem; --border : 1px; --depth : 1; --noise : 1; }

Si después de añadir el tema no ves cambios en la interfaz, añade el atributo data-theme en el elemento body por ejemplo ... para forzar el uso del tema denominado winter en el ejemplo anterior. También revisa la caché del navegador y la compilación de Vite si las variables CSS no se aplican de inmediato.

Consejos prácticos: usa el generador de temas de DaisyUI para obtener valores coherentes, evita nombres de variables conflictivos y prueba los colores en entornos claros y oscuros. Para proyectos grandes conviene centralizar los temas en un archivo CSS que puedas versionar y reutilizar entre aplicaciones.

En Q2BSTUDIO somos especialistas en desarrollo de software y aplicaciones a medida y podemos ayudarte a integrar interfaces modernas como DaisyUI en arquitecturas robustas. Ofrecemos servicios de software a medida y desarrollo de aplicaciones multiplataforma que incluyen prácticas de ciberseguridad y pruebas de pentesting para proteger tu producto. Si necesitas una solución completa para crear una aplicación a medida y optimizar su diseño puedes ver nuestro servicio de desarrollo de aplicaciones y software a medida y si tu proyecto requiere capacidades avanzadas de datos y automatización contamos con experiencia en inteligencia artificial aplicable a empresas y agentes IA, descubre nuestras propuestas de inteligencia artificial para empresas.

Además integramos servicios cloud aws y azure, soluciones de inteligencia de negocio y power bi, y automatización de procesos para acelerar la entrega de valor. Palabras clave para posicionamiento que trabajamos en cada proyecto incluyen aplicaciones a medida, software a medida, inteligencia artificial, ciberseguridad, servicios cloud aws y azure, servicios inteligencia de negocio, ia para empresas, agentes IA y power bi.

Si quieres que adaptemos un tema personalizado de DaisyUI a tu proyecto NuxtJs o necesitas un desarrollo a medida con enfoque en seguridad y datos, en Q2BSTUDIO estamos listos para ayudarte a llevar tu producto al siguiente nivel.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat