• Stars
    star
    2,000
  • Rank 22,987 (Top 0.5 %)
  • Language
    CSS
  • License
    MIT License
  • Created almost 13 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🍞 A highly-customizable, responsive (S)CSS grid

Toast Framework

The Toast framework is a grid. That's it. Soon, it might have type styles and whatnot, but its power is in its highly customisable design.

Set any number of columns, any gutter size you want, and whatever classes you need. Just edit the _grid.scss file’s variables to your needs.

You should also know that you’d be insane to use Toast’s grid.

To learn more, go to http://daneden.github.io/Toast

Quick-start guide

Using Toast is easy. First, link to grid.css in your HTML document's head:

<link rel="stylesheet" href="css/toast/grid.css">

Then, to use the grid, you'll need a wrap (provided in your own CSS) and a .grid container.

<div class="container">
  <div class="grid">
        <div class="grid__col grid__col--1-of-4">

        </div>
        <div class="grid__col grid__col--3-of-4">

        </div>
        <div class="grid__col grid__col--6-of-12">

        </div>
  </div>
</div>

Customising

$toast-grid-namespace and $toast-grid-column-namespace adjusts the class names for the grid. With default values, grid wrappers have a class of .grid and columns .grid__col.

$toast-col-groups(n) adjusts column divisions. For example, $toast-col-groups(12) will produce a 12-column grid. $toast-col-groups(3,6,8) will produce a 3-, 6-, and 8-column grid.

$toast-gutter-width is—you guessed it—the gutter width. Accepts any unit.

$toast-breakpoint-medium and $toast-breakpoint-small are breakpoint placeholders. Columns have hooks to change their behaviour under these breakpoints. See the “Modifiers” section below.

Modifiers

Toast has some modifiers to make different kinds of layouts easier. There are breakpoint hooks to have columns behave differently than their default behaviour under breakpoints:

<div class="grid">
  <div class="grid__col--1-of-3 grid__col--m-1-of-2 grid__col--s-1-of-2 grid__col">
    This column will behave like a 1-of-2 column under the medium breakpoint and the small breakpoint.
  </div>

  <div class="grid__col--1-of-3 grid__col--ab grid__col">
    This column aligns to the bottom of its row.
  </div>

  <div class="grid__col--1-of-3 grid__col--am grid__col">
    This column aligns to the middle of its row.
  </div>

  <div class="grid__col--3-of-5 grid__col--centered grid__col">
    This column is centered and alone in its row.
  </div>

  <div class="grid__col--1-of-2 grid__col--d-last grid__col">
    This column comes first in the DOM, but appears last in its row.
  </div>

  <div class="grid__col--1-of-2 grid__col--d-first grid__col">
    This column appears last in the DOM, but appears first in its row.
  </div>
</div>

That’s it. Have fun.

More Repositories

1

Baseline.js

A simple jQuery plugin for restoring vertical baselines thrown off by odd image sizes
JavaScript
699
star
2

basehold.it

A quick, painless, Javascript-free baseline overlay.
TypeScript
537
star
3

daneden.me

🏡 This is my website. There are many like it, but this one is mine.
MDX
336
star
4

sublime-css-completions

A more complete library of CSS completions for Sublime Text
283
star
5

Zeitgeist

👁 An iOS app for keeping an eye on your Vercel deployments
Swift
190
star
6

photos.daneden.me

📸 A React.js-based gallery of some of my favorite photos
TypeScript
146
star
7

Twift

🐦 An async Swift library for the Twitter v2 API 🚧 WIP
Swift
111
star
8

PHP-Functions

Some PHP functions that are pretty damn useful
PHP
107
star
9

dotfiles

💻 These are my dotfiles. There are many like them, but these ones are mine.
Shell
81
star
10

Solstice

🌅 An app that tells you how the daylight is changing
Swift
76
star
11

sketch-collapse-all

A Sketch plugin/shortcut to collapse all groups and artboards
JavaScript
61
star
12

design-systems-office-hours-playbook

A playbook for running Design Systems office hours or attending them as a Design System representative. Use this as a template for making your own company Design Systems office hours playbook!
57
star
13

sketch-align-layers

Align layers by edges and centers in Sketch
JavaScript
46
star
14

gifme

MVP do-it-yourself Giphy
JavaScript
43
star
15

Broadcast

🗣 A write-only Twitter client
Swift
41
star
16

ohshitbot

A Twitter bot that panics
JavaScript
33
star
17

sketch-navigate-artboards

Navigate artboards in Sketch
JavaScript
31
star
18

who-would-win

🥊 A Twitter bot that pits emoji against one another
JavaScript
27
star
19

daneden-og-image-generator

