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

@a-little-world/little-world-design-system

v2.12.0

Published

Design system for Little World applications

Downloads

639

Readme

@a-little-world/little-world-design-system

Web components for the Little World Design System.

This system utilises Radix Primitives to ensure components are accessible and customizable.

Installation

npm install @a-little-world/little-world-design-system

Usage

import { Button, Text } from '@a-little-world/little-world-design-system';

export default function App() {
  return (
    <Button variant="primary">
      <Text>Hello World</Text>
    </Button>
  );
}

Fonts

Ensure that you have the required fonts available by including them in your HTML file:

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
  href="https://fonts.googleapis.com/css2?family=Signika+Negative:wght@300;600;700&family=Work+Sans:wght@700&display=swap"
  rel="stylesheet"
/>

Local Development

⚠️ Important: Build from Root

Always build and publish from the root of the monorepo, never from individual package directories.

Correct (from root):

pnpm build:web
pnpm --filter=@a-little-world/little-world-design-system publish

Incorrect (from package directory):

cd packages/web
npm run build
npm publish  # This will break workspace dependencies!

Quick Start

From the root of the monorepo:

# Build the web package
pnpm build:web

# Start Storybook for development
pnpm storybook:web

# Build Storybook for production
pnpm storybook:web:build

Development Workflow

  1. Make changes to web components
  2. Build package - pnpm build:web
  3. Test in Storybook - pnpm storybook:web
  4. Preview changes - View components in Storybook at http://localhost:6006

Manual Setup

If you prefer to work directly in the web package directory:

cd packages/web
npm install
npm run build
npm run storybook

Storybook

The web package includes Storybook for component development and testing:

# From root
pnpm storybook:web

# Or from web package directory
cd packages/web
npm run storybook

Building

# Build the web package
pnpm build:web

# Or from the web package directory
cd packages/web
npm run build

Publishing

Automated Releases (Recommended)

Releases should ideally be automated and handled via merging into the main branch of the repo.

See the Versioning and Releases section in the root README for detailed information about the automated release process using Changesets.

The automated workflow will:

  • Detect version changes in package.json
  • Publish to GitHub Packages registry
  • Create GitHub releases with changelog information
  • Handle all publishing steps automatically

Manual Publishing (Fallback)

If you need to publish manually (not recommended):

# Ensure you're authenticated to GitHub Packages
npm login --registry=https://npm.pkg.github.com

pnpm build:web
pnpm --filter=@a-little-world/little-world-design-system publish

Note: Manual publishing bypasses the automated changelog generation and release management. Use the automated process whenever possible.

Dependencies

This package depends on:

  • @a-little-world/little-world-design-system-core - Core design tokens and utilities
  • react - React framework
  • styled-components - Styling library
  • @radix-ui/react-* - Radix UI primitives for accessibility

Gotcha's! Going from web to native...

In React Native, when you set minWidth on a component, it doesn't automatically expand beyond that width based on content like it would on the web. The flexbox implementation in React Native is more strict about respecting explicit dimensions.

Recommendation: For most cases:

  • Use flex: 1 when you want a component to fill its parent
  • Use max-width to limit the size
  • Otherwise use an explicit width and manage the content

Contributing

Check contribution guidelines.

Versioning and Releases

This package uses Changesets for version management. See the root README for detailed information about the release process.

Note: The manual release process described below is deprecated. Use Changesets instead.

Deprecated Manual Release Process

~~In order to release a new version of this package:~~

  1. ~~Bump the version in the package.json and run npm install to update the package-lock.json in the relevant release branch.~~
  2. ~~Ensure your release branch has been tested, approved and merged into main.~~
  3. ~~Go to the "Draft a release" section of the repo.~~
  4. ~~Create a tag that relates to the new version.~~
  5. ~~Include the release version in the title and give an appropriate description~~
  6. ~~Hit the "publish release" button which will trigger a github action that will publish the new version to npm.~~