# stylelint-themeizer

> Stylelint plugin for "Themeizer" ecosystem

Latest version **0.0.5** (published 2022-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install stylelint-themeizer
pnpm add stylelint-themeizer
yarn add stylelint-themeizer
bun add stylelint-themeizer
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2022-02-19 |
| First published | 2022-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Savelyev Alexander |
| Maintainers | vordgi |
| Keywords | stylelint-plugin, themeizer, theming, css-variables, variables, colors, css, styles |

## Links

- npm: https://www.npmjs.com/package/stylelint-themeizer
- Repository: https://github.com/vordgi/stylelint-themeizer
- Homepage: https://github.com/vordgi/stylelint-themeizer#readme
- Issues: https://github.com/vordgi/stylelint-themeizer/issues
- npm.io page: https://npm.io/package/stylelint-themeizer

## Dependencies (1)

- [themeizer-cli](https://npm.io/package/themeizer-cli.md) 0.3.3

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2022-02-19
- 0.0.4 — 2022-02-12
- 0.0.3 — 2022-02-08
- 0.0.2 — 2022-01-27
- 0.0.1 — 2022-01-27

## README

# Stylelint themeizer
Stylelint plugin for "Themeizer" ecosystem.

## Features
Checking for the existence of all colors (as well as linear and radial gradients) as a css variable.
Replace them automatically when using stylelint with the `--fix` option.

## Installation
```bash
$ npm install --save-dev stylelint-themeizer
```
_or_
```bash
$ yarn add --dev stylelint-themeizer
```

## Usage
1. Add the plugin to the stylelint config.

_.stylelintrc.json_
```json
{
	"plugins": [
		"stylelint-themeizer"
	]
}
```

2. Configure the rule
```json
{
	"plugins": [
		"stylelint-themeizer"
	],
	"rules": {
		"themeizer/variables": {
			"url": "https://example.com/api/themes/",
			"revalidate": 0.5,
			"lookedTheme": "default-theme-name",
			"headers": {
				"key": "value"
			},
			"autoFix": true
		}
	}
}
```
_where_:
`url` – api url to load and read colors
`revalidate` – period in which to fetch styles (in minutes)
`lookedTheme` – the name of the main theme in which to look colors
`headers` – an object of headers required for reading from api
`autoFix` – enable autofixes when running with --fix. Defaults to `true`

## Themeizer ecosystem
* [Figma plugin "Themeizer"](https://www.figma.com/community/plugin/1065764293242137356/Themeizer) – plugin for changing themes in design and publishing them in the cloud;
* [themeizer](https://www.npmjs.com/package/themeizer) – package for embedding themes from "Themeizer" Figma plugin at the server level or at build stage;
* [next-themeizer](https://www.npmjs.com/package/next-themeizer) – package for adding "Themeizer" ecosystem interaction configuration to your next.js application;
* [themeizer-cli](https://www.npmjs.com/package/themeizer-cli) – package to automatically replace published colors (as well as linear and radial gradients) in style files with a css variable;
* [stylelint-themeizer](https://www.npmjs.com/package/stylelint-themeizer) – stylelint plugin for "Themeizer" ecosystem.

## License

[MIT](https://github.com/vordgi/stylelint-themeizer/blob/main/LICENSE)

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