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

css-baseline

v1.3.0

Published

A style sheet that should be included on every project

Downloads

750

Readme

Was this written from scratch?

This library combines the following:

  • reset.css 2.0 by Eric Meyer
  • normalize.css 8.0.0 by Nicolas Gallagher and Jonathan Neal
  • The Bootstrap 4 Reboot CSS

This library adds standardizations onto the above

What is css-baseline?

Browers come with different default CSS styles, this library tries to provide a common style starting point so that html appears and behaves the same in all browsers. It is especially geared towards fixing edge-case bugs/behaviors (cough cough IE 9,10,11 cough cough). There are no CSS-classes since it this is intended to be used with other style sheets / CSS frameworks. The goal is that CSS baseline can be used as a foundation for all future web-dev projects regardless of anyone's project-specific styling needs.

How do I use this?

Make sure you include this CSS before any other style sheets: this lets other libraries override css-baseline

  1. [quick way] If you're just testing you can paste this in the <head> of your HTML file. <link rel="stylesheet" href="https://unpkg.com/css-baseline/css/2.css">
  2. [better way] You can also manually download the CSS file of version you want (see the css folder). Then just include it as the first style sheet in the <head> of your HTML file.
  3. [best way] If you have a bundler in your project (e.g. Parcel.js, Webpack, Rollup.js) you can include this through npm. Ex: In your main/first javascript file you can likely put require("css-baseline/css/2") or import "css-baseline/css/2". Your bundler may have some other way of including CSS files from NPM.

Why are their 4 versions?

Versions:

  1. Only include critical fixes
  2. Standardize the spacing of elements (and everything from #1)
  3. Standardize font sizing (and everything from #1 and #2)
  4. Standardize the look of buttons and text-input fields (and everything from #1, #2, and #3)

Is this going to be updated?

Yes. Please create pull requests if any browsers have non-standard behavior/bugs that can be fixed with CSS or if there is any conflict with major libraries.