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

ancient-css

v4.4.0

Published

ANCIENT-CSS A CSS utility library

Downloads

148

Readme

ANCIENT-CSS A CSS utility library

COLORS Colors are defined as incomplete HSL values: 224, 80%, 56%. This is so that it can be inserted in various contexts with a separate opacity variable: hsla(var(--blue-600), var(--background-opacity)). This also allows anyone to override the default color values without any build steps. Just add your new variable definitions after this library. (You can also manually import only the properties you need from the /properties folder.)

COLOR REFERENCE (H, S) gray 0, 0% slate 224, 16% stone 0, 16% red 0, 80% orange 32, 96% yellow 56, 96% green 128, 64% turquoise 176, 72% cyan 192, 80% blue 224, 80% indigo 256, 64% violet 272, 80% magenta 328, 80%

COLOR VALUE REFERENCE (L) 50 98% 100 96% 200 88% 300 80% 400 72% 500 64% 600 56% 700 48% 800 40% 900 32% 1000 24% 1100 16% 1200 8%

OPACITY 10 0.1 20 0.2 25 0.25 30 0.3 40 0.4 50 0.5 60 0.6 70 0.7 75 0.75 80 0.8 90 0.9 100 1

SCALE There are no scale CSS variables. There are too many opinions on how it should be structured so I used the one I found simplest (and basically copies Tailwind).

Each unit is equal to 0.25rem. This is equivalent to a 4pt/4px scale. It keeps all values proportionate: .p-16 is double .p-8. Simply divide the number by 4 to get the rem value: for .p-32, 32/4 = 8rem = 128px. There are also 1-3px units for micro-adjustments, borders, etc.

SCALE REFERENCE 1px 1px 2px 2px 3px 3px 1 0.25rem 4px 2 0.5rem 8px 3 0.75rem 12px 4 1rem 16px 5 1.25rem 20px 6 1.5rem 24px 7 1.75rem 28px 8 2rem 32px 10 2.5rem 40px 12 3rem 48px 14 3.5rem 56px 16 4rem 64px 20 5rem 80px 24 6rem 96px 32 8rem 128px 48 12rem 192px 64 16rem 256px

MAX-WIDTH SCALE REFERENCE 80 20rem 320px 120 30rem 480px 160 40rem 640px 200 50rem 800px 240 60rem 960px 320 80rem 1280px

MEDIA QUERY WIDTHS sm 768px md 1024px lg 1280px

CONTRIBUTORS Mike Barnhardt [email protected]