Logo: U1T App

U1T App Style Guide

Guidelines

  • U1T App uses Sass as a preprocessor for this project's CSS. This project uses node-sass via the command line using the following command in the src folder:
    node-sass --watch static/scss/style.scss static/css/style.css

Colors

Reference files: _colors.scss, _variables.scss
  • Background colors use a -bg suffix, like green-forest-bg.

Colors: Brand

$ / .green-night
$ / .green-forest
$ / .purple-grape
$ / .green-forest-tint
$ / .purple-grape-tint

Colors: Secondary

$ / .red-heart
$ / .red-heart-tint
$ / .rose-tint
$ / .orange
$ / .yellow-cornflour-tint

Colors: Pure Black, Grey, Pure White

$ / .black
$ / .white
$ / .white-50
$ / .grey-cement
$ / .grey-mist

Colors: Typography

$ / .color-font

Colors: States

$color-alert
.color-alert
.color-alert-bg
#DA291C
$color-success
.color-success
.color-success-bg
#088C97
$color-warning
.color-warning
.color-warning-bg
#F2CD00
$color-disabled
.color-disabled
.color-disabled-bg
#D4D2C8

Spacing

The default $spacing variable's value is 10 pixels.

$spacing-2 is twice the value of $spacing and so on.

Reference files: _spacing.scss, _variables.scss

Spacing: All Sides

Uses padding on all four sides to create spacing.

$spacing / .spacing
$spacing-2 / .spacing-2
$spacing-3 / .spacing-3
$spacing-4 / .spacing-4
$spacing-5 / .spacing-5
$spacing-6 / .spacing-6
$spacing-7 / .spacing-7
$spacing-8 / .spacing-8
$spacing-9 / .spacing-9
$spacing-10 / .spacing-10
$spacing-half / .spacing-half

Spacing: Horizontal

Uses left and right padding to create spacing.

.spacing-h
.spacing-2-h
.spacing-3-h
.spacing-4-h
.spacing-5-h
.spacing-6-h
.spacing-7-h
.spacing-8-h
.spacing-9-h
.spacing-10-h
.spacing-half-h

Spacing: Vertical

Uses top and bottom padding to create spacing.

.spacing-v
.spacing-2-v
.spacing-3-v
.spacing-4-v
.spacing-5-v
.spacing-6-v
.spacing-7-v
.spacing-8-v
.spacing-9-v
.spacing-10-v
.spacing-half-v

Spacing: Left

Uses left padding to create spacing.

.spacing-l
.spacing-2-l
.spacing-3-l
.spacing-4-l
.spacing-5-l
.spacing-6-l
.spacing-7-l
.spacing-8-l
.spacing-9-l
.spacing-10-l
.spacing-half-l

Spacing: Right

Uses right padding to create spacing.

.spacing-r
.spacing-2-r
.spacing-3-r
.spacing-4-r
.spacing-5-r
.spacing-6-r
.spacing-7-r
.spacing-8-r
.spacing-9-r
.spacing-10-r
.spacing-half-r

Spacing: Top

Uses top padding to create spacing.

.spacing-t
.spacing-2-t
.spacing-3-t
.spacing-4-t
.spacing-5-t
.spacing-6-t
.spacing-7-t
.spacing-8-t
.spacing-9-t
.spacing-10-t
.spacing-half-t

Spacing: Bottom

Uses bottom padding to create spacing.

.spacing-b
.spacing-2-b
.spacing-3-b
.spacing-4-b
.spacing-5-b
.spacing-6-b
.spacing-7-b
.spacing-8-b
$spacing-9-b / .spacing-9-b
.spacing-10-b
.spacing-half-b

Spacing: Vertical: Reduce spacing on small / mobile screens

Uses top and bottom padding to create spacing that reduces to 24px on mobile.

.spacing-4-v-app
.spacing-5-v-app
.spacing-6-v-app
.spacing-7-v-app
.spacing-8-v-app
.spacing-9-v-app
.spacing-10-v-app