An open graph image generator for my website, daneden.me
TypeScript
25
star
20

processing-deepjoy

Processing
21
star
21

next-ssr-example

JavaScript
19
star
22

ia-writer-zettelkasten

📝 An AppleScript service for creating new Zettelkasten-esque notes in iA writer
15
star
23

art.daneden.me

A home for generative art
JavaScript
15
star
24

sketch-replace-layer

💎 A Sketch plugin to replace selected layer(s) with copied content/layer(s)
JavaScript
14
star
25

kindle-airtable-sync

A JavaScript/Node utility to publish Kindle Highlights to an Airtable base
JavaScript
13
star
26

processing-flow-field

Processing
13
star
27

kindle-highlights

A Vercel/Next.js app to render my Kindle highlights
TypeScript
12
star
28

enable-automerge-action

🤖 A GitHub action that enables automerge for pull requests opened by a specified author
TypeScript
11
star
29

muffler

A macOS menu bar app to quickly toggle your microphone and/or video for Zoom and BlueJeans
Swift
11
star
30

shortener

A Netlify-powered personal URL shortener
10
star
31

eloquent-js

My playground for going through the exercises in the book “Eloquent JavaScript”
JavaScript
10
star
32

justmytype

CSS
9
star
33

sketch-plugins

💎 A collection of Sketch plugins authored and maintained by myself
9
star
34

pipify

HTML
9
star
35

Tumblr-Prototype

Homework for week 5 of the CodePath course
Swift
8
star
36

Dropbox-Prototype

A Dropbox app prototype built during the CodePath course
Swift
8
star
37

processing-sandlines

Processing
8
star
38

goldenhour

A minisite for my favorite “golden hour” photos
HTML
7
star
39

2017-music

JavaScript
7
star
40

subtweet

A Twitter bot that tweets randomly selected [SOUND EFFECTS] from subtitles
JavaScript
7
star
41

Converge

A unit conversion widget for macOS
Swift
6
star
42

serious-games

PHP
6
star
43

gantter

TypeScript
6
star
44

Wayfinder-iOS

An iOS-native version of Wayfinder, built during the CodePath iOS for Designers course
Swift
6
star
45

Mailbox-Prototype

Homework for week 3 of the CodePath course
Swift
6
star
46

react-coin-toss

A simple React application that simulates tossing a coin to visualise the average result
JavaScript
6
star
47

Jukebox-iOS

Swift
5
star
48

nounsbot

Pick some nouns. Tweet them.
JavaScript
5
star
49

Carousel-Prototype

Homework for week 2 of the CodePath course
Swift
5
star
50

Facebook-Prototype

Homework for week 4 of the CodePath course
Swift
5
star
51

gatsby-remark-smallcaps

JavaScript
5
star
52

language-sketchplugin

Correct Atom syntax highlighting for .sketchplugin files
CoffeeScript
5
star
53

Tinder-Prototype

Swift
4
star
54

nextjs-data-fetching

TypeScript
4
star
55

2018-music

Photos taken in Oakland in 2018
JavaScript
4
star
56

random-music-playlist

🔀 A macOS service script that plays a random playlist in Apple Music.
4
star
57

processing-rotator

Processing
4
star
58

iOS-Tips

A simple tip calculator written in Swift, with the help of Codepath.
Swift
4
star
59

Emery

💅 A simple app for previewing nail art
Swift
3
star
60

eslint-plugin-daneden

JavaScript
3
star
61

de-gifs-client

A Next.js client for de-gifs.netlify.com
TypeScript
3
star
62

gifme-ios

An iOS app for gif.daneden.me
Swift
3
star
63

Untones

Occasional, delightful ringtones.
CSS
3
star
64

typography.js

Automatic class-writing for web typography tweaks
JavaScript
3
star
65

dtebot

A Markov-chain Twitter bot
Python
3
star
66

processing-rorschach

Processing
3
star
67

jukebox

TypeScript
3
star
68

markov-js

A naive Markov chain implementation in JavaScript
JavaScript
3
star
69

Modal-Transitions

Swift
3
star
70

handy

A simple golf handicap calculator for the Abergele Golf Club
TypeScript
2
star
71

daneden.github.io

HTML
2
star
72

who-would-win-bot

🥊 A Twitter bot that pits emoji against one another
TypeScript
2
star
73

raggedwrite

CSS
2
star
74

jamesgosling

Ruby
1
star
75

rando

🎲 A simple React app that allows you to enter a list of (locally-stored) items and pick one at random.
TypeScript
1
star
76

daneden.me.old

An archived version of my site’s repo going as far back as 2013.
TypeScript
1
star
77

wwwb-leaderboard

TypeScript
1
star