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

@scratch-css/scratch

v2.0.1

Published

Scratch is CSS framework and methodology to build web, mobile and TV applications with one code base. We have micro modular architecture, so you only choose what you want to take. Using it means to follow some good practices, make everything configurable

Downloads

5

Readme

Φ / Scratch framework

Scratch is CSS framework and methodology to build web, mobile and TV applications with one code base. We have micro modular architecture, so you only choose what you want to take. Using it means to follow some good practices, make everything configurable and easy to change. We have some built-in features as well as some additional modules you may also want to use.

Gitter npm (scoped) David

Scratch provides management system for these fields:

  • Colors
  • Units
  • Responsive breakpoints
  • Typography set
  • Gutters (or gaps)
  • Writing directions
  • Reset

We also have other libraries as modules to enhance its possibilities:

  • Reset - CSS reset for Scratch apps.
  • Grid system - two types of grid system.
  • UI kit - rich library of UI components.
  • Helpers - helper classes to use inline in HTML.
  • Animations - CSS animations and transitions.

They are based on Scratch, and are great examples of using it. You have all separated on npm, or you can use them all together.

Setup

To add Scratch in your dependencies list, run:

yarn add @scratch-css/scratch --save

You need to import it in your CSS file afterwards:

@import '@scratch-css/scratch';

Or, import from node_modules path:

@import '@scratch-css/scratch/index.css';

Try to add this snippet in your CSS just to check if it works:

body { background-color: var(--success) !important; }

Background must be green, is not it?

Visualization

Scratch is not an UI framework, it just gives your a powerful API to build them efficiently. But, as I mentioned above, we also have UI components library on top of Scratch. It is available in this repository. You can install it via npm.

Preprocessors

Right now, I intend to use postcss-present-env based on PostCSS to write tomorrow's CSS today. I believe this is the best environment to write efficient, performant and pure CSS, with no extra stuff and fastest compile time possible. I may add support for LESS and SASS lovers in the future depend on demand.

History

Scratch has a little history. It slowly begun to be developed back in 2011. It was documented on Georgian language and looked like this. The first version on Github was written on LESS. It had built-in UI components, helpers and layout techniques including row-n grid system. Then, I cleaned it up from unnecessary things and decided to divide it by domains. Now, it has became very lightweight and modular framework.

Authors

Sponsors

License

Scratch is MIT licensed.

Contribution

To run a project, you probably need Node.js and NPM installed.

To install dependencies you need to run:

yarn

To run, you can use:

yarn start

For GIT related information, please read instructions at Contributing to Open Source on GitHub.