# @stylable/core

> CSS for Components

Latest version **6.1.1** (published 2024-05-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @stylable/core
pnpm add @stylable/core
yarn add @stylable/core
bun add @stylable/core
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.1.1 |
| Published | 2024-05-30 |
| First published | 2018-08-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=18.12.0 |
| Dependencies | 14 |
| Unpacked size | 5.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1274 |
| Author | Wix.com |
| Maintainers | tomrav, avi.vahl, idoros, baraki, cijoe, alexswix |

## Links

- npm: https://www.npmjs.com/package/@stylable/core
- Repository: https://github.com/wix/stylable.git#master
- Homepage: https://stylable.io
- Issues: https://github.com/wix/stylable/issues
- npm.io page: https://npm.io/package/@stylable/core

## Dependencies (14)

- [cssesc](https://npm.io/package/cssesc.md) ^3.0.0
- [postcss](https://npm.io/package/postcss.md) ^8.4.38
- [postcss-js](https://npm.io/package/postcss-js.md) ^4.0.1
- [postcss-nested](https://npm.io/package/postcss-nested.md) ^6.0.1
- [lodash.clonedeep](https://npm.io/package/lodash.clonedeep.md) ^4.5.0
- [is-vendor-prefixed](https://npm.io/package/is-vendor-prefixed.md) ^4.0.0
- [postcss-safe-parser](https://npm.io/package/postcss-safe-parser.md) ^7.0.0
- [lodash.clonedeepwith](https://npm.io/package/lodash.clonedeepwith.md) ^4.5.0
- [postcss-value-parser](https://npm.io/package/postcss-value-parser.md) ^4.2.0
- [@tokey/imports-parser](https://npm.io/package/@tokey/imports-parser.md) ^1.0.0
- [@file-services/resolve](https://npm.io/package/@file-services/resolve.md) ^9.3.0
- [css-selector-tokenizer](https://npm.io/package/css-selector-tokenizer.md) ^0.8.0
- [@tokey/css-value-parser](https://npm.io/package/@tokey/css-value-parser.md) ^0.1.4
- [@tokey/css-selector-parser](https://npm.io/package/@tokey/css-selector-parser.md) ^0.6.2

## Recent versions

- 6.1.1 (latest) — 2024-05-30
- 5.19.0 (release-5.x) — 2024-03-05
- 6.0.0-rc.3 (next) — 2024-02-01
- 4.15.1 (release-4.x) — 2022-08-14
- 3.13.2 (release-3.x) — 2021-12-09
- 1.4.0 (release-1.x) — 2020-03-05
- 6.1.0 — 2024-05-21
- 6.0.2 — 2024-04-15
- 6.0.1 — 2024-03-19
- 6.0.0 — 2024-03-13
- 5.18.1 — 2024-02-12
- 5.18.0 — 2024-01-14
- 5.17.0 — 2023-12-03
- 6.0.0-rc.2 — 2023-11-08
- 6.0.0-rc.1 — 2023-11-08
- … 203 more at https://npm.io/package/@stylable/core/versions

## README

# @stylable/core

[![npm version](https://img.shields.io/npm/v/@stylable/core.svg)](https://www.npmjs.com/package/stylable/core)

`@stylable/core` is at the center of how Stylable operates. It provides the basic capabilities required for Stylable to parse stylesheets and transform their output to valid plain CSS.

## Running Stylable

Follow these instructions in order to run Stylable in development mode, this allows you to run the package tests with hot-loading enabled.

1. Clone this repo
2. `cd stylable`
3. `npm i`
4. `cd ./packages/stylable`
5. `npm start`
6. Open your browser to [`http://localhost:8080/tests.bundle`](http://localhost:8080/tests.bundle)

## How it works

Stylable's workflow contains two main parts that together perform the CSS transpilation.

- `stylable-processor` - Parses each `stylesheet` separately into its own AST ([abstract syntax tree](https://en.wikipedia.org/wiki/Abstract_syntax_tree), extracting the required data without any resolution of dependencies in other files.
- `stylable-transformer` - Processes each stylesheet using the previously created data including other file dependencies. Transforms our Stylable CSS into vanilla CSS.

## License

Copyright (c) 2017 Wix.com Ltd. All Rights Reserved. Use of this source code is governed by a [MIT license](./LICENSE).

---
_Source: https://npm.io/package/@stylable/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
