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

@larasell-dev/ui

v0.2.7

Published

Bare React and Base UI design system for Larasell admin UI.

Readme

@larasell-dev/ui

Bare design system for a customisable Larasell admin. It is React and Base UI, styled with Tailwind.

This package is one piece of a larger project and does not build its own CSS:

  • Admin panel — the Tailwind entry point. It imports the design tokens from this package, and it alone decides what to scan and purge: its own code, this package, and any extensions. It builds the final admin dashboards.
  • Extensions — third-party packages that import components from this package. They never import styling; the admin panel already ships it, and its Tailwind build picks up the classes an extension uses.
  • This package — ships compiled JavaScript and a token stylesheet. It scans no files and emits no Tailwind output.

What's included

  • dist/index.mjs, the compiled components (Button, Error, Field, Icon, Inline, Input, Label, Spacer, Stack)
  • src/styles.css, the stylesheet consumers import; it pulls in the token file and points Tailwind's scanner at dist
  • src/theme.css, the design tokens: the dark variant, the website theme (fonts, primary palette), and the focus-ring utility

Consuming

The admin panel's Tailwind stylesheet imports Tailwind and the design system's stylesheet — nothing else:

@import 'tailwindcss';
@import '@larasell-dev/ui/styles.css';

The design system owns all styling. Its stylesheet brings in the design tokens (src/theme.css) and points Tailwind's scanner at the package's compiled output (@source '../dist', resolved inside the installed package) so every class the components use is generated. The admin panel configures no styles and adds no @source of its own for this package.

Extensions only import the components:

import { Button } from '@larasell-dev/ui';

No CSS import, no Tailwind setup — the classes they end up with are compiled by whichever admin panel runs them. An extension that ships its own Tailwind classes follows the same pattern as this package: a small stylesheet with an @source pointing at its compiled output, which the admin panel imports alongside this one.

Icons

Icon renders a Remix Icon. Import the icons from @larasell-dev/ui/icons; the app needs no extra packages or build setup:

import { Icon } from '@larasell-dev/ui';
import { ErrorWarningLine } from '@larasell-dev/ui/icons';

<Icon icon={ErrorWarningLine} label="Error" />;

Every Remix icon is available under its PascalCase name: error-warning-line becomes ErrorWarningLine. Names can't start with a digit, so 24-hours-fill and 4k-line become TwentyFourHoursFill and FourKLine. Each icon is a separate export, so the app's bundler keeps only the icons it imports.

The icons are generated from the pinned @iconify-icons/ri package into src/icons.ts, so each release of the design system pins the icon set. After bumping @iconify-icons/ri, run npm run generate-icons.

Lint rules

@larasell-dev/ui/eslint is an Oxlint JS plugin that enforces the design system's rules on class names. Each rule lives in its own directory under src/eslint/rules, next to its tests. Extend its recommended config to enable all of them, in oxlint.config.ts:

import { recommended } from '@larasell-dev/ui/eslint';
import { defineConfig } from 'oxlint';

export default defineConfig({
  extends: [recommended],
});

Or in the lint block of a Vite+ vite.config.ts: lint: { extends: [recommended] }. A .oxlintrc.json can't extend a package; list the plugin and its rules (larasell/no-margin, larasell/no-off-scale-font-size, larasell/prefer-cn, larasell/shadow-tokens, larasell/plane-tokens) yourself there.

Scripts

vp install
vp check   # format, lint, and types
vp test
vp pack
npm run storybook

vp comes from Vite+ (vite-plus v1). Without a global install, run the same commands through npx vp.

Storybook renders the components standalone, so it keeps its own full Tailwind entry (.storybook/tailwind.css) that imports src/theme.css and scans src — mirroring what the admin panel does in production.