/vanilla-css

vanilla-css.com

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

vanilla css logo

Vanilla CSS - fast, lightweight, easy to understand framework for working with your front-end

Travis build status Coverage Status npm version

Introduction The Vanilla CSS team maintains every byte of code in the framework and works hard each day to make sure it is small and intuitive. Who's using Vanilla CSS? Glad you asked! Here are a few:

  • Facebook
  • Google
  • YouTube
  • Yahoo
  • Wikipedia
  • Twitter
  • Amazon
  • LinkedIn
  • MSN
  • eBay
  • Microsoft
  • Tumblr
  • Apple
  • Pinterest
  • PayPal
  • Reddit
  • Netflix
  • Stack Overflow

In fact, Vanilla CSS is already used on more websites than LESS, SASS, Stylus, and BEM - combined.

Download

Ready to try Vanilla CSS? Follow these simple steps

  • Step 1 - Create a file - vanilla.css
  • Step 2 - Add the following line to the top
/* my vanilla css */
  • Step 3 - Bam! Bob's your uncle! Now you're ready to fill in the rest of that page with Vanilla CSS!

Examples

Element Selector - Make a <p> tag red

p {
    color: red;
}

Id selector - Make an element with an id my-id blue

#my-id {
    color: blue;
}

Class selector - Make an element with class 'my-class' yellow

.my-class {
    color: yellow;
}

  • Step 4 - Deploy

Deploying Vanilla CSS in your next HTML project is as simple as placing a link element in the head of your HTML document.

Example

<head>
<link rel="stylesheet" href="vanilla.css">
</head>

Just save your HTML document, open it in your favorite web browser, and see the delicious results!

Testimonials

Native support for HTML5 and other cutting-edge technologies makes me keep coming back to Vanilla CSS, time after time.

Works great in all browsers, other than IE8 which can get a bit tricky, this framework has saved my life time after time.

Further Reading