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

moxie-native-styles

v0.1.5

Published

900+ predefined styles for React Native — configured once, applied everywhere.

Readme

moxie-native-styles

900+ predefined styles for React Native — configured once, applied everywhere.

moxie-native-styles is a zero-runtime, fully typed styling utility for React Native.

Features

  • 🚀 900+ predefined styles (Spacing, Typography, Colors, Borders, etc.)
  • 🔌 Configurable design system via moxie.config.ts
  • 🌓 Dark Mode support out of the box
  • 📱 Platform Aware (iOS, Android, Web)
  • 🏗 Component Presets (Button, Card, Input, Avatar, etc.)
  • 📦 Zero Runtime (styles are generated once and cached)

Installation

pnpm add moxie-native-styles

Quick Start

1. Create your config

// moxie.config.ts
import { defineMoxieConfig } from 'moxie-native-styles';

export default defineMoxieConfig({
  primary: '#2563EB',
  fontFamily: 'System',
});

2. Wrap your root layout

import { Moxie } from 'moxie-native-styles';
import moxieConfig from './moxie.config';

export default function App() {
  return (
    <Moxie config={moxieConfig}>
      {/* Your components */}
    </Moxie>
  );
}

3. Use styles anywhere

import { useMoxie } from 'moxie-native-styles';

export default function MyComponent() {
  const { s } = useMoxie();

  return (
    <View style={[s.flex1, s.bgPrimary, s.px4, s.py6, s.roundedXl]}>
      <Text style={[s.textWhite, s.textXl, s.fontBold]}>
        Hello, Moxie!
      </Text>
    </View>
  );
}

Animations (Subtle & Smooth)

Moxie comes with built-in declarative animations that use your theme tokens for duration and easing.

import { FadeIn, SlideIn, Pulse, Float, useMoxie } from 'moxie-native-styles';

export default function Welcome() {
  const { s } = useMoxie();
  
  return (
    <SlideIn direction="up">
      <View style={[s.card]}>
        <Pulse>
          <Text style={[s.textBlue600]}>New Feature!</Text>
        </Pulse>
        <FadeIn delay={300}>
          <Text style={[s.textMuted]}>Try out our new dashboard.</Text>
        </FadeIn>
      </View>
    </SlideIn>
  );
}

Primitives (<Box>, <Text>, <Flex>)

Moxie Primitives allow you to write UI using Moxie style keys directly as props.

import { Box, Text, Flex, Button } from 'moxie-native-styles';

export default function PremiumScreen() {
  return (
    <Box flex1 bgBackground p4 center>
      <GlassCard p6 rounded2xl>
         <Text fontBold text3xl mb2>Hello Primitives</Text>
         <Flex gap4 itemsCenter>
            <Box bgBlue100 roundedFull p2><Icon name="info" /></Box>
            <Text textMuted>This layout is built with props!</Text>
         </Flex>
         <Button label="Get Started" mt6 roundedFull />
      </GlassCard>
    </Box>
  );
}

Responsive Styles

Config your breakpoints once:

// moxie.config.ts
export default defineMoxieConfig({
  breakpoints: { sm: 640, md: 768, lg: 1024 }
});

Moxie automatically recalculates styles on device rotation or resize.

Toasts (toast.success())

Moxie includes a beautiful, Sonner-inspired toast system with built-in (follow come) Lucide icons.

1. Add the Container

Place the <ToastContainer /> at the root of your app.

import { Moxie, ToastContainer } from 'moxie-native-styles';

export default function App() {
  return (
    <Moxie config={config}>
      <YourApp />
      <ToastContainer position="bottom-right" />
    </Moxie>
  );
}

2. Show Toasts Anywhere

No hooks required for the basic API!

import { toast } from 'moxie-native-styles';

// Simple usage
toast.show("Welcome back!");

// Semantic toasts with icons
toast.success("Profile updated");
toast.error("Connection failed");
toast.warning("Low battery");
toast.info("New message received");

License

MIT