Skip to content

ThisIsMissEm/stylable

 
 

Repository files navigation

Stylable CSS for Components

npm version Build Status

Stylable enables you to write reusable, highly-performant components. Each component exposes a style API that maps its internal parts so you can reuse components across teams without sacrificing stylability.

  • Scopes styles to components so they don't "leak" and clash with other styles.
  • Enables custom pseudo-classes and pseudo-elements that abstract the internal structure of a component. These can then be styled externally.
  • Uses themes so you can apply different look and feel across your web application.

At build time, the preprocessor converts the Stylable CSS into flat, static, valid vanilla CSS that works cross-browser.

Learn more in our Documentation Center.

Installation

There are two options for installing Stylable:

  • Write your own project based on a Stylable boilerplate
  • Install Stylable to work with an existing project as follows:

Install stylable and stylable-integration as a dependency in your local project.

Using npm:

npm install stylable stylable-integration --save-dev

Using Yarn:

yarn add stylable stylable-integration

For details on both options, see Install & Configure.

Contributing

Read our contributing guidelines for details on our code of conduct, and the process for submitting pull requests.

License

Copyright (c) 2017 Wix.com Ltd. All Rights Reserved. Use of this source code is governed by a BSD license.

About

Stylable - CSS for components

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • TypeScript 93.6%
  • CSS 3.9%
  • Ruby 1.1%
  • Other 1.4%