Styleguide

Colours

Colours

$white
$black
$red
$red-dark
$green
$green-dark
$yellow
$yellow-dark
$pink
$pink-dark
$blue
$blue-dark
$blue-very-dark
			
<div class="colour-swatch bg-white b-br2">$white</div>


<div class="colour-swatch bg-black b-br2">$black</div>


<div class="colour-swatch bg-red b-br2">$red</div>


<div class="colour-swatch bg-red-dark b-br2">$red-dark</div>


<div class="colour-swatch bg-green b-br2">$green</div>


<div class="colour-swatch bg-green-dark b-br2">$green-dark</div>


<div class="colour-swatch bg-yellow b-br2">$yellow</div>


<div class="colour-swatch bg-yellow-dark b-br2">$yellow-dark</div>


<div class="colour-swatch bg-pink b-br2">$pink</div>


<div class="colour-swatch bg-pink-dark b-br2">$pink-dark</div>



<div class="colour-swatch bg-blue b-br2">$blue</div>


<div class="colour-swatch bg-blue-dark b-br2">$blue-dark</div>


<div class="colour-swatch bg-blue-very-dark b-br2">$blue-very-dark</div>


			

Greys

$white
$gray1
$gray2
$gray3
$gray4
$gray5
$black
			
<div class="colour-swatch bg-white b-br2">$white</div>


<div class="colour-swatch bg-gray1 b-br2">$gray1</div>


<div class="colour-swatch bg-gray2 b-br2">$gray2</div>


<div class="colour-swatch bg-gray3 b-br2">$gray3</div>


<div class="colour-swatch bg-gray4 b-br2">$gray4</div>


<div class="colour-swatch bg-gray5 b-br2">$gray5</div>


<div class="colour-swatch bg-black b-br2">$black</div>


			

Typography

Font Sizes/ scale

A page heading

A page heading

A page heading

A page heading

A page heading

A page heading

			<p class="f1">A page heading</p>
<p class="f2">A page heading</p>
<p class="f3">A page heading</p>
<p class="f4">A page heading</p>
<p class="f5">A page heading</p>
<p class="f6">A page heading</p>

			

Headings

A page heading

A page heading

A page heading

A page heading

A page heading
A page heading
			<h1>A page heading</h1>
<h2>A page heading</h2>
<h3>A page heading</h3>
<h4>A page heading</h4>
<h5>A page heading</h5>
<h6>A page heading</h6>
			

Paragraphs

This is an example of an introductory paragraph. As such the font size is slightly larger which makes it stand out more. It should only be used on articles, and not for decoration.

This is an example of a normal paragraph. This is the default text size for paragraphs. If you want to use this size elsewhere you can apply the .font-normal class to the element you want to change.

			<p class="intro">This is an example of an introductory paragraph. As such the font size is slightly larger which makes it stand out more. It should only be used on articles, and not for decoration.</p>
<p>This is an example of a normal paragraph. This is the default text size for paragraphs. If you want to use this size elsewhere you can apply the <code>.font-normal</code> class to the element you want to change.</p>
			

Blockquotes

This isn't really a quote but it serves to demo how they should work.
			<blockquote>This isn't really a quote but it serves to demo how they should work.</blockquote>
			

Meta

This is some meta text. It can be used for all sorts of content like breadcrumbs or post dates or whatever else is supplemental information.

Home > Archives > Post Title

			<p class="meta">This is some meta text. It can be used for all sorts of content like breadcrumbs or post dates or whatever else is supplemental information.</p>
<p class="meta"><a href="#">Home</a> <span class="sep">></span> <a href="#">Archives</a> <span class="sep">></span> Post Title</p>


			

Unordered Lists

  • A list item
  • A list item
  • A list item
  • A list item
			<ul>
	<li>A list item</li>
	<li>A list item</li>
	<li>A list item</li>
	<li>A list item</li>
</ul>

			

Ordered Lists

  1. A list item
  2. A list item
  3. A list item
  4. A list item
			<ol>
	<li>A list item</li>
	<li>A list item</li>
	<li>A list item</li>
	<li>A list item</li>
</ol>

			

Buttons

Default Buttons

			<a href="#" class="button">Button text</a>
<a href="#" class="button">😄 Button text</a>
<button class="button">Button text</button>
<input type="button" class="button" value="Button text">
			

Large Buttons

			<a href="#" class="button jumbo">Button text</a>
<a href="#" class="button jumbo">😄 Button text</a>
<button class="button jumbo">Button text</button>
<input type="button" class="button jumbo" value="Button text">
			

Disabled Buttons

			<a href="#" class="button disabled">Button text</a>
<a href="#" class="button disabled">😄 Button text</a>
<button class="button" disabled>Button text</button>
<input type="button" class="button" disabled value="Button text">
			

