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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ap.cx/design-system-variables

v1.0.8

Published

design system variables

Downloads

17

Readme

Design-System-Variables

Status

🔥 Work in progress at an early stage, not production ready


Variables Design System for Grid, Layout, Media Queries, Responsive Design, Typography Rhythm and colors. A “ready to use” set of variables for Design System.

Align on a vertical grid drived by the typography.

Demo

https://thierryc.github.io/Design-System-Variables

Typography drived variables for CSS in JS.

Spacer is 1/3 or 2/3 of the (paragraphe) line heights.

Margins and gutters are also based on the (paragraphe) line height.

styled-components

image

Masters Variables:

Typography

  • Font Family (Heading and Body)
  • Line height

Rhythm Scale

  • Rhythm (FIBONACCI)

Colors

Color object have accessibility data.

'DisplayColor' is the color for the text on it. It can be black or white.


"contrastBlack": "7.16",
"contrastWhite": "2.93",
"displayColor": "black",
"accessibility": {
    "aa": true,
    "aaLarge": true,
    "aaa": true,
    "aaaLarge": true
}

Background Colors

Main Colors

  • Blue Hue
  • Green Hue
  • Yellow Hue
  • Red Hue

Variables:

Typography

  • 1 heading font (Lora serif font)
  • 1 body font (Nato sans serif font)
  • 1 code font

Colors

  • 4 brand colors
  • 4 messages colors (success, warning, danger, info)
  • 10 other color
  • and useful colors like twitter and Facebook

Grid

The grid is 1/3 of the lineHeight. (~ 8px)

Layout, Columns, gutters, and margins

Columns

Content is placed in the areas of the screen that contain columns. Column width is defined using percentages.

  • COL_NUMB_SX = 4;
  • COL_NUMB_SM = 4;
  • COL_NUMB_MD = 8;
  • COL_NUMB_LG = 12;
  • COL_NUMB_XL = 12;

Gutters

Gutters are the spaces between columns. They help separate content. Gutter widths are fixed values at each breakpoint range.

  • GUTTER_SX = 1 * grid (~8px)
  • GUTTER_SM = 1 * grid (~8px)
  • GUTTER_MD = 2 * grid (~16px)
  • GUTTER_LG = 3 * grid (~24px)
  • GUTTER_XL = 3 * grid (~24px)

Margins

Margins are the space between content and the left and right edges of the screen.

  • MARGIN_SX = 2 * grid (~16px)
  • MARGIN_SM = 2 * grid (~16px)
  • MARGIN_MD = 3 * grid (~24px)
  • MARGIN_LG = 4 * grid (~24px)
  • MARGIN_XL = 4 * grid (~32px)

How to use

Variables list

Create your onw set

Get Cap height of a font

Video Sketch soon

https://github.com/sebdesign/cap-height

License

MIT © Thierry Charbonnel