CPS

ToolKit

Summary

This toolkit is a project to bring both consistancy to the designs I create and to also extend my knowledge in front end technologies, especially SASS.

The Toolkit itself is focused around two main files:

Scaffolding.css

<link rel="stylesheet" media="screen" href="https://toolkit.chris-shaw.com/css/scaffolding.css" />

Basic Layout of the page, it provides utilities to add padding, margins, alignments and widths along with a flexbox based grid. This is the basis for all the toolkit and is intended soly to position items on the screen and does not apply any design to the content.

Toolkit.css

<link rel="stylesheet" media="screen" href="https://toolkit.chris-shaw.com/css/toolkit.css" />

This contains all the objects and components relating to design, and will contain items such as navigation, boxes, inputs, buttons and any other reusable compontent as they are created. Its intended to be a quick option for adding predesigned features to a website.

Components

Components are reusable chunks of code and css to give consistency to a project and reduce reinventing features.

Accordion

TEST CONTENT FOR SLIDE 1
TEST CONTENT FOR SLIDE 2
TEST CONTENT FOR SLIDE 3

Blocks

TEST CONTENT FOR SLIDE 1
TEST CONTENT FOR SLIDE 2
TEST CONTENT FOR SLIDE 3

Box

Content
TITLE
CONTENT
TITLE
CONTENT
TITLE
CONTENT
TITLE
CONTENT
TITLE
CONTENT
TITLE
CONTENT

Button

Input

.c-input can be applied to add basic structure to inputs

Remember Me Radio

Image

Prevent image from overflowing and allow image sizing and tweaks.

Layout

The layouts are built using the o-layout object, this is a display flex container and contains the elements of the layout. This is combined with the Utility Class Width, which allows assigning widths based on a 12 column occupation. See Width.

.u-width--1-12 occupies one of twelve available columns up to .u-width--12-12 which occupies all, or the equivalent of 100% width.

Item 1
Item 2
Item 2

Modal

Title
Content

Navigation

SiteName

Table

Item Due Date Amount
system1 04/01/2016 £1,190
system2 03/01/2016 £2,443
system3 07/01/2016 £1,181

Tabs

TEST CONTENT FOR SLIDE 1
TEST CONTENT FOR SLIDE 2
TEST CONTENT FOR SLIDE 3
TEST CONTENT FOR SLIDE 4

Utilities

Utilities are single use classes to be attacthed directly to an element to add specific behaviour, such as adding a colour, padding, width.

Align

Alter the alignment of content within the page.

.u-align__text
.u-align__text--right
.u-align__text--center

Font

Apply common font sizes to content

.u-font-size--alpha
.u-font-size--bravo
.u-font-size--charlie
.u-font-size--delta

Margin

Adjust content positioning through spacing outside of the element (margin)

.u-margin--tiny
.u-margin--small
.u-margin--medium
.u-margin--large
.u-margin--huge
.u-margin-bottom--huge
.u-margin-right--huge

Padding

Adjust content positioning through spacing within of the element (padding)

.u-padding--tiny
.u-padding--small
.u-padding--medium
.u-padding--large
.u-padding--huge
.u-padding-bottom--huge
.u-padding-right--huge

Themes

Apply colour pallets to elements including border, font and background colours.

u-theme-grey
u-theme-green
u-theme-orange
u-theme-red
u-theme-blue
u-theme-eclipse
u-theme-sargasso

Width

The width utilities are meant to be used with the layout object for a simple grid system.

u-width--4-12
u-width--2-12
u-width--2-12
u-width--4-12
u-width--4-12
u-width--4-12
u-width--4-12
u-width--4-12
u-width--4-12
u-width--4-12
Copyright Christoper Shaw 2019