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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@resultify/initial.css

v0.0.5

Published

Browser default initial CSS styles with integrated custom properties.

Downloads

11

Readme

initial.css

Browser default initial CSS styles with integrated custom properties.

Run tests node-current

Demo

Table of contents

Why?

  • Despite the advancements in modern browsers, it is still good to have a basic corrections for the default CSS styles of the browser - the so-called user agent stylesheet.
  • Our goal was to provide a basic styles that can easily integrate with CSS custom properties, simplify the CSS cascade, allow for easy implementation of light and dark themes, integrate more than six different heading styles and more. As we were unable to find any comparable open-source solutions, we decided to create our own and open it to the community.

Main features and advantages to other solutions

  • Simple and small. Only modern Browsers are supported (>1% usage).
  • Simplified CSS cascade. One way to simplify CSS cascade is by utilizing the :where() pseudo-class with zero specificity. This makes it effortless to modify styles in any location at a later time.
  • Ten heading styles. We've added four new heading styles to the existing six, providing more visual design options while maintaining accessibility and correct heading semantics.
  • Easy implementation of light and dark themes.
  • Flexible integration. You can use initial.css as a base for your own project or integrate part of initial.css - for example, only the root styles src/root.css or only the heading styles src/heading.css. Check the src/initial folder for more details.
  • Integrated CSS custom properties. You won't have to create new styles on top of existing ones and then modify them later. CSS custom properties are already included in initial.css, so you can simply adjust them to suit your requirements.

instead of this three steps:

  1. add normalize.css
body {
  background-color: var(--bg-color);
}
:root {
  --bg-color: red;
}

you can simply do this:

:root {
  --bg-color: red;
}

Quick start

Variant 1

  1. Manually add initial.css or initial.min.css as a base to your project from dist folder of the repository.

Variant 2

  1. Install initial.css npm package
npm install @resultify/initial.css
  1. Import initial.css to your project for example with postcss-import
@import '@resultify/initial.css';
  1. Add your own light/dark theme styles. Examples you can find in src/theme folder.
  2. Add your own design variations. Examples you can find in src/design-variations folder.
  3. You can also find some useful CSS utilities in src/utils folder which you can directly import to your project or paste only parts of code to your own CSS files.
  4. There are also accessibility helpers in src/accessibility folder which can be useful for your project.
  5. Add print styles to your project. Example you can find in src/print.css.

Contributing

  1. Clone/fork the repository and run npm install to install dependencies.
  2. Run npm start to start the development server with watcher.
  3. Add your changes to src/* files and test the result in browser on http://localhost:8083
  4. Run npm test to run tests.
  5. Commit your changes and create a pull request.