Spacing: Top: Reduce spacing on small / mobile screens

Uses top padding to create spacing that reduces to 24px on mobile.

.spacing-4-t-app
.spacing-5-t-app
.spacing-6-t-app
.spacing-7-t-app
.spacing-8-t-app
.spacing-9-t-app
.spacing-10-t-app

Spacing: Bottom: Reduce spacing on small / mobile screens

Uses bottom padding to create spacing that reduces to 24px on mobile.

.spacing-4-b-app
.spacing-5-b-app
.spacing-6-b-app
.spacing-7-b-app
.spacing-8-b-app
.spacing-9-b-app
.spacing-10-b-app

Spacing: Reset padding on all sides

Column: Reset Padding

Spacing: Reset margins on all sides

H2 Heading: Margins reset

Image / Item Horizontal Centering

Helper class for horizontal centering of image

Reference files: _globals.scss

Image, Video, Section: Full-width

Use the full-width class to make images, buttons, etc. full width

Reference files: _globals.scss
Image: Full-width Example

Media Queries

Reference files: _media.scss, _variables.scss

View an example of all media queries on the site.

Grid

Add a container that wraps a row, which wraps columns. Flex helpers are available to customize the layout.

A 12 column grid is provided with classes for each media query breakpoint. E.g. col-12, col-6-sm, col-4-mid and col-3-lg.

Reference files: _grid.scss, _variables.scss

Grid: Containers

Container sizes are obtained from the media query variables. A full-width container can be used for full-bleed sections.

Container: Large
Container: Mid
Container: Small
Container: Full Width

Grid: Rows & Columns: Default

Rows have negative margins to offset column padding.

Columns have a left and right padding that acts as gutters.

Rows and columns have default, large and small gutter options.

Rows: Flexbox containers

Flex containers can be initiated on a specific media query using classes like flex-sm, flex-mid and flex-lg

View an example of flex containers on different media queries.

Rows & Columns: Default Gutters

Column 1
Column 2

Rows & Columns: Large Gutters

Column 1
Column 2

Rows & Columns: Small Gutters

Column 1
Column 2

Rows & Columns: X-Small Gutters

Column 1
Column 2

Columns: Different sizes on different breakpoints

Column 1
Column 2
Column 3
Column 4

Columns: Column 2 automatically fills up remaining width

Use flexbox helper flex-1 on the appropriate column.

Column 1
Column 2

Columns: Column 2 is pushed to the right

Use flexbox helpers margin-left-auto or margin-right-auto on the appropriate column for pushing to the right and left respectively.

Column 1
Column 2

Columns: Columns: Horizontally centered

Use flexbox helper flex-justify-center on the row.

Column 1
Column 2

Columns: Columns: Horizontally aligned to right

Use flexbox helper flex-justify-flex-end on the row.

Column 1
Column 2

Columns: Vertically centered

Use flexbox helper flex-align-center on the row.

Column 1
Column 2: Flexbox: Vertical Centering

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempora cumque adipisci atque ab quam, non, maiores nostrum. Necessitatibus, sit quae magnam nesciunt totam culpa reiciendis amet molestiae libero natus iusto.

Columns: Vertically aligned to bottom

Use flexbox helper flex-align-end on the row.

Column 1
Column 2: Flexbox: Vertical Centering

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempora cumque adipisci atque ab quam, non, maiores nostrum. Necessitatibus, sit quae magnam nesciunt totam culpa reiciendis amet molestiae libero natus iusto.

Columns: Halves

Column 1
Column 2

Columns: Thirds

Column 1
Column 2
Column 3

Typography

Reference files: _functions.scss, _typography.scss, _variables.scss

Typography: Font Families

Montserrat Font: $font-family-1 / .font-family-1

Typography: Font Sizes

Use variables or classes for font sizes.

The base font size is in pixels and the rest use the px-to-percent function to output pixel values as percentages.

