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.
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";
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).
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.
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
.
$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)
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.
Change or update values and features Nix
- Clone the Nix repository;
- Run
yarn
to install dependencies; - Run
yarn build:nix
to build oryarn watch:nix
to watch the changes; - Run
yarn start
to up local documentation;