daisyUI base style

daisyUI adds a few base styles to your page.

These are the tiny base styles that daisyUI adds to your page. These styles are less than a kilobyte in total, so you don’t need to worry about the size

NameDescription
resetA lite version of the original Tailwind CSS reset file (preflight), only includes the parts that would affect daisyUI components.
propertiesFor necessary at-rules, like variable type for --radialprogress
rootcolorFor :root and [data-theme] it sets background-color to base-100 and text color to base-content
scrollbarSets scrollbar-color for :root
rootscrolllockSets :root to overflow: hidden when modal or drawer is open
rootscrollgutterAdds a scrollbar-gutter to :root when modal or drawer is open, to avoid layout shift

If you want to opt out of each part, you can do it by setting the exclude config.
For example, to opt out of the scrollbar-gutter and style, scrollbar-color, you can exclude it like this:

@plugin "daisyui" {
  exclude: rootscrollgutter, rootcolor;
}

Or if you’re using CDN, you can disable it from your customized CDN file if you need to.

Source code

daisyUI store

Official daisyUI
Figma Library

Available on daisyUI store

More details