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

@ncino/styles

v13.0.1

Published

nCino Shared Web Component Styling

Readme

@ncino/styles

nCino's shared web component styling package implementing the Gator Design System. Provides CSS design tokens, global styles, and a comprehensive Material-UI theme configuration with TypeScript support for custom component props.

Contributing

For guidance on adding or modifying MUI component overrides, see the Developing MUI Overrides wiki page.

Installation

npm install @ncino/styles
# or
pnpm add @ncino/styles

Quick Start

// app/layout.tsx (or _app.tsx)
import '@ncino/styles/gator';  // Global styles
import { ThemeProvider } from '@mui/material/styles';
import { gatorMUITheme } from '@ncino/styles/gator/themes/MUIGatorTheme';

export default function RootLayout({ children }) {
  return (
    <ThemeProvider theme={gatorMUITheme}>
      {children}
    </ThemeProvider>
  );
}

That's it! All MUI components now use the Gator theme, and TypeScript recognizes custom props like color="ai" automatically.

What's Included

  • Design Tokens: Primitive and semantic CSS custom properties
  • Global Styles: CSS utilities, grid system, typography classes
  • MUI Theme: Complete Material-UI theme with component overrides
  • TypeScript Support: Type augmentations for custom MUI props
  • Web Fonts: Self-hosted Open Sans variable font

Usage

Using MUI Components

Material-UI components automatically use the Gator theme:

import { Button, TextField, Card, Chip } from '@mui/material';

<Button color="primary">Primary</Button>
<Button color="ai">AI</Button>           {/* Custom Gator color */}
<Button color="neutral">Neutral</Button> {/* Custom Gator color */}

<Chip color="ai" label="AI Feature" />   {/* Custom Gator color */}

Using Design Tokens

Design tokens are available as CSS custom properties:

.my-component {
  /* Colors */
  color: var(--color-text-primary);
  background-color: var(--color-surface-brand);

  /* Spacing (0-18 scale) */
  padding: var(--spacing-8);    /* 16px */
  margin: var(--spacing-10);    /* 24px */
  gap: var(--spacing-5);        /* 8px */

  /* Typography */
  font-size: var(--font-size-body-1);
  font-weight: var(--font-weight-semi-bold);

  /* Other */
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-2-card-raised);
}

Grid System

<div class="gator-container">
  <div class="gator-row">
    <div class="gator-col-12 gator-col-md-6 gator-col-lg-4">
      Column 1
    </div>
    <div class="gator-col-12 gator-col-md-6 gator-col-lg-4">
      Column 2
    </div>
    <div class="gator-col-12 gator-col-md-6 gator-col-lg-4">
      Column 3
    </div>
  </div>
</div>

Individual Token Imports

Import specific token sets if needed:

import '@ncino/styles/gator/tokens/primitive';  // Base colors, font sizes
import '@ncino/styles/gator/tokens/semantic';   // Contextual tokens

TypeScript Setup

How It Works

TypeScript module augmentations are loaded project-wide when you import the theme. You only need to import it once (typically in your app root), and all files get the custom prop types automatically.

Troubleshooting

Custom props showing TypeScript errors

Most Common Cause: Dependency version mismatch in monorepos.

TypeScript creates separate @mui/material instances for different React/@types/react versions. Augmentations only apply when versions match.

Solution: Ensure consistent versions:

{
  "dependencies": {
    "react": "19.2.4",
    "react-dom": "19.2.4"
  },
  "devDependencies": {
    "@types/react": "^19",
    "@types/react-dom": "^19"
  }
}

After updating:

  1. Run pnpm install
  2. Restart TypeScript server (VS Code: Cmd+Shift+P → "TypeScript: Restart TS Server")
  3. Clear caches: rm -rf .next node_modules/.cache

Still not working?

  • Verify theme import: Make sure you're importing gatorMUITheme somewhere in your app
  • Check installation: Verify node_modules/@ncino/styles exists
  • IDE restart: Sometimes a full IDE restart is needed

Exports

Available import paths:

import '@ncino/styles';                                    // Load augmentations
import { gatorMUITheme } from '@ncino/styles';            // Theme (default export)
import '@ncino/styles/gator';                              // Global styles CSS
import { gatorMUITheme } from '@ncino/styles/gator/themes/MUIGatorTheme';
import '@ncino/styles/gator/tokens/primitive';            // Primitive tokens CSS
import '@ncino/styles/gator/tokens/semantic';             // Semantic tokens CSS