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

coal-ui

v0.1.3

Published

dark quick css lib

Downloads

6

Readme

coal-ui

dark ui css lib. (docs) (showcase)

features

  • predefined (but customizable) dark design choices
  • random helpers everywhere (feature or not? i don't know)
  • ~5KiB gzipped when I last checked
  • totally responsive
  • grid
  • zero deps.

how to use?

npm i coal-ui and use the file in dist/. (or download it from repo if you don't use npm)

OR use CDN (via jsdelivr): https://cdn.jsdelivr.net/npm/[email protected]/dist/coal.css

docs

ok I won't write like literally everything, most of it just works as expected.

general usage (must read)

  • if you're going to use sass, you can import only the stuff you need, which can significantly reduce bundle size.

  • breakpoints are any sm md lg and xl

    • they're just min-width media queries, whereas any is min-width: 0px.
  • many classes (like spacing ones) are in form of ${property}-${breakpoint}-${value}

    • So for example pt-sm-4 applies padding-top on small screens
    • Also there's py (vertical) and px (horizontal) and just p (all), likewise for margins.

spacing helpers

  • there's padding helpers (e.g. pt-md-4) and margin ones (e.g. mr-any-0)
  • by default there are 10 steps, each are 0.5rem increments.

grid

  • you guessed it, 12 columns are in a row.
  • please wrap your columns with a div with class row
    • btw there's .with-gutters for quick sensible paddings.
  • here's how it works:
    • col-md-4 third (4/12)
    • col-md-auto auto width
    • col-md fill remaining space
  • some examples:
    • col-any-4 is a third of a row on any screen.
    • col-md and another col-md are two equal width columns on md screens
    • col-md-3 and another col-md, first is 3/12 space and the other fills remaining
    • col-md-auto and another col-md-2, first uses what it needs, second uses 2/12 space, rest is empty.

colors

  • default colors are: black very-very-dark very-dark dark dark-grey grey light-grey light very-light very-very-light white
  • for text, use .black or whatever
  • for backgrounds, use .black-background

interesting classes

  • font stuff
    • sizing:
      • .huge
      • .very-huge
    • weight:
      • .very-thin
      • .thin
      • .bold
      • .very-bold
  • display stuff
    • d-any-inline
    • d-any-inline-block
    • d-any-block
    • d-any-inline-flex
    • d-any-flex
  • other:
    • .no-overflow put ellipsis instead of wrapping text
    • .no-decoration remove <a> decorations
    • .circular
    • .slightly-rounded
    • .rounded
    • .very-rounded
    • .text-right
    • .text-left
    • .borderless
    • .sane-image fix <img>s overflowing like crazy outside everything

why?

fun.

what's the point?

there's no point.

BUT WHY

ok maybe you want to make that super fast page and want some super quick CSS. but there's still no point of this.

wait, maybe you want to make your life harder.

how to help dev this?

you probably shouldn't but here:

git clone [email protected]:MicroDroid/coal-ui.git
cd coal-ui
npm i
npm run dev # dist/coal.css ✔️