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

https://github.com/nickrigby/silc-utilities


https://github.com/nickrigby/silc-utilities

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# silc utilites [![npm version](https://badge.fury.io/js/silc-utilities.svg)](https://badge.fury.io/js/silc-utilities)
The utilities module is a small web component for the [silc framework](https://silc.io).

## Display
Display elements, globally, or at specific breakpoints.

```html


Display block at all screen sizes



```

### Modifiers
Elements can be displayed at specific breakpoints using modifier classes in the `silc-display--{display-type}-{breakpoint}` format e.g.
```html


Display none at all screen sizes




Display inline at small screen sizes and above



```

### Variables
Display types can be configured via the `$silc-utilities--display-types` variable. By default, the following display types are defined:

```scss
$silc-utilities--display-types: (
'block',
'inline',
'inline-block',
'flex',
'none'
) !default;
```

## Text alignment
Align text, globally, or at specific breakpoints

```html


Align initial (left) at all screen sizes



```

### Modifiers
Text can be aligned at specific breakpoints using modifier classes in the `silc-align--{alignment-type}-{breakpoint}` format e.g.
```html


Align right at all screen sizes




Align center at small screen sizes and above



```

### Variables
Display types can be configured via the `$silc-utilities--display-types` variable. By default, the following display types are defined:

```scss
$silc-utilities--alignment-types: (
'left',
'right',
'center',
'justify'
) !default;
```

## Margin
Add margin globally, to specific sides, and at specific breakpoints

```html


```

### Variables
Margin types can be configured via the `$silc-utilities--margin-types` variable. By default, the following margin types are defined:

```scss
$silc-utilities--margin-types: (
'top',
'right',
'bottom',
'left'
) !default;
```

Margin sizes can be configured via the `$silc-utilities--margin` variable. By default, the following margin sizes are defined:

```scss
$silc-utilities--margin: (
('0', '0'),
('auto', 'auto'),
('1', '.25rem'),
('2', '.5rem'),
('3', '.75rem'),
('4', '1rem')
) !default;
```

## Padding
Add padding globally, to specific sides, and at specific breakpoints

```html


```

### Variables
Padding types can be configured via the `$silc-utilities--padding-types` variable. By default, the following padding types are defined:

```scss
$silc-utilities--padding-types: (
'top',
'right',
'bottom',
'left'
) !default;
```

Padding sizes can be configured via the `$silc-utilities--padding` variable. By default, the following padding sizes are defined:

```scss
$silc-utilities--padding: (
('0', '0'),
('1', '.25rem'),
('2', '.5rem'),
('3', '.75rem'),
('4', '1rem')
) !default;
```

## Colors
Add color and background color

```html


```

### Variables
Color and background colors can be configured via the `$silc-utilities--colors` variable. By default, the following colors are defined:

```scss
$silc-utilities--colors: (
('primary', '#369'),
('secondary', '#4E7DAB'),
('tertiary', '#7BA3CA'),
('white', '#fff'),
('black', '#000')
) !default;
```