A Flexible Atomic-Focused CSS Toolkit
A flexible atomic-focused CSS toolkit
Biomatic CSS is an atomic-focused CSS library with utilities, layout, and basic components classes for faster development.
Biomatic’s goal is to be a foundation to create and extend a maintainable CSS for your design systems (You can still easily use the complied css file in /dist
).
Biomatic is unopiniated. You can customize atomic classes, colors, font, spacings, and more from the simple SCSS configuration files and use them across your project.
Download the compiled and minified of biomatic.
Unzip and include biomatic.min.css
in your website.
<link href="/path/to/biomatic.min.css" rel="stylesheet">
Alternatively, you can use the unpkg or jsdelivr CDN to load latest compiled of Biomatic
<link href="https://unpkg.com/biomatic/dist/biomatic.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/biomatic/dist/biomatic.min.css" rel="stylesheet">
npm install biomatic --save
yarn add biomatic
To use Biomatic as a foundation and extend it to create your design system. you can either
Clone biomatic
git clone https://github.com/moonrhythm/biomatic.git
cd biomatic
Install dependencies
npm install
yarn
Biomatic uses Gulp
for compiling CSS.
This will install Gulp
and it dependencies.
Then you can play around with the files in /config
Build th new CSS
simply run
gulp build
The CSS output located in /dist
directory.
It is recommended importing Biomatic SCSS source files to your projects from node_module
and then customize it from your project.
In this way, you can keep Biomatic up to date without conflicts, because Biomatic main source and configure files are separated.
main.scss
file.node_module
but copy /config to your project and import /config from your project instead.main.scss
.Example of main.scss
/* import config from your project*/
@import 'config/config';
/* import Biomatic's files from node_module */
@import 'biomatic/src/mixins/mixins';
@import 'biomatic/src/layouts/layout';
@import 'biomatic/src/components/components';
@import 'biomatic/src/utilities/utilities';
@import 'biomatic/src/atomics/atomics';
files in /config
config/
├── _breakpoint.scss
├── _color.scss
├── _initial.scss
├── _radius.scss
├── _reset.scss
├── _pacing.scss
├── _typography.scss
└── config.scss
Code copyright 2017 Theerapong Laowrungrat, 2018 Moon Rhythm. Code released under the MIT license.