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

sane-tachyons

v4.0.0

Published

Tachyons, but marginally more coherent

Downloads

18

Readme

Sane Tachyons

npm version

This is a fork of Tachyons. It is sane.

Therefore, it is called sane-tachyons.

It is small and mighty. The minified CSS file is just 9,267 bytes when gzipped. For comparisons sake, the latest Bootstrap is 22,990 bytes, and does much less.

Getting started

yarn add sane-tachyons # or `npm install sane-tachyons`
/* (optional) define project specific variables (see src/__variables.scss) */
$grid-columns: 12;

/* import sane-tachyons */
@import "~sane-tachyons/reset";
@import "~sane-tachyons/sane-tachyons";

Motivation

Tachyons gives us:

  • Abbreviated, composable, simple, predictable class names
  • Massively reduced duplicate CSS
  • Mobile first approach
  • Reduced specificity issues
  • A sensible power of 2 spacing scale (..., 1rem, 2rem, 4rem, ...)
  • Everything in rem

Key changes are:

  • written in SCSS, with plenty of variables
    • including maps and lists 🌈
  • uses a custom reset rather than normalize
    • to encourage use of semantic (crawler/browser/human friendly) html elements
    • for example, <h1>Text</h1> looks the same as <p>Text</p> until classes such as .h1 or .normal are added, but search engine can tell the first is a title, potentially improving SEO
  • Just one breakpoint, l_ for large (large is a variable and so can be changed, and by default is >480px to target non-phones)
  • Adds a few utility classes that aren't included in tachyons
  • Fixes some god-awful parts of tachyons, like its approach to flexbox
  • Removes some strangely specific tachyons things, like colors and type scale, and replaces it with a more real-world setup
  • Assumes only supporting sane browsers (with exception of IE11)

Future stuff

Future probable changes are:

  • Fonts as scss variables
  • Toggle-able variable font support

Check out the docs!


(MIT Licence)