pronevich / stylable

Stylable - CSS for components

Home Page:https://stylable.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Updating Documentation

To update the documentation on Stylable.io, follow the instructions here.

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

https://stylable.io

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:TypeScript 95.6%Language:CSS 3.0%Language:HTML 0.7%Language:Ruby 0.7%Language:JavaScript 0.1%