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

@arkaes/ui

v1.0.2

Published

Framework-agnostic Lit custom elements for the Arkaes design system.

Readme

@arkaes/ui

Framework-agnostic Lit custom elements for the Arkaes design system, built directly from the Arkaes Brand Guideline.

The elements are styled entirely with CSS custom properties from @arkaes/tokens, so they work in any framework (or no framework) and can be rethemed from plain CSS (see Theming & overriding tokens).

See it in action

  • Brand guidelinebrand.arkaes.dev: the visual language these components are built on.
  • Portfolioarkaes.dev: the design system in production.
  • Storybookds.arkaes.dev: every component in isolation.

[!NOTE] Light mode only — by design. As stated in the brand guideline, Arkaes UI is deliberately restricted to a single light theme. This is an intentional expression of the brand's values, not a missing feature: there is no dark mode, and the components are tuned for light surfaces. You can still fully retheme colors, type, and shape.

Install

npm install @arkaes/ui

@arkaes/tokens is a dependency of this package, so it is installed automatically.

Load the design tokens

[!IMPORTANT] The components reference CSS custom properties (var(--ark-*)) for all colors, spacing, and typography. Installing @arkaes/ui makes the tokens available, but you must import the token CSS once in your app for components to render correctly — otherwise the variables are undefined and elements appear unstyled.

// once, at your app entry point
import "@arkaes/tokens/css";

Individual layers are also available: @arkaes/tokens/tokens.css (the variables themselves), @arkaes/tokens/reset.css, and @arkaes/tokens/typography.css.

Theming & overriding tokens

Every value in every component resolves from a --ark-* CSS custom property — nothing is hardcoded. Custom properties inherit through the shadow DOM, so you can retheme the entire system with plain CSS: no build step, no Sass, no ::part overrides needed.

[!IMPORTANT] Declare your overrides after @arkaes/tokens/css is loaded (or on a more specific selector). The token defaults live on :root, so a later :root block wins the cascade.

Global overrides

Re-declare the semantic tokens on :root to retheme everything at once:

/* your-theme.css — loaded after @arkaes/tokens/css */
:root {
  /* brand / accent color */
  --ark-color-accent: #2563eb;
  --ark-color-accent-soft: #dbeafe;
  --ark-color-accent-strong: #1e40af;

  /* supporting color */
  --ark-color-secondary: #0f766e;

  /* surfaces & text */
  --ark-color-bg: #ffffff;
  --ark-color-text: #0b1020;

  /* shape & type */
  --ark-radius-md: 0.5rem;
  --ark-font-sans: "Inter", system-ui, sans-serif;
}

Common starting points:

| Intent | Tokens to set | | --- | --- | | Brand / accent color | --ark-color-accent, --ark-color-accent-soft, --ark-color-accent-strong | | Supporting color | --ark-color-secondary, --ark-color-secondary-soft | | Background / surfaces | --ark-color-bg, --ark-color-surface, --ark-color-surface-soft | | Text | --ark-color-text, --ark-color-text-muted, --ark-color-text-subtle | | Corner radius | --ark-radius-xs--ark-radius-2xl | | Typography | --ark-font-sans, --ark-font-display, --ark-text-*, --ark-weight-* |

See @arkaes/tokens for the full token list.

Scoped overrides

Because the properties inherit, set tokens on any ancestor to retheme just that subtree:

<section style="--ark-color-accent: #b91c1c;">
  <!-- only ark-* elements inside here use the red accent -->
  <ark-button variant="secondary">Delete</ark-button>
</section>

Per-component hooks

A few components expose their own override variables for finer control. Each falls back to a global token when unset, so you only set them when you want that component to differ:

| Variable | Component | Falls back to | | --- | --- | --- | | --ark-button-primary-bg | ark-button (primary) | --ark-color-text | | --ark-button-primary-bg-hover | ark-button (primary hover) | --ark-color-neutral-800 | | --ark-dialog-overlay-bg | ark-dialog overlay scrim | dim of --ark-color-neutral-900 | | --ark-navigation-bg | ark-navigation bar | --ark-color-bg |

ark-button {
  --ark-button-primary-bg: #16a34a;
  --ark-button-primary-bg-hover: #15803d;
}

Register elements

