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

@davaux/ui

v0.9.0

Published

Davaux UI component library

Readme

@davaux/ui

UI component library for Davaux. Server-rendered, zero client JS by default, theme-aware via CSS custom properties.

Installation

npm install @davaux/ui

Setup

Import the stylesheet in your layout and set data-dv-color-scheme on the <html> element. Davaux bundles and serves the CSS automatically.

import '@davaux/ui/styles.css'

export default defineLayout(({ children, ctx }) => (
  <html lang="en" data-dv-color-scheme="light">
    <head>
      <title>{ctx.head.title}</title>
      {ctx.head.stylesheets?.map((href) => (
        <link rel="stylesheet" href={href} />
      ))}
    </head>
    <body>
      {children}
      {ctx.head.scripts?.map((src) => (
        <script type="module" src={src} />
      ))}
    </body>
  </html>
))

For dark mode support, call uiScript() in <head> to inject a theme-detection script that runs before first paint, preventing a flash of the wrong theme:

import { uiScripts } from '@davaux/ui'

// In your layout <head>:
{uiScripts()}

data-dv-color-scheme accepts "light" or "dark". Place it on <html> so it applies to the entire document including scrollbars and background.

Usage

import { Button, Group, Text, Title } from '@davaux/ui'

export default definePage(() => (
  <div>
    <Title order={2}>Welcome</Title>
    <Text c="dimmed">Get started below.</Text>
    <Group mt="md">
      <Button variant="filled" color="blue">Primary</Button>
      <Button variant="outline">Secondary</Button>
    </Group>
  </div>
))

Components

Components marked require client-side JavaScript — register uiPlugin() to enable them (see Plugin).

LayoutAppShell, AspectRatio, BackgroundImage, Box, Center, Container, Flex, Grid, GridCol, Group, SimpleGrid, Space, Stack

TypographyAnchor, Blockquote, Code, Highlight, Kbd, List, ListItem, Mark, NumberFormatter, RelativeTime, Text, Title

Buttons & ActionsActionIcon, Button, ButtonGroup, ButtonGroupSection, CloseButton, CopyButton†, UnstyledButton

Data displayAccordion, Alert, Avatar, Badge, Card, CardSection, DataTable†, DataView, Divider, Image, Indicator, Overlay, Paper, Pill, Progress, RingProgress, Skeleton, Table, TableCaption, TableTbody, TableTd, TableTfoot, TableTh, TableThead, TableTr, ThemeIcon, Timeline

NavigationBreadcrumbs, NavLink, NavMenu, Pagination, Stepper, Tabs

FormsCheckbox, CheckboxGroup, Combobox†, DateInput†, DatePicker†, Fieldset, FileInput, MultiSelect†, NativeSelect, NumberInput, PasswordInput†, PinInput†, Radio, RadioGroup, RangeSlider†, Rating, SegmentedControl, Select†, Slider†, Switch, TagsInput†, Textarea, TextInput

FeedbackLoader, Notification†, Spotlight†, Toast

OverlaysDrawer†, Menu†, Modal†, Tooltip, Transition

DisclosureBurger, Collapse, ScrollArea, Spoiler

ThemingColorPicker†, ColorSchemePicker†, ColorSwatch, ThemeToggle

UtilitiesVisuallyHidden

Theming

Pass a theme to UiProvider to customize CSS variables at runtime:

<UiProvider theme={{ primaryColor: '#4f46e5', fontFamily: 'Inter, sans-serif' }}>
  {children}
</UiProvider>

Color scheme

To set the color scheme on the <html> element directly instead of using a UiProvider wrapper, use uiAttrs:

import { uiAttrs } from '@davaux/ui'

// In your layout:
<html {uiAttrs('dark')}>...</html>
// Renders: <html data-dv-color-scheme="dark">

uiAttrs(colorScheme?) accepts 'light' (default), 'dark', or 'auto' and returns the attribute string to embed.

Plugin

To enable interactive components (those marked above), register the UI plugin in your Davaux config:

import { uiPlugin } from '@davaux/ui/plugin'

export default defineConfig({
  plugins: [uiPlugin()],
})

Documentation

davaux.codeberg.page/docs/ui


Acknowledgements

@davaux/ui is heavily inspired by Mantine — an excellent React component library by Vitalie Rotaru and contributors. The component API shapes, prop naming conventions, CSS variable architecture, and visual design language are all modelled after Mantine's work.

Mantine is MIT-licensed. @davaux/ui is an independent reimplementation for Davaux's SSR-first, server-rendered model and shares no runtime code with Mantine.