stylable

Stylable - CSS for components

Github星跟踪图

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.

主要指标

概览
名称与所有者wix/stylable
主编程语言TypeScript
编程语言TypeScript (语言数: 4)
平台
许可证MIT License
所有者活动
创建于2017-06-25 11:07:05
推送于2025-04-12 12:36:43
最后一次提交2025-04-12 15:36:41
发布数1422
最新版本名称v6.1.1 (发布于 2024-05-30 16:24:21)
第一版名称v1.0.4 (发布于 2017-07-20 18:02:21)
用户参与
星数1.3k
关注者数23
派生数62
提交数2.8k
已启用问题?
问题数471
打开的问题数116
拉请求数1268
打开的拉请求数4
关闭的拉请求数1215
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?