Full width Buttons

			<a href="#" class="button greedy">Button text</a>
<a href="#" class="button greedy">😄 Button text</a>
<button class="button greedy">Button text</button>
<input type="button" class="button greedy" value="Button text">
			

Ghost Buttons

			<a href="#" class="button ghost">Button text</a>
<a href="#" class="button ghost">😄 Button text</a>
<button class="button ghost">Button text</button>
<input type="button" class="button ghost" value="Button text">
			

Button Colours

			<a href="#" class="button">Button text</a>
<a href="#" class="button secondary">Button text</a>
<a href="#" class="button tertiary">Button text</a>

			

Small Buttons

			<a href="#" class="button teeny">Button text</a>
<a href="#" class="button teeny">😄 Button text</a>
<button class="button teeny">Button text</button>
<input type="button" class="button teeny" value="Button text">
			

Form

Input

Disabled styles also work for textareas and other input form elements.

			<label for="inputbox">A form label</label>
<input type="text" id="inputbox" placeholder="placeholder" />

<label for="disabledinputbox">A disabled form label</label>
<input type="text" id="disabledinputbox" disabled placeholder="placeholder" />
			

Textarea

			<label for="textareabox">A form label</label>
<textarea id="textareabox"></textarea>
			

Label

			<label>A form label</label>
			

Legend and Fieldset

Field Legend
			<fieldset>
	<legend>Field Legend</legend>
	<input type="text" placeholder="placeholder" />
</fieldset>
			

Radio group

			<label>Colour picker</label>
<div class="radioGroup">
	<input name="color-scheme" type="radio" value="light (default)" label="Light (Default)" />
	<input name="color-scheme" type="radio" value="dark" label="Dark" />
	<input name="color-scheme" type="radio" value="red" label="Red" />
	<input name="color-scheme" type="radio" value="green" label="Green" />
	<input name="color-scheme" type="radio" value="pink" label="Pink" />
	<input name="color-scheme" type="radio" value="blue" checked="checked" label="Blue" />
	<input name="color-scheme" type="radio" value="yellow" label="Yellow" />
</div>

<label>Font selector (old style radio group)</label>
<div class="radio-group text-font-group">
	<label class="group checked" style="font-family: Arial;"><input name="text-fonts" type="radio" value="Arial" checked="checked">Arial</label>
	<label class="group" style="font-family: &quot;Comic Sans MS&quot;;"><input name="text-fonts" type="radio" value="Comic Sans MS">Comic Sans MS</label>
	<label class="group" style="font-family: &quot;Times New Roman&quot;;"><input name="text-fonts" type="radio" value="Times New Roman">Times New Roman</label>
</div>
			

List group

A list of radio elements that makes them easy to select and understand.

			<form class="select list-group">

	<label class="group gif-classic selected">
		<input type="radio" value="gif-classic" checked="" name="export">
		<h3>Animated Gif</h3>
	</label>

	<label class="group gif-twitter">
		<input type="radio" value="gif-twitter" name="export">
		<h3>Twitter Animated Gif</h3>
		<p>Twitter adds a pause at the end of animated gifs so they don't loop smoothly. This fixes that.</p>
	</label>

	<label class="group save-image">
		<input type="radio" value="save-image" name="export">
		<h3>Save an image</h3>
		<p>A single image with each frame laid out side by side like a comic.</p>
	</label>

	<label class="group save-file">
		<input type="radio" value="save-file" name="export">
		<h3>Save the ninja animation file</h3>
		<p>This can only be opened in the <a href="/desktop-app/" class="brush-ninja-app" target="_blank">Brush Ninja desktop app</a></p>
	</label>

</form>
			

Group item

A radio element that forms part of a group. These are generally used with a list-group or radio-group.

			<label class="group gif-classic selected">
	<input type="radio" value="gif-classic" checked="" name="export">
	<h3>Animated Gif</h3>
</label>

<label class="group gif-classic selected">
	<input type="radio" value="gif-classic" checked="" name="export">
	<h3>Animated Gif</h3>
</label>
			

File Input

Style a file uploader. This is designed exclusively for use on modal windows. Might need something more flexible if we want to use it elsewhere.

			<label for="file-uploader" class="file-upload">
	Choose an Image File
	<input type="file" id="file-uploader" />
</label>

			

Checkbox

			<label for="inputcheckbox1" class="checkbox">
	<input type="checkbox" checked id="inputcheckbox1" />
	A form label
</label>

<label for="inputcheckbox2" class="checkbox f6">
	<input type="checkbox" id="inputcheckbox2" />
	A form label
</label>

			

