• Stars
    star
    170
  • Rank 222,097 (Top 5 %)
  • Language Stylus
  • License
    MIT License
  • Created almost 11 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

&yet's visual style and pattern library

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

More Repositories

1

thoonk.py

Persistent (and fast!) push feeds, queues, and jobs leveraging Redis.
Python
355
star
2

thoonk.js

Persistent (and fast!) push feeds, queues, and jobs leveraging Redis
JavaScript
330
star
3

ConsoleDummy.js

Super lightweight solution that lets you leave `console` statements in your JS.
JavaScript
60
star
4

yeti-guide

&yet standards for writing sane and maintainable front-end systems
CSS
25
star
5

yeti-threads

JavaScript
20
star
6

face.camp

Take animated gifs and post them to your fave Slack channel.
JavaScript
14
star
7

json-rpc-ws

JavaScript
11
star
8

padlock

An execution locking mechanism for Node.js
JavaScript
8
star
9

paddle

Paddle ensures your callback runs and calls your error if it hasn't. You are up a creek; here is your paddle.
JavaScript
6
star
10

slack-ship

ah, nostalgia
JavaScript
5
star
11

MotherMayI

MotherMayI is a simple Node.js ACL lib/schema using Redis.
JavaScript
3
star
12

postflux

JavaScript
3
star
13

autofocus.js

JavaScript
3
star
14

fluentconf-native-web-apps

2
star
15

Thoonk-Scripts

The Redis-Lua Scripts Used for Thoonk
2
star
16

textcapades-legacy

JavaScript
2
star
17

triconftweets

Live twitter feed for TriConf
2
star
18

eslint-config-andyet

our eslint config(s)
JavaScript
1
star
19

node

dockerfiles to install node in an alpine based container
1
star
20

jsft-api

CSS
1
star
21

shippy.js

JS SDK for shippy
JavaScript
1
star
22

bell-andyet

A bell authentication module for andyet auth
JavaScript
1
star
23

wolves

JavaScript
1
star
24

SleekPubsub2

XMPP Publish-Subscribe, based on SleekXMPP and Thoonk.py
Python
1
star
25

textcapades

JavaScript
1
star
26

passport-andyet

A passport plugin for andyet auth
JavaScript
1
star
27

flashlightapp.info

The AMAZING HTML5 flashlight app
1
star