$font-size-base / .font-size-base
$font-size-sm / .font-size-sm
$font-size-xs / .font-size-xs
$font-size-lg / .font-size-lg
$font-size-xl / .font-size-xl

Typography: Font Weights

400 weight: $font-regular / .font-regular
500 weight: $font-medium / .font-medium
600 weight: $font-semi-bold / .font-semi-bold
700 weight: $font-bold / .font-bold

Typography: Text Utilities

Text: Left Align
Text: Right Align
Text: Center Align
Text: Uppercase
Text: Underline

Typography: HTML Headings: H1 - H6

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
Heading 1 Class
Heading 2 Class
Heading 3 Class
Heading 4 Class
Heading 5 Class
Heading 6 Class

Typography: Links

Link: Default

Link: Mimic default link style on divs, spans, etc.

Class to mimic default link style and behavior on divs, spans, etc.

Typography: Lists: Reset Styles

Use a mixin or class of list-reset to reset default list styles.

  • Reset Unordered List Styles: Item 1
  • Reset Unordered List Styles: Item 2
  • Reset Unordered List Styles: Item 3
  1. Reset Ordered List Styles: Item 1
  2. Reset Ordered List Styles: Item 2
  3. Reset Ordered List Styles: Item 3

Icons

U1T App's uses icons from the Feather icon set, generated via the Icomoon app.

To update the icon set, upload the selection.json file on the Icomoon website. Add or delete icons as needed and download the new set of files and update them.

View the list of all icons. You can choose additional icons from this set as needed.

Reference files: _font-icons.scss, _variables.scss

Icons:Examples

Forms

Reference files: _forms.scss, _variables.scss

Forms: Labels

Forms: Inputs

Inputs: Default

Help text goes here
Help text goes here
Please correct the error

Forms: Input: Search

Forms: Textareas

Textarea

Forms: Selects

Select

Forms: Radio Buttons

Radio Buttons

Forms: Checkboxes

Checkboxes

Forms: Toggle Switch using Checkbox

Forms: Notifications

This is a successful form message
This is an error message
This is a warning message

Buttons

Reference files: _buttons.scss, _variables.scss

Buttons: Solid: Green Forest

Button: Green Forest: Full Width Button: Green Forest: Full Width: Icon: Right Button: Green Forest: Full Width: Icon: Left

Buttons: Solid: Green Night

Button: Green Night: Full Width Button: Green Night: Full Width: Icon: Right Button: Green Night: Full Width: Icon: Left

Buttons: Solid: Purple Grape

Button: Purple Grape: Full Width Button: Purple Grape: Full Width: Icon: Right Button: Purple Grape: Full Width: Icon: Left

Buttons: Solid: White

Button: White: Full Width Button: White: Full Width: Icon: Right Button: White: Full Width: Icon: Left

Buttons: Outline: Green Forest

Button: Outline Green Forest: Full Width Button: Outline Green Forest: Full Width: Icon: Right Button: Outline Green Forest: Full Width: Icon: Left

Buttons: Outline: Green Night

Button Outline: Green Night: Full Width Button Outline: Green Night: Full Width: Icon: Right Button Outline: Green Night: Full Width: Icon: Left

Buttons: Outline: Purple Grape

Button Outline: Purple Grape: Full Width Button Outline: Purple Grape: Full Width: Icon: Right Button Outline: Purple Grape: Full Width: Icon: Left

Buttons: Outline: White

Button Outline: White: Full Width Button Outline: White: Full Width: Icon: Right Button Outline: White: Full Width: Icon: Left

Buttons: Loading

Buttons: Icon: Circle

Buttons: Icon: Circle: Default Size

Buttons: Icon: Circle: Small Size

Buttons: Icon: Circle: Large Size

Buttons: Icon: Circle: Extra Large Size

Buttons: Reset Styles

Button: Tabs

Reference files: _buttons.scss, _variables.scss

Buttons: Tabs: Rounded

Buttons: Tabs: Squarish

