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

@ivds/core

v1.1.0

Published

Core styles for the Ivoire Design System

Readme

@ivds/core

Core styles for the Ivoire Design System (IVDS). This package provides CSS-only component styles and utilities that consume design tokens from @ivds/design-tokens.

Installation

npm install @ivds/core @ivds/design-tokens
# or
yarn add @ivds/core @ivds/design-tokens

Usage

Complete Bundle

Import all IVDS Core styles:

@import '@ivds/core';

Or use the CSS file directly:

<link rel="stylesheet" href="node_modules/@ivds/core/lib/all.css">

Selective Imports

Import only what you need:

/* Base styles */
@import '@ivds/core/base';

/* Utilities only */
@import '@ivds/core/utils';

/* Specific components */
@import '@ivds/core/components/button';
@import '@ivds/core/components/card';

/* Government namespace patterns */
@import '@ivds/core/gov';

/* Icons */
@import '@ivds/core/icons';

HTML Usage

Use IVDS components with CSS classes:

<!-- Button component -->
<button class="ivds-button ivds-button--primary">
  Primary Button
</button>

<!-- Card component -->
<div class="ivds-card">
  <div class="ivds-card__header">
    <h3 class="ivds-card__title">Card Title</h3>
  </div>
  <div class="ivds-card__body">
    <p class="ivds-card__content">Card content goes here.</p>
  </div>
</div>

<!-- Utility classes -->
<div class="ivds-flex ivds-flex--justify-between ivds-p-4">
  <span>Left content</span>
  <span>Right content</span>
</div>

Available Components

  • Form Components: Button, Text Input, Checkbox, Radio Button
  • Layout Components: Card, Notification, Tag
  • Navigation Components: Breadcrumb, Navigation, Pagination
  • Structural Components: Header, Footer
  • Government Patterns: Gov shell, promo, flash ticker, primary nav, news/agenda panels, service directory, mega footer
  • Utilities: Spacing, Typography, Layout, Grid, Flexbox
  • Icons: Essential icon set with base styling

Customization

IVDS Core uses CSS custom properties from @ivds/design-tokens. You can customize the design system by overriding these properties:

:root {
  --color-brand-primary-500: #your-brand-color;
  --fontFamily-sans: 'Your Font', system-ui, sans-serif;
  --spacing-4: 1.5rem; /* Custom spacing */
}

Framework Integration

CSS Modules

import styles from '@ivds/core/components/button.css';

function Button({ children, variant = 'primary' }) {
  return (
    <button className={`ivds-button ivds-button--${variant}`}>
      {children}
    </button>
  );
}

Styled Components

import styled from 'styled-components';
import '@ivds/core/components/button';

const StyledButton = styled.button.attrs({
  className: 'ivds-button ivds-button--primary'
})`
  /* Additional custom styles */
`;

Vue.js

<template>
  <button :class="buttonClasses">
    <slot />
  </button>
</template>

<script>
import '@ivds/core/components/button';

export default {
  props: {
    variant: {
      type: String,
      default: 'primary'
    }
  },
  computed: {
    buttonClasses() {
      return `ivds-button ivds-button--${this.variant}`;
    }
  }
};
</script>

Browser Support

  • Chrome 88+
  • Firefox 85+
  • Safari 14+
  • Edge 88+

Legacy browser support available with CSS custom property fallbacks.

Documentation

Build System

The package uses a modern build system with:

  • PostCSS with SCSS support for compilation
  • Stylelint for code quality and BEM methodology enforcement
  • Jest for SCSS unit testing
  • Storybook for component documentation
  • Bundle size monitoring to ensure optimal performance

Build Commands

# Development build
yarn build

# Production build (optimized, warnings suppressed)
yarn build:prod

# Watch mode for development
yarn test:watch

# Check bundle sizes
yarn size

Bundle Sizes

  • Main bundle: all.css (target: <50kB)
  • Minified bundle: all.min.css (target: <25kB)
  • Individual components available for selective imports

Performance

IVDS Core is optimized for production use:

  • Minimal CSS output with dead code elimination
  • Gzip-friendly compression (typically 70%+ reduction)
  • Tree-shakeable imports for optimal bundle sizes
  • Modern CSS features with fallbacks for older browsers

Contributing

See DEVELOPMENT.md for development setup and contribution guidelines.

License

MIT License - see LICENSE for details.