Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/unsass/grid

Sass functions and mixins to use grid.
https://github.com/unsass/grid

grid sass unsass

Last synced: 16 days ago
JSON representation

Sass functions and mixins to use grid.

Awesome Lists containing this project

README

        

# Grid

[![Version](https://flat.badgen.net/npm/v/@unsass/grid)](https://www.npmjs.com/package/@unsass/grid)
[![Downloads](https://flat.badgen.net/npm/dt/@unsass/grid)](https://www.npmjs.com/package/@unsass/grid)
[![License](https://flat.badgen.net/npm/license/@unsass/grid)](https://www.npmjs.com/package/@unsass/grid)

## Introduction

Sass functions and mixins to use grid.

## Installing

```shell
npm install @unsass/grid
```

## Usage

### Styles

```scss
@use "@unsass/grid/styles";
```

### Configuration

```scss
@use "@unsass/grid" with (
$columns: 10,
$screens: (
"lg": 1024px
)
);
```

### Options

| Name | Default | Description |
|---------------|---------|-----------------------------------------------------------------------------------------------------|
| `$columns` | `12` | Sets numbers of columns. |
| `$column-gap` | `12px` | Sets the column gap. |
| `$rows` | `6` | Sets numbers of rows. |
| `$rows-gap` | `12px` | Sets the row gap. |
| `$screens` | `()` | Sets breakpoints rules. See here for [default tokens](https://github.com/unsass/breakpoint#tokens). |