Catalog npm
Back to packageRELEASE DETAILS

0.1.0

npm

@0x-jerry/unocss-preset-daisyui

Daisyui preset for UnoCSS

Published11 May 2025
Direct dependencies15
Transitive dependenciesNot calculated

README

Current package documentation

UnoCSS Preset Daisyui

A UnoCSS preset for daisyui. Due to the implementation, this is 100% compatible with daisyui with some trade-offs.

Install

pnpm i @0x-jerry/unocss-preset-daisyui daisyui -D

Usage

unocss.config.ts

import { defineConfig, presetMini, presetWind4 } from "unocss";
import { presetDaisyui } from "@0x-jerry/unocss-preset-daisyui";

export default defineConfig({
  presets: [
    presetMini(),
    // When use with wind4 preset, you need to disable reset preflight,
    // because preset daisyui already included it.
    presetWind4({
      preflights: {
        reset: false,
      },
    })
    presetDaisyui(),
  ],
});

main.ts

import "uno.css";
import "daisyui/theme/light.css";

Limitations

Due to the implementation of this preset, here has some limitations:

  1. All daisyui classes will only available in global scope.
  2. daisyui/theme/light.css is required, or you can import any theme you want from daisyui/theme.
  3. You can't use @apply with daisyui classes.
  4. daisyui classes is not fully on-demand, so the bundle size may larger than expected.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 15

Native requirements
15 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
unocss
Environment
{
  "local_name": "unocss",
  "alias": false,
  "peer_metadata": null
}
^66.1.1runtime
daisyui
Environment
{
  "local_name": "daisyui",
  "alias": false,
  "peer_metadata": null
}
^5.0.35runtime
css-tree
Environment
{
  "local_name": "css-tree",
  "alias": false,
  "peer_metadata": null
}
^3.1.0runtime
fast-glob
Environment
{
  "local_name": "fast-glob",
  "alias": false,
  "peer_metadata": null
}
^3.3.3runtime
@0x-jerry/utils
Environment
{
  "local_name": "@0x-jerry/utils",
  "alias": false,
  "peer_metadata": null
}
^5.0.0runtime
import-meta-resolve
Environment
{
  "local_name": "import-meta-resolve",
  "alias": false,
  "peer_metadata": null
}
^4.1.0runtime
tsx
Environment
{
  "local_name": "tsx",
  "alias": false,
  "peer_metadata": null
}
^4.19.4development
tsup
Environment
{
  "local_name": "tsup",
  "alias": false,
  "peer_metadata": null
}
^8.4.0development
vitest
Environment
{
  "local_name": "vitest",
  "alias": false,
  "peer_metadata": null
}
^3.1.3development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.8.3development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^22.15.17development
@biomejs/biome
Environment
{
  "local_name": "@biomejs/biome",
  "alias": false,
  "peer_metadata": null
}
^1.9.4development
@types/css-tree
Environment
{
  "local_name": "@types/css-tree",
  "alias": false,
  "peer_metadata": null
}
^2.3.10development
@0x-jerry/x-release
Environment
{
  "local_name": "@0x-jerry/x-release",
  "alias": false,
  "peer_metadata": null
}
^2.4.0development
@vitest/coverage-v8
Environment
{
  "local_name": "@vitest/coverage-v8",
  "alias": false,
  "peer_metadata": null
}
^3.1.3development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "04c4506e920827922e72e01ba7f5d11ed1760d7b",
  "tarball": "https://registry.npmjs.org/@0x-jerry/unocss-preset-daisyui/-/unocss-preset-daisyui-0.1.0.tgz",
  "fileCount": 5,
  "integrity": "sha512-mw+x7AR8RP5LxIeDnFNudOyS1Hx2DyDSP0ehXZ72zXaQ8MuvUqjxCqh8SJFScsXb0LypH5Rs2fg+K5aOBlf7Jw==",
  "signatures": [
    {
      "sig": "MEUCIEWIFrzG4rjVSG+ojQ6zA8p2sU/Bcbi01f+lv3UjUazFAiEAqJ0oHLAGq4NlecXdxq2GeEBaa2zf5TiDi3RvQA+m0s4=",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 5502
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:16 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:804e1f9ff086452d65c077eaf359cdcc2f38df9ef4d49b43a7d52214feee234b

Other collected versions

0.2.319 Oct0.2.216 Oct0.2.118 May0.2.012 May0.1.111 MayView all collected versions →