Home

Awesome

Mono

A Fractal subtheme, built upon the default Mandelbrot theme.

Mono screenshot

Features

Installing from Scratch

Installing Fractal

  1. Follow the instructions on how to install Fractal.
  2. Follow the instructions on 'Getting Started'.

Note - if you rename the Documentation file 01-index.md that comes with the base install of Fractal, the UI library will use the homepage included with the theme you are using whether that be Mandelbrot or Mono.

Installing Mono Subtheme

You can now install the Mono subtheme using a command line tool from your project root directory using your method of choice.

via NPM:

npm install --save mono-fractal

via the GitHub repo:

npm install --save git+https://git@github.com/ninety-six/mono-fractal.git

Setting up your Fractal install to use Mono

In the setup file for your project you can require and use the subtheme:

// fractal.config.js
'use strict';

const fractal = module.exports = require('@frctl/fractal').create();
const webUITheme = require('mono-fractal')({});

// ... project setup and configuration

fractal.web.theme(webUITheme); // use the sub-classed theme

The Mono subtheme can be configured using many of the same options as the Mandelbrot theme. Any styles and scripts added will be merged into their respective array of files so you need not specify the themes default stylesheet and script but they will always be included.

Note - On Windows, a conflicting command-line application prevents you from running Fractal commands from the project's root directory (where your fractal.js config file will live). To work around this you can rename your config file fractal.config.js and then enter the following code to your package.json file:

"fractal": {
    "main": "fractal.config.js"
}

Fratomic

If you're wanting to give your Fractal-based project a leg up, I have also developed a great set of folders & files that can be used as an awesome starter point for your Fractal UI component library utilising this Mono theme. It's features include:

You can find out more about Fratomic here.