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

@rspwn/design-system

v1.2.7

Published

RSPWN Design System - A React component library for modern gaming and AI platforms

Readme

RSPWN Design System

A comprehensive React component library built for modern gaming and AI platforms, following RSPWN brand guidelines.

npm version Storybook

Features

  • 🎨 Design Tokens - Colors, typography, spacing, and shadows based on RSPWN brand guidelines
  • 🧩 React Components - Reusable, accessible components with TypeScript support
  • 📚 Storybook Documentation - Interactive component playground and documentation
  • Modern Tooling - Built with Vite, TypeScript, and Styled Components
  • 🌙 Dark Theme - Professional dark theme optimized for gaming platforms
  • 📦 NPM Package - Available as @rspwn/design-system

Installation

npm install @rspwn/design-system styled-components

Peer Dependencies

Make sure you have the required peer dependencies installed:

npm install react react-dom styled-components

Quick Start

Basic Setup

import React from 'react'
import { ThemeProvider } from 'styled-components'
import { Button, Typography, theme } from '@rspwn/design-system'

function App() {
  return (
    <ThemeProvider theme={theme}>
      <div style={{ padding: '2rem', backgroundColor: '#000' }}>
        <Typography variant="brand" color="primary">RSPWN</Typography>
        <Typography variant="h1">Welcome to the future</Typography>
        <Button variant="primary" size="lg">
          Get Started
        </Button>
      </div>
    </ThemeProvider>
  )
}

Available Components

// Import individual components
import { 
  // Design tokens
  theme, colors, typography, spacing, shadows, radius,
  
  // Foundation components
  Typography, Box, Container,
  
  // UI components
  Button, Card, Navigation
} from '@rspwn/design-system'

Documentation

Design Tokens

The design system is built on a foundation of design tokens that encode RSPWN's brand guidelines:

Colors

  • Foundation: Brand Black (#000000), Brand White (#FFFFFF)
  • Innovation: Primary Blue (#4A9EFF), Secondary Purple (#8B5CF6)
  • Text: Primary (#FFFFFF), Secondary (#CCCCCC), Muted (#888888)
  • Grayscale: Dark (#0A0A0A), Gray (#1A1A1A), Light (#2A2A2A)

Typography

  • Brand Font: Audiowide (for brand name and major headings only)
  • Body Font: Inter (for all other content)
  • Scale: xs, sm, base, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl

Components

Foundation Components

  • Typography - Text rendering with variant system
  • Box - Flexible layout primitive with spacing props
  • Container - Responsive container with max-widths

UI Components

  • Button - Primary, secondary, outline, ghost, and danger variants
  • Card - Default, elevated, outlined, and filled variants
  • Navigation - Responsive navigation with mobile menu

Advanced Usage

Theme Provider Setup

The design system requires ThemeProvider from styled-components to work properly:

import React from 'react'
import { ThemeProvider } from 'styled-components'
import { theme } from '@rspwn/design-system'

// Wrap your app with ThemeProvider
function App() {
  return (
    <ThemeProvider theme={theme}>
      {/* Your app components */}
    </ThemeProvider>
  )
}

Component Examples

import { Button, Typography, Card, Box } from '@rspwn/design-system'

function ExamplePage() {
  return (
    <Box p={8} bg="dark">
      <Typography variant="brand" mb={4}>RSPWN</Typography>
      <Typography variant="h1" mb={6}>Welcome to the future</Typography>
      
      <Card variant="elevated" p={6} hoverable>
        <Card.Content>
          <Typography variant="h4" mb={4}>
            Feature Card
          </Typography>
          <Typography variant="body2" color="secondary" mb={4}>
            Build amazing gaming experiences with RSPWN components
          </Typography>
          <Button variant="primary" size="lg">
            Get Started
          </Button>
        </Card.Content>
      </Card>
    </Box>
  )
}

Brand Guidelines

Typography Usage

  • ✅ Use Audiowide ONLY for brand name "RSPWN" and major headings
  • ✅ Use Inter for all body text and secondary headings
  • ✅ Maintain proper hierarchy and contrast
  • ❌ Never use Audiowide for body text or long content

Color Usage

  • ✅ Primary Blue (#4A9EFF) exclusively for primary actions and key interactive elements
  • ✅ Maintain professional grayscale hierarchy for content structure
  • ✅ White text (#FFFFFF) for primary content, grays for secondary information
  • ❌ Avoid decorative color usage in titles or non-functional elements

Design Principles

  • Professional Polish: Clean, refined interfaces without unnecessary visual effects
  • Systematic Consistency: Rigorous adherence to spacing, typography, and color systems
  • Accessibility First: High contrast ratios and semantic structure throughout
  • Purposeful Color: Strategic use of blue accent for primary actions only
  • Enterprise Ready: Business-appropriate aesthetics suitable for professional gaming platforms

Development

This section is for contributors working on the design system itself.

Setup

git clone https://github.com/RSPWN-LTD/rspwn-design-system.git
cd rspwn-design-system
npm install

Development Scripts

# Start the design system website
npm run dev

# Start Storybook for component development
npm run storybook

# Build the library for publishing
npm run build:lib

# Build Storybook static files
npm run build-storybook

# Run linting
npm run lint

Project Structure

src/
├── components/
│   ├── foundation/     # Layout and typography primitives
│   └── ui/            # Reusable UI components
├── tokens/            # Design tokens (colors, spacing, etc.)
├── pages/             # Design system website pages
└── types/             # TypeScript definitions

Publishing

The package is automatically published to npm via GitHub Actions when a new release is created. See the deployment workflow for details.

License

MIT License - see LICENSE file for details.

Contributing

This is an open-source project. Contributions are welcome!