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.

Main metrics

Overview
Name With Ownerwix/stylable
Primary LanguageTypeScript
Program languageTypeScript (Language Count: 4)
Platform
License:MIT License
所有者活动
Created At2017-06-25 11:07:05
Pushed At2025-04-12 12:36:43
Last Commit At2025-04-12 15:36:41
Release Count1422
Last Release Namev6.1.1 (Posted on 2024-05-30 16:24:21)
First Release Namev1.0.4 (Posted on 2017-07-20 18:02:21)
用户参与
Stargazers Count1.3k
Watchers Count23
Fork Count62
Commits Count2.8k
Has Issues Enabled
Issues Count470
Issue Open Count115
Pull Requests Count1268
Pull Requests Open Count4
Pull Requests Close Count1215
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private