New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dandy-ui

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dandy-ui

Lightweight UI component library based on tailwindcss v4, optimized for edge and serverless environments

latest
Source
npmnpm
Version
4.0.0
Version published
Weekly downloads
154
1084.62%
Maintainers
1
Weekly downloads
 
Created
Source

Dandy UI

A lightweight, edge-first React UI library built on TailwindCSS v4.
Optimized for Cloudflare Pages, serverless, and SSR environments.

npm license

Features

  • 🎨 TailwindCSS v4 - Latest Tailwind with CSS-first configuration
  • 🌙 Dark Mode - Built-in dark mode support with semantic tokens
  • 📱 Mobile-First - Responsive, touch-friendly design
  • 🔧 TypeScript - Full TypeScript support with strict type checking
  • 🚀 Next.js Ready - Compatible with Next.js 13+ App Router
  • 🌳 Tree Shakable - Only import what you need
  • ♿ Accessible - WCAG 2.1 AA compliant components
  • 🎯 Semantic Tokens - CSS custom properties for consistent theming

Quick Start

npm install dandy-ui
@import "tailwindcss";
@import "dandy-ui/theme.css";
@import "dandy-ui/base.css";
import { ThemeProvider } from "dandy-ui";

<ThemeProvider>
  <App />
</ThemeProvider>;

For SSR, add <ThemeScript /> in <head> to prevent flash of unstyled content.

Entry Points

EntryPurposeExample
dandy-uiCore componentsimport { Button, Dialog } from "dandy-ui"
dandy-ui/extraHeavy components (optional deps)import { Drawer, DatePicker } from "dandy-ui/extra"
dandy-ui/markdownMarkdown rendererimport { MarkdownViewer } from "dandy-ui/markdown"
dandy-ui/utilsPure utility functionsimport { formatDate, debounce } from "dandy-ui/utils"

Components

LayoutContainer · Flex · Grid · Paper · Section · Table · ScrollShadow

TypographyText · Heading · Hint · Label · Divider · Code · Kbd

FormsButton · IconButton · Input · TextArea · NumberInput · Select · CheckBox · Radio · Switch · Slider · FileInput · Rating · Icon

FeedbackAlert · Badge · Chips · Spinner · Skeleton · ProgressBar · CircularProgress

OverlaysDialog · Popover · InfoTip · SnackbarProvider

CompoundAccordion

ExtraDrawer · DatePicker · DateRangePicker · MultiDatePicker · MultiSelect · InputOTP · SidebarLayout · SideBar

MarkdownMarkdownViewer

Peer Dependencies

Required:

npm install react react-dom tailwindcss @radix-ui/react-dialog @radix-ui/react-popover @radix-ui/react-select @radix-ui/react-tooltip

Optional (only if using dandy-ui/extra or dandy-ui/markdown):

PackageComponent
vaulDrawer
react-day-pickerDatePicker, DateRangePicker, MultiDatePicker
input-otpInputOTP
react-markdown rehype-highlight rehype-raw rehype-sanitize remark-gfmMarkdownViewer

Theme System

CSS custom properties defined in theme.css. Never hardcode colors.

Tokens: primary · secondary · accent · background · foreground · muted · border · card · popover · success · warning · error · info
Each has a -foreground variant. Dark mode activates via the dark class.

<div className="bg-primary text-primary-foreground" />

License

MIT © Nidhal Bettaibi

Keywords

react

FAQs

Package last updated on 27 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts