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 🙏

© 2025 – Pkg Stats / Ryan Hefner

aloha-ui-library

v0.1.5

Published

A comprehensive React design system with UI components for social applications

Readme

aloha-ui-library

A comprehensive React design system with UI components, typography system, and color palette for modern applications.

📦 Installation

npm install aloha-ui-library

That's it! No authentication required.

🚀 Quick Start

import { Button, H1, Card, colors, themeVars } from 'aloha-ui-library';
import 'aloha-ui-library/dist/index.css';

function App() {
  return (
    <div>
      <H1 font="nunito" color="theme-primary">
        Welcome to Aloha UI
      </H1>
      <Button variant="default" onClick={() => alert('Hello!')}>
        Click me
      </Button>
    </div>
  );
}

🎨 Features

  • 20+ UI Components: Button, Card, Input, Badge, Avatar, Grid, Image, Popup, Loading, Error, etc.
  • Typography System: H1-H4, P, Subtitle, Lead, Small, Muted with font, color, and weight options
  • Color Palette: 11 predefined colors (olivo, lima, bosque, hueso, piedra, corteza, girasol, coral, aqua, lavanda, eléctrico)
  • Theme System: Adaptive colors for light/dark mode (theme-background, theme-text, theme-highlight, theme-primary)
  • Two Fonts: JetBrains Mono (monospace) and Nunito Sans (sans-serif) with multiple weights (light, medium, bold, black)
  • Dark Mode Support: Theme colors that adapt automatically
  • Full-screen Components: LoadingFullScreen, ErrorFullScreen, FullPage
  • TypeScript: Fully typed for better DX
  • Storybook: Interactive component documentation

💡 Usage Examples

Typography with Colors

import { H1, H2, P } from 'aloha-ui-library';

// Using palette colors
<H1 color="lima">Green Title</H1>
<H2 color="coral">Coral Subtitle</H2>
<P color="olivo">Olive text</P>

// Using theme colors (adapt to light/dark mode)
<H1 color="theme-primary">Adaptive Title</H1>
<P color="theme-text">Adaptive text</P>

Typography with Fonts

import { H1, P } from 'aloha-ui-library';

// JetBrains Mono for technical content
<H1 font="jetbrains" weight="bold">Technical Title</H1>
<P font="jetbrains" weight="light">Code-like content</P>

// Nunito Sans for friendly content
<H1 font="nunito" weight="black">Friendly Title</H1>
<P font="nunito" weight="medium">Readable content</P>

Combining Options

<H1 font="nunito" weight="bold" color="bosque">
  Custom Styled Title
</H1>

Using Colors

import { colors, cssVars, themeVars } from 'aloha-ui-library';

// Direct hex values
<div style={{ backgroundColor: colors.lima }}>Content</div>

// CSS variables
<div style={{ backgroundColor: cssVars.coral }}>Content</div>

// Theme variables (adapt to mode)
<div style={{ 
  backgroundColor: themeVars.background,
  color: themeVars.text 
}}>Adaptive Content</div>

Full-screen Components

import { LoadingFullScreen, ErrorFullScreen, FullPage } from 'aloha-ui-library';

// Loading screen
<LoadingFullScreen message="Loading..." spinnerSize="lg" />

// Error screen
<ErrorFullScreen 
  title="Error"
  message="Something went wrong"
  onRetry={() => window.location.reload()}
/>

// Full page container
<FullPage centered background="gray">
  <YourContent />
</FullPage>

📚 Documentation

Visit our Storybook to explore all components and examples.

Development

Install dependencies

npm install

Run Storybook

npm run dev

Build the library

npm run build

Build Storybook

npm run build-storybook

Publishing

  1. Update version in package.json
  2. Build the library: npm run build
  3. Publish to npm: npm publish

Or use the version scripts:

npm run version:patch  # 1.0.0 -> 1.0.1
npm run version:minor  # 1.0.0 -> 1.1.0
npm run version:major  # 1.0.0 -> 2.0.0

License

MIT © Aloha Team