Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 770 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 770 Bytes

daisyui-palette-demo

A very simple React component to demonstrate Daisy UI's color pallet.

What is this for?

The official documentation is great, but having a component in your project that shows you your chosen theme and any overrides you've applied.

"Daisy UI Palette Demo"

Install

npm i daisyui-palette-demo
// Add the library to your tailwind.config's content array
const config = {
    content: [
        "node_modules/daisyui-palette-demo/dist/index.js"
    ]
}
import React from "react";
import PaletteDemo from "daisyui-palette-demo";

export default function Page() {
  return <PaletteDemo />;
}

Demo with theme switcher

https://daisyuipalette.designgui.io