npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@kidonng/daisyui

v2.51.3

Published

Redistribution of daisyUI

Downloads

64

Readme

daisyUI

A UnoCSS-compatible redistribution of daisyUI

Note: this package is supposed to be used with unocss-preset-daisy.

Installation

npm installl @kidonng/daisyui

Usage

The easiest way to use this package is to import all the styles:

import '@kidonng/daisyui/index.css'

To only import what you need, always import base first:

import '@kidonng/daisyui/base/index.css'
/* Other imports */

Read on to see how to import components, utilities and themes.

Components

/* Import all components */
import '@kidonng/daisyui/components/index.css'

/* Import all unstyled & styled components (same as above) */
import '@kidonng/daisyui/components/unstyled/index.css'
import '@kidonng/daisyui/components/styled/index.css'

/* Import components one by one */
import '@kidonng/daisyui/components/unstyled/button.css'
/* `styled` components should be imported after `unstyled` components */
import '@kidonng/daisyui/components/styled/button.css'

Utilities

Utility styles should be imported after component styles.

/* Import all utilities */
import '@kidonng/daisyui/utilities/index.css'

/* Import global, unstyled & styled utilties (same as above) */
import '@kidonng/daisyui/utilities/global/index.css'
import '@kidonng/daisyui/utilities/unstyled/index.css'
import '@kidonng/daisyui/utilities/styled/index.css'

/* Import utility one by one */
import '@kidonng/daisyui/utilities/unstyled/button.css'
/* `styled` utilities should be imported after `unstyled` utilities */
import '@kidonng/daisyui/utilities/styled/button.css'

Themes

Note: refer to unocss-preset-daisy documentation for custom themes.

/* Import all themes */
import '@kidonng/daisyui/themes/index.css'

/* Import themes one by one */
import '@kidonng/daisyui/themes/cupcake.css'
import '@kidonng/daisyui/themes/lemonade.css'

/* Import auto theme (uses light or dark theme based on `prefers-color-scheme`) */
import '@kidonng/daisyui/themes/auto.css'

Refer to daisyUI documentation for the list of themes.

To use a theme other than auto, you need to also specify [data-theme] attribute in HTML:

<body data-theme="cupcake"></body>

Single file build

A single file build full.css (and full.min.css) is available if you want to use the runtime version of UnoCSS.