Buttons: Tabs: Border Block

Progress Bars

Reference files: _globals.scss, _variables.scss

Progress Bar: Default

Progress Bar: Large

Card: List View

Reference files: _cards.scss, _.variables.scss
Last Purchase 09/21/24

Cleaning Agent

Delivery Date: Thur, 24/11
Last Purchase 09/21/24

Cleaning Agent

Cleaning Agent

£800 | 500 ml
Delivery Date: Thur, 24/11
Last Purchase 09/21/24

Cleaning Agent

Delivery Date: Thur, 24/11
Smart Jar
Remaining: 300g/450g

Cards: List Dot View

Reference files: _cards.scss, _.variables.scss

Cards: List Dot View: Simple

Expiration Date
09/21/2024
Last Purchase
01/18/2024
Remaining Product
300 ml
Less Than 200 ml

Cards: List Dot View: Orders

July 20
Bites Market
500ml
£ 5.99
July 20
Bites Market
500ml
£ 5.99

Card: Heading, Image, Description, Button, Coloured Background

Reference files: _cards.scss, _.variables.scss

Upgrade For A Greener Future

By using a smart jar for rice, you can save up to 15 kg of CO2 emissions each year, and you'll save $50 annually by reducing waste.

Get Smart Jar

Cards: Solid Block

Reference files: _cards.scss, _.variables.scss

Cards: Solid Block with Button

Cards: Solid Block with Progress Bar

1250
BASIC
1250 / 2000

140 Points Until Next Level

Rbox: jQuery Lightbox

jQuery Lightbox using Rbox plugin

Read documentation for images, galleries, HTML5 Video, Iframe Embeds, HTML Content, Inline Content, AJAX Content

Reference files: _variables.scss, _rbox.scss
Test Image

Tooltips

Pure CSS tooltips using balloon.css plugin

Reference files: _variables.scss, _.balloon.scss
Tooltip Up Tooltip Left Tooltip Right Tooltip Down Tooltip Up Left Tooltip Up Right Tooltip Down Left Tooltip Down Right

Sliders & Carousels

U1T App uses the splide.js plugin to create sliders and carousels

To use the slider, include the splide js plugin and customize as needed.

Reference files: splide-3.6.12.min.js, _splide-3.6.12.scss, _splide-3.6.12-overrides.scss, _.variables.scss

Slider Carousel: Article

This is an example of an image slider carousel with heading, caption and pagination dots.

  • Short Headline Related to Image

    Did you know the food industry is responsible for 26% of global greenhouse gas emissions? Learn how your choices can make a difference.

  • Short Headline Related to Image

    Did you know the food industry is responsible for 26% of global greenhouse gas emissions? Learn how your choices can make a difference.

  • Short Headline Related to Image

    Did you know the food industry is responsible for 26% of global greenhouse gas emissions? Learn how your choices can make a difference.

  • Short Headline Related to Image

    Did you know the food industry is responsible for 26% of global greenhouse gas emissions? Learn how your choices can make a difference.

Slider: Solid Cards Block

This is an example of a slider carousel with solid coloured cards.

Slider: Single Image

This is an example of a single image slider with pagination dots.

Accordions & Collapsibles

Use Accordions to open one of multiple items at a time. Use Collapsibles to open multiple items at a time.

Use the data-attribute data-multiple="true" to open multiple items at a time and data-multiple="false" to open a single item at a time.

Reference files: _accordion.scss, _.variables.scss, accordion.js

Accordion: Open multiple items at a time

Programs

We design, deliver, and host transformative educational programs for educators and students to help inspire an emerging generation of changemakers. We do this together with a global network of collaborators in education, sustainability, and food systems.

Place

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.

Products

Quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Accordion: Open a single item at a time

Programs

We design, deliver, and host transformative educational programs for educators and students to help inspire an emerging generation of changemakers. We do this together with a global network of collaborators in education, sustainability, and food systems.

Place

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.

Products

Quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.