0.7.12 • Published 1 year ago

@get-sinister/sass v0.7.12

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

SINISTER

Sinister is an SCSS and JS utility library.

The SCSS library tries to simplify daily common cases like creating a grid, managing spacings like paddings, gaps etc, managing project color palette in SCSS level as well as give usefull utility mixin and functions. For more read the documentation.

You can implement Sinister in your SCSS routine just by importing it to your SCSS file.

The JS part is currently in hietus, with not much to offer.

Most of the mixins and functions are unit tested and work as expected.

That being said, this is a one-man project. I only work on the it only when I have some free time, so be aware that some things might not work as intended since coverage is not 100% yet.

Installation

npm i @get-sinister/sass

Changelog

Not working at the moment

Configuration

In order for sinister to work, 2 files are needed.

  • In your root directory, where npm_package is located, create a file called _sin.config.scss.

    .
    ├── package.json
    ├── node_modules/
    ├── _sin.config.scss

    Then open _sin.config.scss file and add the boilerplate to start working.

      _sin.config.scss content
        @use './node_modules/@get-sinister/sass/sin-core/functions/public/set-config-func' as sin;
        $configuration: sin.set-config(
        (
          breakpoints: (
            new-breakpoint: 420px;
          )
        )
      );

    tip: at any point in your scss file you can type @debug help(); to print sinister configuration values.

    tip: keep in mind that if you update _sin.config.scss values, and you are using sass --watch you will have to restart.

  • Inside your scss files directory create a file called _sin.scss. You will have to @use this file to load sinister in your project.

      ├── package.json
      ├── node_modules/
      ├── _sin.config.scss
      ├── scss/
        ├── custom.scss     # Main scss file
        ├── pages/          # Folder with more scss files
        ├── _sin.scss       # file to import `Sinister` to your project.

    To see the scema and default values check the documentation.

  • The functionality of Sinister lies within sin-core folder. All you have to do is load this folder into a file in order to start working with it. Open _sin.scss file and add the @forward link to the package.

          @forward '../node_modules/@get-sinister/sass/sin-core';
  • Importing sinister to a new file is easy. Use the @use to import it to the file you are working on. Read More

ex.

      @use '../sin' as *;

Keep in mind that the path is relative.

Documentation

For more, refer to the online documentation.

Warning!

The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.the software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

0.7.1

1 year ago

0.7.0

1 year ago

0.7.11

1 year ago

0.7.12

1 year ago

0.6.72-beta.1

2 years ago

0.6.69-beta.8

2 years ago

0.6.70-beta.5

2 years ago

0.6.72-beta.4

2 years ago

0.6.70-beta.1

2 years ago

0.6.70-beta.3

2 years ago

0.6.72-beta.6

2 years ago

0.6.70-beta.2

2 years ago

0.6.69-beta.20

2 years ago

0.6.75

2 years ago

0.6.74

2 years ago

0.6.69-beta.15

2 years ago

0.6.69-beta.14

2 years ago

0.6.69-beta.7

2 years ago

0.6.69-beta.6

2 years ago

0.6.69-beta.5

2 years ago

0.6.69-beta.4

2 years ago

0.6.69-beta.2

2 years ago

0.6.65-beta.1

2 years ago

0.6.60-beta.12

2 years ago

0.6.60-beta.11

2 years ago

0.6.65-beta-1

2 years ago

0.6.62-beta-1

2 years ago

0.6.56-beta.0

2 years ago

0.6.58-beta.0

2 years ago

0.6.60-beta.3

2 years ago

0.6.60-beta.4

2 years ago

0.6.60-beta.2

2 years ago

0.6.60-beta.7

2 years ago

0.6.60-beta.8

2 years ago

0.6.60-beta.5

2 years ago

0.6.60-beta.6

2 years ago

0.6.59-beta.0

2 years ago

0.6.57-beta.0

2 years ago

0.6.60-beta.9

2 years ago

0.6.59-beta.1

2 years ago

0.6.59-beta.2

2 years ago

0.6.55-beta.0

2 years ago

0.6.60-beta.10

2 years ago

0.6.60-beta.0

2 years ago

0.5.283

2 years ago

0.5.282

2 years ago

0.5.281

2 years ago

0.5.271

2 years ago

0.5.27

2 years ago

0.5.263

2 years ago

0.5.262

2 years ago

0.5.26

2 years ago

0.5.25

2 years ago

0.5.24

2 years ago

0.5.23

2 years ago

0.5.22

2 years ago

0.5.0

2 years ago

0.5.21

2 years ago

0.5.2

2 years ago

0.5.167

2 years ago

0.5.166

2 years ago

0.5.165

2 years ago

0.5.163

2 years ago

0.5.162

2 years ago

0.5.161

2 years ago

0.5.160

2 years ago

0.5.156

2 years ago

0.5.155

2 years ago

0.5.154

2 years ago

0.5.153

2 years ago

0.5.152

2 years ago

0.5.151

2 years ago

0.5.15

2 years ago

0.5.14

2 years ago

0.5.13

2 years ago

0.5.12

2 years ago

0.5.1

2 years ago