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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@roadlittledawn/docs-design-system-react

v0.12.0

Published

React components for documentation design system

Readme

@roadlittledawn/docs-design-system-react

npm version GitHub

React components for documentation content and MDX-driven sites.

Installation

npm install @roadlittledawn/docs-design-system-react

Usage

import {
  Callout,
  CodeBlock,
  Card,
} from "@roadlittledawn/docs-design-system-react";

Importing Styles

Import the component styles in your app:

import "@roadlittledawn/docs-design-system-react/styles.css";

Components

Full component documentation with live examples, usage guidelines, and API documentation is available in Storybook:

View Component Documentation →

Next.js / React Server Components

Interactive components (e.g., Collapser, CollapserGroup, CodeBlock, Tabs, Popover, etc) are pre-marked with 'use client', so they work in Next.js App Router without any extra setup. Stateless components (e.g., Button, Callout, Card, CardGrid, Heading, Link, List, etc) have no directive and are fully usable as Server Components.

Dark Mode

The package includes built-in dark mode support. All components use transparent backgrounds (unless background color specified via props) in dark mode so they don't clash with your site's own dark theme.

Auto (zero-config)

Dark mode follows OS preference automatically when you import styles.css — no extra setup needed.

import "@roadlittledawn/docs-design-system-react/styles.css";
// Components automatically adapt to OS dark/light preference

Explicit toggle

Add class="dds-dark" or data-dds-theme="dark" to any ancestor element:

<html class="dds-dark">
  <!-- all components render in dark mode -->
</html>
<html data-dds-theme="dark">
  <!-- same effect -->
</html>

Force light mode

Override OS dark preference by adding class="dds-light" or data-dds-theme="light":

<html class="dds-light">
  <!-- components stay light even if OS prefers dark -->
</html>

Component-level dark islands

Apply dark mode to a specific section:

<div class="dds-dark">
  <!-- only components inside this div use dark mode -->
</div>

Hooks

useKeyPress

Listen for keyboard events.

const isPressed = useKeyPress("Escape");

Full hook documentation is available in Storybook.

AI / LLM Integration

This package ships with AI-friendly docs so coding assistants can understand the component API without browser access.

USAGE.md (included in npm package)

A complete component reference with props tables and usage examples. Point your AI tool at it with one line:

# CLAUDE.md or equivalent
Component API docs: node_modules/@roadlittledawn/docs-design-system-react/USAGE.md

Or reference the raw file on GitHub in any AI context file.

/llms.txt (Storybook site)

The Storybook site serves a machine-readable component reference at /llms.txt per the llmstxt.org convention. Agents can fetch the full API reference from a single URL.

TypeScript types with JSDoc

All prop interfaces are exported and annotated with JSDoc so AI tools reading .d.ts files from node_modules get full prop descriptions and types.

Development

# Install dependencies
npm install

# Build the package
npm run build

# Watch mode for development
npm run dev