daisyui-colors

Enforces semantic color usage rules and custom theme configuration for daisyUI 5.

1|Updated Jun 25, 2026
One-click install
npx skills add https://github.com/IgorAIvanov/altera03 --skill daisyui-colors-igoraivanov
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: daisyui-colors
Source: https://github.com/IgorAIvanov/altera03/tree/main/skills/src/daisyui/colors
Command: npx skills add https://github.com/IgorAIvanov/altera03 --skill daisyui-colors-igoraivanov

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers using daisyUI 5 with Tailwind CSS often mix raw Tailwind color names with daisyUI semantic colors, breaking theme switching and causing unreadable contrast in dark mode. This Skill provides the mandatory color rules and theme structure to keep UIs consistent across themes. ## Core Features & Use Cases - Semantic Color Reference: Lists all daisyUI 5 color names (primary, secondary, accent, neutral, base, info, success, warning, error) and their content counterparts. - Color Usage Rules: Enforces theme-aware styling, such as avoiding dark: variants and fixed Tailwind colors like text-gray-800 that break on dark themes. - Custom Theme Generation: Provides the complete CSS variable structure for building a custom daisyUI theme with OKLCH colors, radius, size, border, depth, and noise settings. - Use Case: When building a page, apply bg-base-100 with text-base-content for surfaces and reserve primary for the single most important element, so the design adapts automatically to any theme. ## Quick Start Apply the daisyUI color rules to style my page with semantic color classes and generate a custom theme CSS block.

Frequently Asked Questions about daisyui-colors

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use daisyUI color names in Tailwind CSS classes?

daisyUI color names work like any Tailwind color in utility classes, such as bg-primary or text-secondary-content. They reference CSS variables, so the actual color changes automatically based on the active theme.

How do I create a custom daisyUI 5 theme with custom colors?

Define a @plugin "daisyui/theme" block in your CSS with a theme name and all required CSS variables like --color-primary and --color-base-100 in OKLCH or hex format. Set default: true to make it the default theme.

Should I use Tailwind colors like text-gray-800 with daisyUI?

No, fixed Tailwind colors stay the same across all themes, so text-gray-800 on bg-base-100 becomes unreadable in dark themes. Use daisyUI semantic pairs like bg-base-100 with text-base-content instead.

Do I need dark: variants with daisyUI colors?

No, daisyUI color names use CSS variables that change value based on the active theme. Adding dark: variants is unnecessary and redundant for daisyUI semantic colors.

When is it acceptable to use fixed Tailwind colors in daisyUI?

Fixed Tailwind colors are acceptable only when content must stay independent of the theme, such as an SVG icon or chart that requires a specific color regardless of brand or theme colors.