Skip to content

v0.12.54

Choose a tag to compare

@edadma edadma released this 20 Dec 22:14
· 117 commits to main since this release

What's New

useTheme Hook

  • New hook that detects current theme and provides computed colors from DaisyUI CSS variables
  • Returns { isDark, colors } with hex values for background, foreground, primary, primaryContent
  • Useful for canvas-based components that can't use CSS variables directly
  • QRCode component now uses theme colors automatically

Hooks Documentation

  • Added dedicated documentation section for all 11 hooks
  • Each hook has its own page with examples and API reference

Components Overview Page

  • New /components page showing all 80+ components organized by category
  • Includes search functionality
  • Accessible from sidebar under Components → Overview

Other Changes

  • Sidebar sections now collapse by default (except Start Here, Actions, Hooks)
  • Updated responsive.mdx to link to useBreakpoint hook docs
  • Added avatar images for docs