GithubHelp home page GithubHelp logo

roblevintennis / buttons-lite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unicorn-ui/buttons-lite

0.0 0.0 0.0 488 KB

A trimmed subset of Buttons with only flat (or top level) classes.

License: Other

JavaScript 43.18% Ruby 0.26% CSS 42.06% HTML 14.50%

buttons-lite's Introduction

Buttons Lite

Buttons Lite is a trimmed subset of Buttons with only flat (or top level) classes.

Customize Buttons (Recommended uses Sass & Autoprefixer)

  1. Clone the Buttons repository.
  2. Make sure you have node.js installed.
  3. From the command line cd into the root for the Buttons directory
  4. Run npm install or sudo npm install (depending on your system permissions).
  5. On the command line run grunt dev, this will open a browser with Buttons
  6. Locate scss in the root directory
  7. You can modify the _options.scss where you can customize colors, typography, and …
  8. Anytime you save your changes the Buttons showcase page will live reload with your changes!

Customize Buttons with only Sass or Compass

  1. Clone the Buttons repo
  2. Make sure you have Sass installed
  3. Run npm install from your terminal
  4. Edit the _options.scss with your own custom values (see example values below)
  5. Buttons now works with–or without–Compass. So choose one of the following examples accordingly and run from the command line in Buttons's root directory: For Sass run: $ sass --watch --scss scss/buttons.scss:css/buttons.css For Compass run: $ compass watch
  6. The css/buttons.css file should now be updated

Button Options

To edit Buttons simply change values within the _options.scss file. After you make your edits recompile your sass file and your changes will get processed.

  • $ubtn: This prefix stands for Unicorn Button and prevents namespace collisions that could occur if you import buttons as part of your Sass build process. We kindly ask you not to use the prefix $ubtn in your project in order to avoid possilbe name conflicts. Thanks!
  • $ubtn-namespace: Desired CSS namespace for your buttons (default .button)
  • $ubtn-glow-namespace: Desired CSS namespace for your glow effect (default .glow)
  • $ubtn-colors: List of colors in format like (name, background, color).
  • $ubtn-glow-color: Default glow color (#2c9adb, light blue)
  • $ubtn-shapes: List of shapes in format like (square 0px). You can use Sass maps if you're using 3.3. See _options.scss for details.
  • $ubtn-sizes: List of sizes in format like (jumbo 1.5). You can use Sass maps if you're using 3.3. See _options.scss for details.
  • $ubtn-bgcolor: Default button background color (#EEE, light gray)
  • $ubtn-height: Default height, also used to calculate padding on the sides (32px)
  • $ubtn-font-family: Default font family
  • $ubtn-font-color: Default font color (#666, gray)
  • $ubtn-font-weight: Default font weight
  • $ubtn-font-size: Default font size (14px). You can also specify a value of inherit and it will be respected.

buttons-lite's People

Contributors

roblevintennis 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.