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

@primo-brutality/ui

v2.0.0

Published

Neo-brutalist React Native component library

Downloads

546

Readme

@primo-brutality/ui

Neo-brutalist React Native component library built with NativeWind v4. Thick borders, hard shadows, and bold colors — ready for Expo and bare React Native apps.

Install

npm install @primo-brutality/ui nativewind
# or
pnpm add @primo-brutality/ui nativewind
# or
yarn add @primo-brutality/ui nativewind

Peer dependencies

| Package | Version | | -------------- | -------- | | react | >=18 | | react-native | >=0.74 | | nativewind | >=4 |

You also need Tailwind CSS v3 in your app (see setup below).

Setup

Components use NativeWind className props. Configure your app once before importing components.

1. Import global styles

In your app entry file (e.g. app/_layout.tsx for Expo Router or App.tsx):

import "@primo-brutality/ui/global.css";

2. Configure Tailwind

Add the brutal design tokens to your tailwind.config.js:

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./app/**/*.{js,jsx,ts,tsx}",
    "./src/**/*.{js,jsx,ts,tsx}",
    "./node_modules/@primo-brutality/ui/dist/**/*.{js,mjs}",
  ],
  presets: [require("nativewind/preset")],
  theme: {
    extend: {
      colors: {
        "brutal-cream": "#f4f4f0",
        "brutal-black": "#000000",
        "brutal-white": "#ffffff",
        "brutal-pink": "#ff90e8",
        "brutal-yellow": "#ffc900",
        "brutal-green": "#23a094",
        "brutal-red": "#ff0000",
        "brutal-gray": "#e5e5e0",
      },
      borderRadius: {
        "brutal-sm": "4px",
        "brutal-lg": "20px",
      },
      boxShadow: {
        brutal: "4px 4px 0 0 #000000",
        "brutal-sm": "2px 2px 0 0 #000000",
        "brutal-pressed": "1px 1px 0 0 #000000",
      },
      borderWidth: {
        brutal: "2px",
      },
      fontFamily: {
        brutal: [
          "Inter",
          "system-ui",
          "-apple-system",
          "BlinkMacSystemFont",
          "Segoe UI",
          "sans-serif",
        ],
      },
      maxWidth: {
        "brutal-sm": 384,
        "brutal-md": 512,
        "brutal-lg": 768,
      },
    },
  },
  plugins: [],
};

Follow the NativeWind v4 installation guide for Metro/Babel setup in your project.

3. TypeScript (optional)

Add NativeWind types to your tsconfig.json:

{
  "compilerOptions": {
    "jsxImportSource": "nativewind"
  }
}

Usage

import { Button, Card, Text } from "@primo-brutality/ui";

export function Example() {
  return (
    <Card>
      <Text size="lg" weight="bold">
        Welcome
      </Text>
      <Button variant="primary" onPress={() => {}}>
        Get started
      </Button>
    </Card>
  );
}

Toast notifications

Wrap your app with ToastProvider and call useToast() from any child:

import { ToastProvider, Button, useToast } from "@primo-brutality/ui";

function App() {
  return (
    <ToastProvider>
      <Screen />
    </ToastProvider>
  );
}

function Screen() {
  const { show } = useToast();

  return (
    <Button onPress={() => show({ message: "Saved!", variant: "success" })}>
      Save
    </Button>
  );
}

Components

| Component | Description | | --------------- | ----------------------------------------------- | | Text | Typography with size, weight, and color presets | | Button | Pressable button with variants and hard shadow | | Input | Text input with brutal border styling | | Card | Bordered container with optional shadow | | Badge | Small label / status chip | | Alert | Inline alert banner | | Container | Layout wrapper with max-width presets | | YContainer | Vertical stack with token-based gap presets | | XContainer | Horizontal row with token-based gap presets | | Modal | Modal dialog overlay | | PinInput | PIN / OTP digit input | | ToastProvider | Toast context provider | | useToast | Hook to show and dismiss toasts |

Design tokens

Import raw token values for custom components:

import {
  colors,
  spacing,
  fontSizes,
  radii,
  shadows,
} from "@primo-brutality/ui";

Development

This package lives in the primo-brutality monorepo. Clone the repo and run Storybook to browse all components:

git clone https://github.com/lucianodiisouza/primo-brutality.git
cd primo-brutality
pnpm install
pnpm storybook

License

MIT