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

ash-css

v0.4.0

Published

Accessible CSS-only semantic framework with a built-in dark mode. No JavaScript required!

Downloads

5

Readme

ASH CSS

Accessible CSS-only semantic framework with a built-in dark mode. No JavaScript required!

ASH is a responsive flex-based framework using only CSS. ASH combines classless semantic elements with classed components to build awesome front-ends. ASH requires no JavaScript and weighs in at ~20kb compressed with Brotli!

This project can be used in production, as it is currently being used is several projects, but please be aware that it is currently in "beta". Once version 1.0.0 is released this message will be removed. Help us find bugs or other issues!

ASH CSS Discord

Get ASH CSS

There are a few ways to get ASH CSS. You can download a compiled version, use our CDN, with NPM, or clone and build from the source.

Compiled CSS

Download compiled CSS to use in your self-hosted project. This includes the following files:

  • ash.css -> compiled and unminified
  • ash.css.map -> compiled CSS map
  • ash.min.css -> compiled and minified

These files do not include documentation or source files. Releases

CDN via jsDelivr

Use the code below to drop-in ASH CSS to your project from our CDN. The CDN will be cached, minified, and gzipped.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ash-rocks/[email protected]/dist/ash/ash.min.css">

NPM/Yarn

ASH can be installed in a NodeJS project using NPM or Yarn.

npm install ash-css --save
yarn add ash-css
import 'ash-css/dist/ash/ash.min.css';

Source

Clone ASH CSS from source for when you want to contribute or customize to fit your needs. The source includes the docs you see here and can be used as a playground for customization.

git clone https://github.com/ash-rocks/ash-css.git
cd ash-css
npm install

Docs

After you clone ASH CSS from source code you can run the docs locally. Local docs are totally offline and will be available at http://localhost:8080/

npm run docs

Building

After you clone ASH CSS from source code you can build your own customized version. All built files will be available in dist/ash

npm run build-ash

Using ASH CSS

After building from source, downloading the compiled release, or using the CDN just include the minified version in the head of your HTML. Use the below starting template:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>YOUR APP</title>
    <link rel="stylesheet" href="/path/to/ash/css/or/cdn">
  </head>
  <body>
    ...
  </body>
</html>

You can use the included dark mode my adding the dark class to the html tag. This can be toggled by using JavaScript to add or remove the class from the html tag or by watching the prefers-color-scheme media query.

<html class="dark">
...
</html>

Sponsors

Support this project and possibly other open-source projects by becoming a sponsor. Higher tier sponsor will appear here with a logo and link to your website. Become a sponsor

Code of conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Copyright and license

Code and documentation copyright 2021 the ASH CSS Authors. Code and documentation released under the MIT License.