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

@jarviisha/davinci-react-ui

v0.8.0

Published

React UI components styled with Davinci CSS tokens (no Tailwind required).

Readme

@jarviisha/davinci-react-ui

Headless-friendly React UI components styled with Davinci CSS tokens. No Tailwind required — the package ships its own stylesheet that only depends on the Davinci CSS variables.

Part of the Davinci design system. See DESIGN.md for variant/tone decision rules and the canonical layout patterns.

Install

pnpm add @jarviisha/davinci-react-ui @jarviisha/davinci-tokens

Peer dependencies: react ^18.3.1 || ^19.0.0, react-dom ^18.3.1 || ^19.0.0, @jarviisha/davinci-tokens >=0.1.0 <1.0.0.

Usage

Import the token CSS and the component CSS once in your app entry:

import "@jarviisha/davinci-tokens/css/variables.css";
import "@jarviisha/davinci-tokens/css/light.css";
import "@jarviisha/davinci-tokens/css/dark.css";
import "@jarviisha/davinci-react-ui/styles.css";

Then use components directly:

import { Badge, Button, Card, CardContent, CardHeader, CardTitle, Stack } from "@jarviisha/davinci-react-ui";

export function Example() {
  return (
    <Card>
      <CardHeader>
        <CardTitle>Plan</CardTitle>
      </CardHeader>
      <CardContent>
        <Stack gap="200">
          <Badge variant="success">Active</Badge>
          <Button>Save changes</Button>
        </Stack>
      </CardContent>
    </Card>
  );
}

Components

  • LayoutAppShell, AppShellTopBar, AppShellSidebar, AppShellHeader, AppShellMain, AppShellAside, DetailLayout, DetailLayoutMain, DetailLayoutAside, Container, Stack, Inline
  • ActionsButton, IconButton (variants: solid / outline / ghost / soft; tones: primary / neutral / danger; sizes: sm / md / lg)
  • NavigationBreadcrumbs, BreadcrumbsList, BreadcrumbsItem, BreadcrumbsLink, BreadcrumbsCurrent, Pagination, Nav, NavGroup, NavItem, Tabs, TabsList, TabsTrigger, TabsContent
  • FormsFormField, Label, Input, NumberInput, SearchInput, Select, Combobox, DatePicker (calendar popover with month/year selects, optional showTime for hour / minute / AM–PM), Textarea, Checkbox, RadioGroup, Radio, Switch
  • SurfacesCard (variants: default / outlined / filled / flat / floating; outlineWeight: subtle / default / bold; tones: info / success / warning / danger; modifiers: interactive, selected), CardHeader, CardTitle, CardDescription, CardContent, CardFooter
  • Data displayAvatar, EmptyState, Skeleton, Table, TableContainer, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption
  • StatusAlert, Badge (variants: neutral / primary / success / warning / danger / discovery)
  • OverlaysDialog, Drawer, DropdownMenu, Popover, Tooltip, ToastProvider, useToast
  • StructureDivider

All components forward refs and spread extra props onto the underlying DOM element. Add your own className to extend styles.

Scrollbar

A thin, hover-reveal scrollbar style is shipped as a utility class. The thumb is transparent at rest and fades in when the container is hovered or receives focus, with :hover and :active states for direct thumb interaction. Colors and size are driven by the --davinci-component-scrollbar-* tokens, so they follow light / dark themes automatically.

Auto-applied (no extra class needed) to internal scroll containers: AppShellSidebar, AppShellMain, AppShellAside, Dialog, Drawer, Combobox listbox, TableContainer.

Opt in elsewhere with davinci-scrollbar:

<div className="davinci-scrollbar" style={{ maxBlockSize: "20rem", overflow: "auto" }}>
  {/* long content */}
</div>

Use the davinci-scrollbar--always modifier if you want the thumb visible at rest instead of only on hover:

<div className="davinci-scrollbar davinci-scrollbar--always">{/* … */}</div>

Override per app by redefining the tokens at any layer:

:root {
  --davinci-component-scrollbar-size: 0.625rem;
  --davinci-component-scrollbar-thumb-background: var(--davinci-semantic-color-border-bold);
}

Firefox can only render scrollbar-width: thin (3-step auto | thin | none), so the size token is honored on Chromium / WebKit and approximated on Firefox.

Overriding styles

Component styles are wrapped in @layer davinci.components, so any unlayered CSS or higher layer you author wins without specificity tricks:

.davinci-button--solid.davinci-button--tone-primary {
  /* Wins automatically — your rules sit outside the davinci layer. */
  letter-spacing: 0.02em;
}

Theming

Components render against the Davinci token CSS variables. Toggle dark mode by setting the dark class on <html>, or pair this package with @jarviisha/davinci-react-theme-provider.

License

MIT