Importing @arkaes/ui itself has no side effects — it only exports classes, enums, and types (use it for typing and for framework wrappers). To actually upgrade the custom elements in the browser, import one of the registration entrypoints:

// register everything
import "@arkaes/ui/register";

// or register a single element (tree-shake-friendly)
import "@arkaes/ui/register/ark-button";
import "@arkaes/ui/register/ark-card";

Then use the tags in markup:

<ark-button variant="primary">Get in touch</ark-button>

React

First-class React bindings (built with @lit/react) are available from @arkaes/ui/react. React 18+ is required (it's an optional peer dependency). Each wrapper registers its own element, so you do not need any @arkaes/ui/register/* import — but you still load the token CSS once.

import { ArkButton, ArkInput } from "@arkaes/ui/react";
import "@arkaes/tokens/css";

export function Demo() {
  return (
    <form>
      <ArkInput onChange={(e) => console.log((e.target as HTMLInputElement).value)} />
      <ArkButton variant="primary">Submit</ArkButton>
    </form>
  );
}

Reactive properties become typed props, and custom events are exposed as on* props:

| Component | Event prop → DOM event | | --- | --- | | ArkInput, ArkCheckbox, ArkToggle, ArkRadioGroup | onInputinput, onChangechange | | ArkRadio | onInput, onChange, onSelectark-radio-select | | ArkDropdown | onChangechange | | ArkAccordionItem | onToggleark-accordion:toggle | | ArkDialogRoot | onOpenark-dialog:open, onCloseark-dialog:close | | ArkNavigationMobileToggle | onMenuToggleark-nav:menu-toggle | | ArkToast | onDismissark-toast:dismiss |

The wrappers carry the "use client" directive, so they work in React Server Component setups (e.g. the Next.js app router). Single-family subpaths like @arkaes/ui/react/ark-dialog are also available.

Slots

Named slots work exactly as in HTML — children are projected into the element's light DOM, so you target a slot with the standard slot="…" attribute on a child. The slot prop is forwarded even to nested wrappers (e.g. <ArkButton slot="actions">).

import { ArkHero, ArkButton } from "@arkaes/ui/react";

<ArkHero>
  <span slot="eyebrow">Featured</span>
  <h1 slot="title">Architecture meets aesthetics</h1>
  <p slot="subtitle">Frontend engineering for polished interfaces.</p>
  <ArkButton slot="actions" variant="primary">Get in touch</ArkButton>
  <img slot="visual" src="/hero.png" alt="" />
</ArkHero>;

| Component | Named slots (unslotted children fall into the default slot) | | --- | --- | | ArkHero | eyebrow, title, subtitle, actions, visual | | ArkPageHeader | eyebrow, title, lead | | ArkProjectHeader | visual, title, tag | | ArkCaseStudyCard | media, tag | | ArkAccordionItem | trigger (rich trigger content; default children = panel body) |

Notes:

  • Put slot="…" on a real element — React fragments (<>…</>) and bare text strings cannot carry it. Wrap text in a <span slot="…">.
  • ArkPageHeader and ArkProjectHeader read their slotted content once on mount. If you need to toggle a slotted title/lead at runtime, remount with a key rather than conditionally rendering the slotted child in place. (ArkCaseStudyCard listens for slotchange, so its media slot updates dynamically.)

Entrypoints

| Import | Side effects | Use for | | --- | --- | --- | | @arkaes/ui | none | classes, enums (ChipVariant, BadgeVariant, …), types | | @arkaes/ui/register | registers all elements | apps that want everything available | | @arkaes/ui/register/<name> | registers one element | selective, tree-shakeable registration | | @arkaes/ui/primitives, /components, /patterns (and /* subpaths) | none | direct, typed access to a single class | | @arkaes/ui/react (and /react/*) | self-registers | React components for every element |

Elements

Primitives: ark-badge, ark-brand-logo, ark-button, ark-checkbox, ark-chip, ark-dropdown, ark-empty, ark-input, ark-radio, ark-radio-group, ark-spinner, ark-toggle

Components: ark-accordion, ark-card (+ subparts), ark-cursor, ark-dialog (+ subparts), ark-hero, ark-navigation (+ subparts), ark-toast

Patterns: ark-case-study-card, ark-page-header, ark-project-header

TypeScript

Each element ships its own HTMLElementTagNameMap declaration, so document.querySelector and the single-element register subpaths are fully typed.

License

MIT