Giter Site home page Giter Site logo

bitters's Introduction

harp-bitters

Add a dash of predefined style to get your Bourbon stylesheets started off in the right direction.

Dependencies

  • Node.jsServer-side JavaScript runtime
  • HarpThe static web server with built-in preprocessing

Install

To install Bitters, you can download this repository or use the Component package manager.

npm install -g component
component install harp/bitters
harp install bitters

Your project will look something like this…

myproject/                  <-- Your project root (or public dir if in framework-mode)
  |- components/            <-- Harp puts components here
  |   +- harp-bourbon/      <-- Where Bourbon gets installed
  |   +- harp-bitters/      <-- Where this lib gets installed
  |       …
  |- main.scss              <-- Where you reference Bourbon and Bitters
  +- index.jade             <-- Where you reference main.css

Link

Now, from within a .scss file in your project, you can @import Bourbon and Bitters:

@import "components/harp-bourbon/scss/bourbon";
@import "components/harp-bitters/scss/bitters";

Or, just a portion of either:

@import "components/harp-bourbon/scss/bourbon";
@import "components/harp-bitters/scss/variables";
@import "components/harp-botters/forms";

A note on @extends

Bitters makes use of @extends in Sass, which isn’t supported in libsass, and therefore Harp yet. This means %button, %default-ul and %default-ol can only be used with real classes (.button, .default-ul, .default-ol) in the meantime. This will be reverted as soon as libsass supports this feature, which should be very soon.

License

This component is Bitters, which is Copyright © 2013 thoughtbot and MIT licensed.

bitters's People

Contributors

kylefiedler avatar kennethormandy avatar alexbaldwin avatar tyre avatar henrik avatar

Watchers

Brock Whitten avatar Rob Ellis avatar Jorge Pedret avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.