Radio

			<label for="inputradio1" class="radio">
	<input type="radio" name="radiobox" checked id="inputradio1" />
	A form label
</label>

<label for="inputradio2" class="radio f6">
	<input type="radio" name="radiobox" id="inputradio2" />
	A form label
</label>


			

Search input

			<input type="search" placeholder="Search..." />
			

Element

Error

We are setting display: block since the error message defaults to hidden.

This is an error.
			<div class="error show">
This is an error.
</div>
			

Widget

Widget Title

This is the content for the widget.

  • A widget list.
  • A widget list.
  • A widget list.
  • A widget list.
			<section class="widget">
	<h2>Widget Title</h2>
	<p>This is the content for the widget.</p>
	<ul>
		<li>A widget list.</li>
		<li>A widget list.</li>
		<li>A widget list.</li>
		<li>A widget list.</li>
	</ul>
</section>
			

Pagination

This gets generated by {% include pagination.html %}.

			<ul class="pager">
	<li class="previous"><a href="/blog/">← Newer Posts</a></li>
	<li class="next"><a href="/blog/page/2/">Older Posts →</a></li>
</ul>
			

Social Icons

			<a href="https://www.youtube.com/@brushninja" class="social youtube" rel="me noreferrer noopener nofollow"><span class="screen-reader-text">Brush Ninja on Youtube</span></a>
<a href="https://mastodon.social/@binarymoon" class="social mastodon" rel="me noreferrer noopener nofollow"><span class="screen-reader-text">Binary Moon (the Brush Ninja creator) on Mastodon</span></a>
<a href="https://www.instagram.com/BrushNinjaApp/" class="social instagram" rel="me noreferrer noopener nofollow"><span class="screen-reader-text">Brush Ninja on Instagram</span></a>
<!-- <a href="https://www.facebook.com/brushninja/posts/" class="social facebook" rel="me noreferrer noopener nofollow"><span class="screen-reader-text">Brush Ninja on Facebook</span></a> -->
<a href="https://twitter.com/binarymoon" class="social twitter" rel="me noreferrer noopener nofollow"><span class="screen-reader-text">Binary Moon (the Brush Ninja creator) on Twitter</span></a>
<a href="/contact/" class="social contact"><span class="screen-reader-text">Contact Me</span></a>

			

Loading

Loading
			<div class="loading">Loading</div>
			

Loading Small

			<div class="loading__small"></div>
			

Button with description

A description for the button.

			<div class="button-description">
	<button class="button greedy">A button</button>
	<p>A description for the button.</p>
</div>
			

Horizontal Rule





			<hr />
<hr class="ruler" />
<hr class="ruler jumbo" />
<hr class="ruler teeny" />
			

Note

This is a note.

This is another note.

It can contain html or markdown.

This is another note.

It can contain html or markdown.
			<div class="note">
	This is a note.
</div>

<div class="note" markdown="1">
<h3>This is another note.</h3>
It can contain html or markdown.
</div>

<div class="note note-idea" markdown="1">
	<h3>This is another note.</h3>
	It can contain html or markdown.
</div>
			

Premium Banner

This is some text with a call to action.

Title

This is some text with a call to action.

			<div class="premium">
	<p>This is some text with a <a href="#">call to action</a>.</p>
</div>

<div class="premium">
	<h2>Title</h2>
	<p>This is some text with a <a href="#">call to action</a>.</p>
</div>
			

Teeny Premium Banner

This is some text with a call to action.

Title

This is some text with a call to action.

			<div class="premium teeny">
	<p>This is some text with a <a href="#">call to action</a>.</p>
</div>

<div class="premium teeny">
	<h2>Title</h2>
	<p>This is some text with a <a href="#">call to action</a>.</p>
</div>
			

Command Prompt

www:/> MakeGif -BMr
www:/> ..........
www:/> Save!
			<div class="command">
www:/&gt; MakeGif -BMr<br>
www:/&gt; ..........<br>
www:/&gt; <a href="#" class="file-download" download="animation.gif">Save!</a>
</div>
			

Effects

Shadows

Box shadows. Use a black colour so may not show up on dark backgrounds.

Low
Mid
High
			<div class="shadow-low bg-white p4 b-br2 m4">Low</div>
<div class="shadow-mid bg-white p4 b-br2 m4">Mid</div>
<div class="shadow-high bg-white p4 b-br2 m4">High</div>
			
Icon for Brush Ninja Brush Ninja Make Animated Gifs
Icon for Paint Ninja Paint Ninja Draw and Paint Online
Icon for Code Ninja Code Ninja Make Art with Code
Icon for Emoji Art Emoji Art Make Emoji Art
Icon for Photo Collage Photo Collage Make Photo Collages
Icon for Comic Maker Comic Maker Make Comics