Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/grabss/grabcss

A minimal, utility-first CSS framework for rapid UI development.
https://github.com/grabss/grabcss

css css-framework minimal postcss utility-first

Last synced: 2 months ago
JSON representation

A minimal, utility-first CSS framework for rapid UI development.

Awesome Lists containing this project

README

        



grabss Inc.

grabcss


A minimal, utility-first CSS framework for rapid UI development.


NPM Version
Package License

---

## Installation

```console
npm i grabcss
```

## How to use

Using built CSS

```js
import "grabcss";

// Alternatively, you can import only the CSS file
// import "grabcss/grab.css";
```

Using SCSS

```scss
@use "grabcss/scss/mediaquery" as mediaquery;
@use "grabcss/scss/variables" as variables;
@use "grabcss/scss/utilities";
```

Using SCSS with customized variables

```scss
@use "grabcss/scss/mediaquery" as mediaquery;
@use "path/to/your-customized-variables" as variables;
@use "grabcss/scss/utilities";
```

```scss
// path/to/your-customized-variable.scss
@use "sass:map";
@use "grabcss/scss/variables" as variables with (
// overrides
$color-primary: #00a596
);

// additions
$color-light-border: #dce1e6;

$colors: map.merge(
variables.$colors,
(
"light-border": $color-light-border,
)
);

@forward "grabcss/scss/variables";
```