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

@smartupcorp/smarpy

v2.0.0

Published

smartupcorp web design library written by scss.

Readme

smarpy

license NPM Version npm downloads

NPM

Overview

smarpy is an open-source web design sass library.

It uses oklch() to declare color palette.

If you want to use in React Project, you can use react-smarpy.

Installation

Use in Sass

npm install @smartupcorp/smarpy

Use in CSS

From CDN

<link
  rel="stylesheet"
  type="text/css"
  media="all"
  href="https://unpkg.com/@smartupcorp/smarpy/dist/css/smarpy.min.css"
/>
<link
  rel="stylesheet"
  type="text/css"
  media="all"
  href="https://unpkg.com/@smartupcorp/smarpy/dist/css/smarpy-utilities.min.css"
/>

Basic Concepts

Colors

All color definitions are defined using CSS variables.

Primitive Colors

smarpy offers primitive colors in the following hues: gray, red, coral, orange, yellow, lime, green, cyan, blue, violet, and magenta.

Hue

The following hues are set by default, but they can be overridden.

  --smarpy-color-hue-gray: 274;
  --smarpy-color-hue-red: 0;
  --smarpy-color-hue-coral: 24;
  --smarpy-color-hue-orange: 54;
  --smarpy-color-hue-yellow: 94;
  --smarpy-color-hue-lime: 114;
  --smarpy-color-hue-green: 134;
  --smarpy-color-hue-cyan: 214;
  --smarpy-color-hue-blue: 274;
  --smarpy-color-hue-violet: 294;
  --smarpy-color-hue-magenta: 324;
Lightness

Each color has a range of gradations from 50 to 950.

Each gradient is assigned using CSS variables.

The following gradations are set by default, but they can be overridden.

  --smarpy-color-lightness-050: 24%;
  --smarpy-color-lightness-100: 28%;
  --smarpy-color-lightness-150: 32%;
  --smarpy-color-lightness-200: 36%;
  --smarpy-color-lightness-250: 40%;
  --smarpy-color-lightness-300: 44%;
  --smarpy-color-lightness-350: 48%;
  --smarpy-color-lightness-400: 52%;
  --smarpy-color-lightness-450: 56%;
  --smarpy-color-lightness-500: 60%;
  --smarpy-color-lightness-550: 64%;
  --smarpy-color-lightness-600: 68%;
  --smarpy-color-lightness-650: 72%;
  --smarpy-color-lightness-700: 76%;
  --smarpy-color-lightness-750: 80%;
  --smarpy-color-lightness-800: 84%;
  --smarpy-color-lightness-850: 88%;
  --smarpy-color-lightness-900: 92%;
  --smarpy-color-lightness-950: 96%;
Chroma

colors are defined as either gray or colorful.

smarpy uses oklch, the chroma values ​​are fixed to gray and colorful by default.

Alternatively, you can define colorful chroma values ​​for each gradient.

  --smarpy-color-chroma-gray: 0.04;
  --smarpy-color-chroma-colorful-050: 0.12;
  --smarpy-color-chroma-colorful-100: 0.12;
  --smarpy-color-chroma-colorful-150: 0.12;
  ...
  --smarpy-color-chroma-colorful-850: 0.12;
  --smarpy-color-chroma-colorful-900: 0.12;
  --smarpy-color-chroma-colorful-950: 0.12;
Gray

e.g.

  // gray
  --smarpy-color-gray-050: oklch(var(--smarpy-color-lightness-050) var(--smarpy-color-chroma-gray) var(--smarpy-color-hue-gray));
  --smarpy-color-gray-100: oklch(var(--smarpy-color-lightness-100) var(--smarpy-color-chroma-gray) var(--smarpy-color-hue-gray));
  --smarpy-color-gray-150: oklch(var(--smarpy-color-lightness-150) var(--smarpy-color-chroma-gray) var(--smarpy-color-hue-gray));
  ...
  --smarpy-color-gray-850: oklch(var(--smarpy-color-lightness-850) var(--smarpy-color-chroma-gray) var(--smarpy-color-hue-gray));
  --smarpy-color-gray-900: oklch(var(--smarpy-color-lightness-900) var(--smarpy-color-chroma-gray) var(--smarpy-color-hue-gray));
  --smarpy-color-gray-950: oklch(var(--smarpy-color-lightness-950) var(--smarpy-color-chroma-gray) var(--smarpy-color-hue-gray));
Colorful

e.g.

  // red
  --smarpy-color-red-050: oklch(var(--smarpy-color-lightness-050) var(--smarpy-color-chroma-colorful-050) var(--smarpy-color-hue-red));
  --smarpy-color-red-100: oklch(var(--smarpy-color-lightness-100) var(--smarpy-color-chroma-colorful-100) var(--smarpy-color-hue-red));
  --smarpy-color-red-150: oklch(var(--smarpy-color-lightness-150) var(--smarpy-color-chroma-colorful-150) var(--smarpy-color-hue-red));
  ...
  --smarpy-color-red-850: oklch(var(--smarpy-color-lightness-850) var(--smarpy-color-chroma-colorful-850) var(--smarpy-color-hue-red));
  --smarpy-color-red-900: oklch(var(--smarpy-color-lightness-900) var(--smarpy-color-chroma-colorful-900) var(--smarpy-color-hue-red));
  --smarpy-color-red-950: oklch(var(--smarpy-color-lightness-950) var(--smarpy-color-chroma-colorful-950) var(--smarpy-color-hue-red));

Semantic Colors

Semantic colors include base, main, accent, info, success, warning, and danger, and each has a primary (standard), a secondary (slightly lighter than the standard), and a tertiary (slightly darker than the standard).

/// @type List
/// @group variables
$semanticColorNames: (
  // "base",
  "base-primary",
  "base-secondary",
  "base-tertiary",
  // "main",
  "main-primary",
  "main-secondary",
  "main-tertiary",
  // "accent",
  "accent-primary",
  "accent-secondary",
  "accent-tertiary",
  // "info",
  "info-primary",
  "info-secondary",
  "info-tertiary",
  // "success",
  "success-primary",
  "success-secondary",
  "success-tertiary",
  // "warning",
  "warning-primary",
  "warning-secondary",
  "warning-tertiary",
  // "danger",
  "danger-primary",
  "danger-secondary",
  "danger-tertiary"
) !default;