/nix

Created to facilitate the customization of the structure of your project.

Primary LanguageSCSSMIT LicenseMIT

image

This library was created to help you customize the structure of your project with classes that change properties such as margins and alignments, including support for responsive.

Install

Download this repository or install the package aurum-nix:

yarn add aurum-nix

And import into your project:

<link rel="stylesheet" type="text/css" href="node_modules/aurum-nix/dist/nix.min.css" />

or

import "aurum-nix/dist/nix.min.css";

Usage

Write the classes as you would write css properties and values separating with _ between the properties and the values.

By default, the classes have a prefix nix- that you should apply before the class name.

You can use the responsive classes with the suffix --xs for screens up to 768px (mobile), --sm for screens up to 1024px (tablets and small screens), --md for screens up to 1200px (medium screens) and --lg for screens up to 1600px (large screens).

Customization

You can customize it for your own project, change the values of variables then import the Nix file node_modules/aurum-nix/nix in your SASS.

Prefix

Change the prefix name to your preferred:

$prefix: 'nix-';

In this example, your class name will be nix-diplay_block.

or set the prefix to a blank value:

$prefix: '';

With this example, your class name will be diplay_block.

Breakpoints

$xs: 768px; // screens up to 768px (mobile)
$sm: 1024px; // screens up to 1024px (tablet/desktops small screens)
$md: 1200px; // screens up to 1200px (desktops medium screens)
$lg: 1600px; // screens up to 1200px (desktops large screens)

Sizes

These sizes are used for margins and paddings:

$int-size: 5; // every 5px
$max-size: 100; // up to 100px

$int-size is the interval variable to sizes, and $max-size is the max size to generate.

Development

Change or update values and features Nix

  1. Clone the Nix repository;
  2. Run yarn to install dependencies;
  3. Run yarn build:nix to build or yarn watch:nix to watch the changes;
  4. Run yarn start to up local documentation;