# toolkitcss

> A CSS toolkit class compiled by sass.

Latest version **2.4.0** (published 2024-05-06) · 0 weekly downloads

## Install

```sh
npm install toolkitcss
pnpm add toolkitcss
yarn add toolkitcss
bun add toolkitcss
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.4.0 |
| Published | 2024-05-06 |
| First published | 2022-02-25 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 57.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | elenh |
| Maintainers | elenh |
| Keywords | scss, css-toolkit, css, css-class, utility-class |

## Links

- npm: https://www.npmjs.com/package/toolkitcss
- Repository: https://github.com/yisibell/toolkitcss
- Homepage: https://github.com/yisibell/toolkitcss#readme
- Issues: https://github.com/yisibell/toolkitcss/issues
- npm.io page: https://npm.io/package/toolkitcss

## 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

- 2.4.0 (latest) — 2024-05-06
- 2.3.0 — 2024-04-01
- 2.2.0 — 2024-01-03
- 2.1.1 — 2023-12-21
- 2.1.0 — 2023-12-07
- 2.0.0 — 2023-12-06
- 1.1.1 — 2022-02-26
- 1.1.0 — 2022-02-26
- 1.0.0 — 2022-02-25

## README

# toolkitcss

A CSS toolkit helpers compiled by [sass](https://github.com/sass/dart-sass).

[release Notes](./CHANGELOG.md)

# Installation

``` bash
# yarn
$ yarn add toolkitcss
```

# Usage

2 种方式使用。

-  直接导入编译后的 `css` 文件。
-  导入未编译的 `scss` 源文件。
## 导入编译后的 css

``` js
// @/main.js
import 'toolkitcss/dist/index.css'
```

## 导入 scss 源文件

如果你的项目使用的也是 `sass(dart-sass)`，可以将 `scss` 源文件导入至你的公共 **styles** 中。

**例如：**

``` scss
// @/styles/toolkitcss/index.scss

// 你可以在导入之前自定义编译变量

// 例如，修改 spacing 工具类的上限值
$--spacing-upper-limit-value: 60;

// more ...

@import '~toolkitcss/src/lib/styles/index';

// ...
```

然后在项目入口文件中导入：

``` js
// @/main.js

// ...

import '@/styles/toolkitcss/index.scss' // global css

```

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