Installation

Get started with @duskmoon-dev/core by installing the library in your project

Installation

Get started with @duskmoon-dev/core in just a few steps.

Prerequisites

Before installing @duskmoon-dev/core, ensure you have:

  • Node.js 18+ or Bun 1.0+
  • Tailwind CSS 4.0+
bun add @duskmoon-dev/core

Install with npm

npm install @duskmoon-dev/core

Install with pnpm

pnpm add @duskmoon-dev/core

Configure Tailwind CSS

Add @duskmoon-dev/core to your Tailwind configuration:

In your globals.css or main CSS file:

@import "tailwindcss";
@import "@duskmoon-dev/core";

This imports all components, themes, and color tokens as pure CSS.

Option B: Tailwind @plugin Directive

@import "tailwindcss";
@plugin "@duskmoon-dev/core/plugin";

The @plugin approach registers Material Design 3 color tokens into Tailwind’s theme system, enabling utility classes like bg-primary, text-on-surface, etc.

What’s Next?