Giter Club home page Giter Club logo

buttons's Introduction

Buttons

A collection of CSS buttons.

Live demo.

About This Project

My goal was to create a variety of stylish buttons for the web, using minimal markup while taking advantage of the HTML5/CSS3 technologies.

The collection includes 26 different button styles.

Technical Details

Each style has been generated via a component-based system, using SASS (a CSS preprocessor). The process is designed to make it easy and simple to create a new set of button styles in a modular fashion.

Ultimately, the markup is the same for each set of button style:

<button class="btn btn-primary">Button</button>

where class .btn is the generic component class and .btn-primary is the style-specific class.

Leveraging the power of SASS mixins, each style is generated simply by taking a color as an input. For the alpha style, it looks like this:

// Assuming the color variable has been declared, like so:
// $color-primary: #7AD84E
.btn-primary { @include btn-alpha($color-primary); }

How To DIY (Develop It Yourself)

The project comes with a simple Grunt setup to compile the SCSS to the main.css found in root (but feel free to use your own tools). Requires Node.js and the grunt-cli. Pretty standard these days.

Setup

npm i -g grunt-cli # install the grunt-cli
npm i # install local packages

Build

grunt # build those stylesheets

Development: Watch & Rebuild

grunt dev

Final Thoughts

Like any bit of UI, buttons should never be dull. Attention to detail is key in a design with sensibiilty.

Say hello, share your ideas or send me your thoughts to louis at loupbrun dot ca.

Elsewhere On The Web

I’m trying to backtrack articles on the web that refer to this project.

License

MIT

buttons's People

Contributors

dependabot[bot] avatar loup-brun 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.