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

yeticss

v7.5.1

Published

&yet visual style, branding assets and basic CSS components

Downloads

62

Readme

yeti.css

yeti.css is a pattern library consisting of lightweight, reusable modules. It has been built to reflect &yet's visual and branding guidelines.

Table of Contents

How to run?

For development mode:

npm install
npm start

The demo site will be available at http://localhost:8080. You can use the livereload extension and files will automatically rebuild and reload in the browser when you change them.

Structure

yeti.css is located in lib/yeticss and can be installed through npm. Variables and mixins can be found in lib/yeticss/globals and components in lib/yeticss/components. Markup for each component lives in public/templates.

Note: installing yeticss will not include assets or public.

├── assets
│   ├── logos
│   └── swatches
├── lib
│   └── yeticss
│       ├── components
│       ├── globals
│       └── index.styl
└── public
    ├── css
    ├── images
    ├── js
    ├── styl
    └── templates

How to include in your app

yeti.css is a Stylus plugin, so you just need to ensure Stylus knows to use the plugin, and then import it in your app.

Make sure that you have stylus available from command line:

npm install -g stylus

Static sites

If you are compiling your Stylus with its command line interface, maybe directly or via a Makefile or similar, it's as easy as:

  1. npm install yeticss --save-dev

  2. Add "-u yeticss" to the command: stylus -u yeticss ./path/to/app.styl

  3. Now you can import yeticss, or a subcomponent of yeticss, in your app's .styl files:

    @import 'yeticss'
    // or
    @import 'yeticss/components/type'

Single page apps using webpack

NOTE: if you are using webpack 2, check here for how to add stylus plugins with stylus-loader: https://github.com/shama/stylus-loader#webpack-2

To add yeticss to a webpack application, simply npm install yeticss --save-dev and then add it to the stylus use list as supported by stylus-loader.

For example:

// in webpack.config.js

// import yeticss somewhere in the file
var yeticss = require('yeticss');

module.exports = {
  //... other webpack config ...

  module: {
    loaders: [
      // configure stylus loader however you prefer
      { test: /\.styl$/, loader: 'style-loader!css-loader!stylus-loader' }
    ]
  },

  // configure stylus loader to use the yeticss plugin
  stylus: {
    use: [yeticss()]
  }
};
/* now in your app.styl you can: */
@import 'yeticss'

Custom fonts

yeti.css defines several custom fonts. Use Typography.com or Typekit to set up font serving accordingly or change the typeface variables here.

CSS Reset

A CSS reset is included in yeti.css by default (namely normalize.css).

Documentation

Documentation and examples of usage can be found on yeticss.com.

Contributing

See the CONTRIBUTING.md for information on how to contribute to yeti.css.

License

MIT