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

@hikayat/hikayat-daily-ui

v0.1.0

Published

A React Native UI component library with design tokens, theming, and glassmorphism support.

Readme

hikayat-daily-ui

A React Native UI component library with design tokens, theming (light/dark), and glassmorphism support.

Installation

yarn add hikayat-daily-ui
# or
npm install hikayat-daily-ui

Peer Dependencies

yarn add react-native-linear-gradient react-native-svg

react-native-linear-gradient and react-native-svg are optional — only needed if you use GlassContainer or SVG-based components.

Font Setup

This library uses the Roboto font family. Link the fonts in your React Native project:

  • Roboto-Light
  • Roboto-Regular
  • Roboto-Medium
  • Roboto-Bold
  • Roboto-Black

Quick Start

Wrap your app with ThemeProvider:

import { ThemeProvider } from 'hikayat-daily-ui';

export default function App() {
  return (
    <ThemeProvider defaultPreference="system">
      <YourApp />
    </ThemeProvider>
  );
}

Use components and tokens:

import {
  Text,
  Button,
  TextInput,
  Spacer,
  Colors,
  spacing,
  useThemeColors,
} from 'hikayat-daily-ui';

function MyScreen() {
  const colors = useThemeColors();

  return (
    <View style={{ flex: 1, backgroundColor: colors.background, padding: spacing.md }}>
      <Text variant="h2" weight="bold">Hello World</Text>
      <Spacer unit={16} />
      <TextInput label="Email" placeholder="[email protected]" />
      <Spacer unit={12} />
      <Button title="Sign In" onPress={() => {}} variant="primary" fullWidth />
    </View>
  );
}

What's Included

Design Tokens

| Token | Description | |-------|-------------| | Colors | 80+ semantic color tokens across 14 palettes | | Gradients | 50+ gradient presets (glass, AI, status, overlay) | | spacing | 4px grid system (xxs through massive) | | borderRadius | Consistent border radius scale | | typography | 30+ Material Design 3-inspired text presets | | fontFamily | Roboto font family definitions | | fontSize | xs (10) through 5xl (40) | | iconSize / avatarSize | Standard size scales | | hitSlop | Accessibility touch target presets |

Theme System

  • Light and dark themes with 60+ semantic color properties
  • ThemeProvider with system preference detection
  • useThemeColors(), useThemeGradients(), useIsDarkMode() hooks
  • onThemeChange callback for external persistence (Redux, AsyncStorage, etc.)

Components

| Component | Description | |-----------|-------------| | Text | Semantic typography with 8 variants and 7 weights | | Button | 6 variants (primary, secondary, action, outline, ghost, danger), 3 sizes, loading state | | TextInput | Label, error, icon slots, focus state, theme-aware | | Toggle | Theme-aware switch with 3 sizes | | Spacer | Vertical/horizontal spacing with preset sizes | | Divider | Horizontal/vertical separators | | GlassContainer | iOS glassmorphism with 7 variants (accepts optional LinearGradient) | | Modal | 4 types (success, error, warning, info) with primary/secondary buttons |

Theme Persistence

The ThemeProvider is storage-agnostic. Use onThemeChange to persist:

<ThemeProvider
  defaultPreference={savedPreference}
  onThemeChange={(pref) => AsyncStorage.setItem('theme', pref)}
/>

Color Palettes

  • Primary — Slate Blue-Gray (#7D93A0)
  • Secondary — Slate Purple (#7D82A0)
  • Tertiary — Slate Teal (#7DA09C)
  • Success — Sage Green (#5CA37E)
  • Warning — Muted Gold (#C3B43C)
  • Error — Terracotta (#B85C47)
  • Info — Steel Blue (#4A6E84)
  • AI Teal — Aurora (#14B8A6)
  • AI Purple — Aurora (#A855F7)
  • AI Gold — Amber (#F59E0B)
  • AI Violet — Deep (#7C3AED)

License

MIT