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

@swiss-ui/core

v0.1.0

Published

Base CSS layer for Swiss UI design system

Readme

@swiss-ui/core

Base CSS layer for Swiss UI design system. Provides reset, base element styles, typography utilities, and layout primitives built on top of @swiss-ui/tokens.

Installation

npm install @swiss-ui/core @swiss-ui/tokens

Usage

Full bundle

@import "@swiss-ui/tokens/css";
@import "@swiss-ui/core";

Partial imports

/* Only reset */
@import "@swiss-ui/tokens/css";
@import "@swiss-ui/core/reset";

/* Reset + base element styles */
@import "@swiss-ui/tokens/css";
@import "@swiss-ui/core/reset";
@import "@swiss-ui/core/base";

/* Only layout utilities */
@import "@swiss-ui/tokens/css";
@import "@swiss-ui/core/layout";

Dark mode

Dark mode works automatically through @swiss-ui/tokens. Add data-theme="dark" to any ancestor element:

<html data-theme="dark">
  <!-- all children inherit dark theme tokens -->
</html>

Layers

| Layer | File | Description | |---|---|---| | Reset | reset.css | Modern CSS reset based on Andy Bell's reset | | Base | base.css | Native HTML element styles without classes | | Typography | typography.css | Utility classes for text styles | | Layout | layout.css | Container, grid, stack, and cluster primitives |

Typography classes

| Class | Size | Weight | Usage | |---|---|---|---| | .swiss-heading-1 | 48px | Bold | Page titles | | .swiss-heading-2 | 36px | Bold | Section headings | | .swiss-heading-3 | 30px | Bold | Subsection headings | | .swiss-heading-4 | 24px | Medium | Card headings | | .swiss-heading-5 | 20px | Medium | List headings | | .swiss-heading-6 | 18px | Medium | Minor headings | | .swiss-body-lg | 18px | Regular | Lead paragraphs | | .swiss-body-md | 16px | Regular | Default body text | | .swiss-body-sm | 14px | Regular | Secondary text | | .swiss-caption | 12px | Regular | Image captions, footnotes | | .swiss-label | 14px | Medium | Form labels, tags | | .swiss-overline | 12px | Medium | Category labels (uppercase) | | .swiss-code | 14px | Regular | Inline code snippets |

Layout classes

| Class | Description | |---|---| | .swiss-container | Centered max-width wrapper with responsive padding | | .swiss-grid | 12-column CSS Grid with token-based gap | | .swiss-col-{1-12} | Column span within .swiss-grid | | .swiss-stack | Flex column with vertical gap | | .swiss-cluster | Flex row wrap with gap |

Grid example

<div class="swiss-container">
  <div class="swiss-grid">
    <aside class="swiss-col-3">
      <nav>Sidebar navigation</nav>
    </aside>

    <main class="swiss-col-9">
      <h1 class="swiss-heading-1">Article title</h1>
      <p class="swiss-body-lg">Lead paragraph text.</p>
      <p class="swiss-body-md">Body content.</p>
    </main>
  </div>
</div>

Stack and cluster example

<div class="swiss-stack">
  <h2 class="swiss-heading-2">Section title</h2>
  <p class="swiss-body-md">Description paragraph.</p>

  <div class="swiss-cluster">
    <span class="swiss-label">Tag one</span>
    <span class="swiss-label">Tag two</span>
    <span class="swiss-label">Tag three</span>
  </div>
</div>

Responsive breakpoints

Breakpoints match the values from @swiss-ui/tokens:

| Name | Width | |---|---| | sm | 640px | | md | 768px | | lg | 1024px | | xl | 1280px |

On screens below 640px, .swiss-grid collapses to a single column and all .swiss-col-* spans are overridden.

License

AGPL-3.0-only