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

@satoshi-ltd/nano-design

v0.2.101

Published

Naive design system

Downloads

56

Readme

🎨 Nano Design

A lightweight, flexible React Native design system library built with Expo.

npm version License: MIT

🚀 Quick Start

Installation

npm install @satoshi-ltd/nano-design

Peer Dependencies

Install required peer dependencies:

npm install react-native-extended-stylesheet expo-blur expo-haptics expo-sensors

Basic Setup

import StyleSheet from 'react-native-extended-stylesheet';
import { DefaultTheme } from '@satoshi-ltd/nano-design';

// Initialize theme (required)
StyleSheet.build(DefaultTheme);

First Component

import { Button, Card, Text } from '@satoshi-ltd/nano-design';

export default function App() {
  return (
    <Card>
      <Text title>Welcome to Nano Design</Text>
      <Text>A beautiful design system for React Native</Text>
      <Button onPress={() => alert('Hello!')}>
        Get Started
      </Button>
    </Card>
  );
}

📱 Demo App

Explore components with the included demo:

cd demo
npm install
npm run start

🏗️ Architecture

Three-Tier Component System

Primitives → Basic building blocks (Text, View, Input)
Components → Composite UI elements (Button, Card, Modal)
Systems → Complex interactions (Confirm, Menu, Setting)

Component Examples

// Primitives
<Text title color="accent">Heading</Text>
<View flex align="center" gap>
  <Text>Content</Text>
</View>

// Components  
<Button primary large onPress={handlePress}>
  Primary Action
</Button>

<Card blur glassMode shadow>
  <Text>Glassmorphism Card</Text>
</Card>

// Systems
<Confirm
  title="Delete Item"
  message="Are you sure?"
  onConfirm={handleDelete}
/>

🎨 Theme System

Using Theme Variables

import { style } from './MyComponent.style';

const style = StyleSheet.create({
  container: {
    backgroundColor: '$colorBase',
    padding: '$spaceM',
    borderRadius: '$borderRadius',
  },
});

Available Theme Variables

// Colors
$colorAccent     // #FDCE44 - Primary accent
$colorBase       // #FFFEFE - Background  
$colorContent    // #000000 - Primary text
$colorError      // #ff5c5c - Error state

// Spacing
$spaceXS         // 4px
$spaceS          // 8px  
$spaceM          // 16px (default)
$spaceL          // 24px
$spaceXL         // 32px

// Typography
$fontSizeTitle   // 24px
$fontSizeBody    // 17px (default)
$fontSizeCaption // 14px

📦 Components Overview

Core Components

| Component | Purpose | Key Features | |-----------|---------|--------------| | Button | Primary actions | Variants, sizes, loading states | | Card | Content containers | Blur, glass effects, images | | Text | Typography | Semantic sizes, colors | | View | Layouts | Flex helpers, spacing | | Input | Form controls | Validation states, themes |

Advanced Features

// Glassmorphism with gyroscope
<Card blur glassMode shadow>
  <Text>Dynamic glass lighting</Text>
</Card>

// Image backgrounds with blur
<Card image={{ uri: 'https://...' }} blur>
  <Text>Content over image</Text>
</Card>

// Loading states
<Button activity onPress={handleAsync}>
  Processing...
</Button>

🛠️ Development

Commands

npm run build     # Build library
npm run lint      # Run ESLint
npm start         # Start Expo dev server
npm run release   # Version bump + publish

Code Guidelines

  • Import Order: External → @-scoped → Relative (alphabetical)
  • Props Order: Typical → Events → Style
  • CSS Properties: Alphabetical always
  • Single quotes and trailing commas required

🤝 Contributing

  1. Fork the repository
  2. Create feature branch: git checkout -b feature/amazing-feature
  3. Follow CODE_GUIDELINES.md patterns
  4. Test with demo app: cd demo && npm start
  5. Submit pull request

Component Development

// Component structure
const MyComponent = ({ 
  children,
  disabled = false,
  onPress,
  ...others 
}) => {
  return (
    <Pressable
      {...others}
      disabled={disabled}
      onPress={onPress}
      style={[style.component, others.style]}
    >
      {children}
    </Pressable>
  );
};

📚 Resources

  • Documentation: Full component API and examples
  • Demo App: Interactive component showcase
  • CODE_GUIDELINES.md: Development standards
  • TypeScript: PropTypes for runtime validation

📄 License

MIT © SATOSHI LTD


Built with ❤️ for React Native developers