1.1.2 • Published 4 years ago

mono-fractal v1.1.2

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

Mono

A Fractal subtheme, built upon the default Mandelbrot theme.

Mono screenshot

Features

  • Minimalist & clean styling giving greater clarity
  • Typography updates
  • Component notes displayed more prominently
  • Tabbed 'View', 'HTML', and 'Context' area made more user friendly & accessible
  • More 'baked-in' styling for Documentation pages
  • A solid foundation which can be easily installed into your existing Fractal project or used as part of the Fratomic starter project (See below)

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:

  • Use of Twig as the templating engine
  • Component folder structure based on Atomic Design principles
  • Folder structure that works with Fractal
  • Markup, config and markdown files for typography, buttons, form elements and tables included
  • Statuses for components & documentation pages improved
  • Template export function included

You can find out more about Fratomic here.

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

5 years ago