Skip to content

Commit

Permalink
Bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
bramsmulders committed Oct 15, 2021
1 parent 96835f7 commit cf05d88
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## 5.1.0 - 15-october-2021

- Added `responsive.color-scheme` mixin that lets you define your dark mode custom properties in a way that supports a toggle component
- Update dependencies & housekeeping

## 5.0.2 - 07-june-2021

- Refactor slash-based divisions(`/`) with `math.div()` functions as per: [slash-div](https://sass-lang.com/documentation/breaking-changes/slash-div)
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@supple-kit/supple-css",
"version": "5.0.2",
"version": "5.1.0",
"description": "Reliable and testable Sass framework. Fluid, Variable, supple if you will",
"main": "index.scss",
"repository": "https://github.com/supple-kit/supple-css.git",
Expand Down
18 changes: 9 additions & 9 deletions tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Read more about [Supple CSS](https://github.com/supple-css/supple).
Supple’s tools are categorised so you only need to `@use` the tools you want:

```scss
@use 'node_modules/@supple-kit/supple-css/tools/space';
@use 'node_modules/@supple-kit/supple-css/tools/responsive';
@use "node_modules/@supple-kit/supple-css/tools/space";
@use "node_modules/@supple-kit/supple-css/tools/responsive";

.your-module {
@include responsive.mq("lap") {
Expand All @@ -37,7 +37,7 @@ Supple’s tools are categorised so you only need to `@use` the tools you want:
This layer contains everything space related. You can `@use` this tool in your own component like this:

```scss
@use 'node_modules/@supple-kit/supple-css/tools/space';
@use "node_modules/@supple-kit/supple-css/tools/space";
```

### function: `space.get()`
Expand Down Expand Up @@ -93,7 +93,7 @@ Returns the spacing-factor value. The `$name` must be present in `defaults.$spac
This layer is used to convert any `px` value to `rem`. You can `@use` this tool in your own component like this:

```scss
@use 'node_modules/@supple-kit/supple-css/tools/rem';
@use "node_modules/@supple-kit/supple-css/tools/rem";
```

### function: `rem.convert()`
Expand Down Expand Up @@ -127,7 +127,7 @@ Converts `px` values to `rem`. If you pass in another format instead of `px` it
This layer contains some accessibility helper mixins. You can `@use` this tool in your own component like this:

```scss
@use 'node_modules/@supple-kit/supple-css/tools/a11y';
@use "node_modules/@supple-kit/supple-css/tools/a11y";
```

### Mixin: `a11y.visually-hidden`
Expand Down Expand Up @@ -161,7 +161,7 @@ This layer contains all the functions & mixins regarding to typography.
You can `@use` this tool in your own component like this:

```scss
@use 'node_modules/@supple-kit/supple-css/tools/typography';
@use "node_modules/@supple-kit/supple-css/tools/typography";
```

### Mixin `typography.font-size`
Expand Down Expand Up @@ -213,10 +213,10 @@ This layer contains all the tools for responsive web design.
You can `@use` this tool in your own component like this:

```scss
@use 'node_modules/@supple-kit/supple-css/tools/responsive';
@use "node_modules/@supple-kit/supple-css/tools/responsive";
```

### Mixin: `responsive.color-sheme()`
### Mixin: `responsive.color-scheme()`

A little wrapper that lets you define your dark mode custom properties in a
way that supports a toggle component.
Expand All @@ -228,7 +228,7 @@ way that supports a toggle component.
// Light theme colors
--color-slate: #cccccc;

@include responsive.color-sheme() {
@include responsive.color-scheme() {
// Dark theme colors
--color-slate: #000000;
}
Expand Down

0 comments on commit cf05d88

Please sign in to comment.