stylable

Stylable - CSS for components

Github stars Tracking Chart

Stylable CSS for Components

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.
  • Cuts down on the resulting CSS bundles using "rule-shaking" and other optimizations

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

Learn more in our Documentation Center.

Installation

There are two options for installing Stylable:

For details on both options, see Install & Configure.

Demos

Repository Structure

This repository is a mono-repo containing multiple packages that together comprise the Stylable ecosystem. It uses Lerna and Yarn workspaces to manage the various packages and their dependencies.

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.

Overview

Name With Ownerwix/stylable
Primary LanguageTypeScript
Program languageTypeScript (Language Count: 4)
Platform
License:MIT License
Release Count1420
Last Release Namev6.0.2 (Posted on 2024-04-15 18:38:37)
First Release Namev1.0.4 (Posted on 2017-07-20 18:02:21)
Created At2017-06-25 11:07:05
Pushed At2024-05-05 13:08:47
Last Commit At2024-05-05 16:08:46
Stargazers Count1.3k
Watchers Count24
Fork Count62
Commits Count2.7k
Has Issues Enabled
Issues Count469
Issue Open Count115
Pull Requests Count1246
Pull Requests Open Count4
Pull Requests Close Count1214
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top