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

@kala-ui/react-native

v0.1.0-beta.1

Published

Token-driven theming system and components for kala-ui on React Native — Unistyles themes transcribed from the web token source of truth.

Readme

@kala-ui/react-native

Token-driven theming and UI components for kala-ui on React Native and Expo. Themes are transcribed from the web token source of truth and delivered through react-native-unistyles 3.3 — every component reads its colors from the active theme, so switching themes restyles the whole app at once.

Installation

pnpm add @kala-ui/react-native react-native-unistyles

Peer dependencies: react ≥ 19.2, react-native ≥ 0.86, react-native-unistyles 3.3, plus lucide-react-native, react-native-gesture-handler, react-native-reanimated, and react-native-svg for the components that use them.

Theme setup

Register the kala themes with Unistyles once, before any component renders:

import { themes } from "@kala-ui/react-native/themes";
import { StyleSheet } from "react-native-unistyles";

StyleSheet.configure({
	themes,
	settings: {
		initialTheme: "light",
	},
});

Built-in themes: light, dark, highContrastLight, highContrastDark (the themeNames export lists them). Switch at runtime with UnistylesRuntime.setTheme("dark").

Usage

import { Avatar, Button } from "@kala-ui/react-native";

export function SaveButton() {
	return <Button onPress={() => {}}>Save</Button>;
}

Styling components

Every component takes two styling props with different jobs:

  • style — the classic React Native prop. It styles the component's outer container and is meant for layout in the parent (margins, positioning). It cannot reach inner parts.
  • slotStyles — a slot-override object with one key per internal part. Each slot merges on top of the library defaults for that part; nothing is replaced wholesale.
<Avatar
	name="Ada Lovelace"
	status="online"
	style={{ marginRight: 8 }}
	slotStyles={{
		root: { borderWidth: 1 },              // outer container
		image: { borderRadius: 12 },           // the photo
		fallback: { backgroundColor: "gold" }, // initials tile
		status: { width: 14, height: 14 },     // corner dot
	}}
/>

Precedence on the root is library defaults → style → slotStyles.root — the slot entry always wins. Inner parts follow library defaults → slotStyles.<slot>.

When to use which. Reach for style when the parent is speaking: margins, positioning, flex sizing in the screen's layout. Reach for slotStyles when you are re-skinning the library's own parts. Keeping the channels separate means a design-system wrapper's slotStyles and an app screen's style never fight over the same keys. Each slot entry is also typed to its host element — Avatar's image slot takes ImageStyle, Alert's title slot takes TextStyle — so tsc flags styling a part with keys its element cannot honor.

Slot keys mirror the component's stable k-* testIDs (k-avatar, k-avatar-fallback, …), so anything you can style you can also target in tests and E2E flows.

TestIDs

Every component renders a stable k-<name> testID root (e.g. k-avatar, k-avatar-group) plus k-<name>-<part> markers for its inner slots. These are part of the public contract — rely on them in unit tests and Maestro flows.