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

ashdjkjdhk123

v0.0.1

Published

> TODO: description

Downloads

2

Readme

lerna

@teal/tokens

tokens provides the user with a stylesheet containing a set of design tokens (css custom properties/css variables), these tokens then give the user a curated set of values to use in their project. This gives the developers more consistancy when reaching for values for

  1. colors
  2. sizes
  3. eases
  4. radius'
  5. box shadows
  6. gradients (to be added)

sets and scales

for reference in the rest of the document. We need explain the difference between what we define as sets and scales

we have decided to split token naming convensions into two catagories, sets : a defined grouping of curated values (which can be futher broken down into numeric and named); and scales : a linearly progressing set of values. The reason for doing so is to make the token names as easy to recall from memory to lower the need for developers to constantly crawl the docs just to remind themselves of the name value for a specific token.

scales will range from 0 - XX incrementing by 1; numeric sets will range from 000 - X00 incrementing by 100 named sets each value will have a specific associated name, this is used where a name for the value makes more associative sense than a number (eg eases)

1. Colors (numeric set)

Teal provides users with a curated spectrum of colors to chose from, instead of wildy picking colors from a color picker, we provide a 10 scale tonal sets for Red,Pink,Purple,Indigo,Blue,Teal,Green,Yellow and various greys (grey, warm-grey and cool-grey)

color tokens follow the format of:

--tl-{color}-[number 000 - 900]

eg

--tl-teal-500 --tl-indigo-900

color sets range from 000 to 900 scaling in 100's 000 being the lightest shade and 900 being the darkest

the one exception for this is black and white, which scales from 000 to 300

2. Size (scale)

Tokens also provides a sliding pixel scale going from 0px - 108rem (1rem = 16px), this helps the developer to pin down the distances, spacing and font sizes they want to use in a more refined, controlled and consistant manner across their project.

our sliding scale goes from 0 to 30, following a modified minor scale

scale tokens follow the format of

--tl-size-[number 0 - 30]

eg

--tl-size-0 = 0px

--tl-size-7 = 0.5rem

--tl-size-10 = 1rem or 16px

--tl-size-13 = 2rem

--tl-size-22 = 18rem

3. Eases (named set)

Tokens provides a wide range of curated set of cubic bezier eases for developers to use out of the box. These are all mathematically based easing curves and the names associated with the values are based on those mathematical formulas.

ease types available are

sine

circ

cubic

quad

quart

quint

expo

back

the naming convension for eases is

--tl-ease-{easeName}-[in/out/inout]

eg

--tl-ease-quint-in

--tl-ease-quad-out

--tl-ease-circ-inout

4. radius' (named-set)

We provide a named set of border radius, that conform to the reset for the design system scalings

token naming format goes as follows

--tl-radius-[xs/sm/md/lg/xl/2xl/3xl/round]

eg

--tl-radius-none

--tl-radius-md

--tl-radius-round

4. box-shadows (scale)

Box shadows are reguarly used in modern web design to aid providing visual heirarcy and depth within a page.

Teal provides a curated collection of box shadows which have had inspiration drawn from my design systems and sites.

token naming format goes as follows

--tl-shadow-[0-8] --tl-insetshadow-[1-4]

5 Gradients (to be included)