Raster


Raster is a simple typography & grid system for building harmonious graphical websites.

This document showcases a variety of features of Raster.

Raster makes sure that text lines up across columns and provides some simple customization via CSS variables.

Settings

Debug mode: On (D) Baseline grid: On (G) Size mode: Constant (S) Inverted colors:Off (I)

Values

Font size: 10 dp Baseline: 10 dp Line height:10 dp

Level 1 heading

Paragraph
with two lines

Paragraph
with two lines

Level 2 heading

Paragraph
with two lines

Paragraph with one
two
three lines

Level 3 heading

Paragraph
with two lines

Level 4 heading

Paragraph
with two lines

Paragraph with one
two and
three lines

Paragraph with one and
two lines

Paragraph with one
two and
three lines

Paragraph with one and
two lines

Paragraph with one line

Paragraph with one
two
three and
four lines

Paragraph with one
two and
three lines

Paragraph with one
and two lines

Level 2 heading

Paragraph with one and
two lines

Paragraph with one and
two lines

Level 1 heading

Paragraph with one and
two lines

Paragraph with one
two
three and
four lines

Paragraph with one line

Level 3 heading

Paragraph with one
and two lines

Level 3 heading

Paragraph with one and
two lines

Paragraph with one
two
three and
four lines

Paragraph with one and
two lines

Paragraph with one
two and
three lines

Level 5 heading

Paragraph with one
two
three and
four lines

Paragraph with one
two
three and
four lines


Level 1 heading

Level 1 heading

Paragraph with one line

Level 1 heading

Level 2 heading

Paragraph with one
and two lines

Level 1 heading

Level 3 heading

Paragraph with one
two and
three lines

Level 1 heading

Level 4 heading

Paragraph with one
two and
three lines

 

Level 2 heading

Level 1 heading

Paragraph with one line

Level 2 heading

Level 2 heading

Paragraph with one
and two lines

Level 2 heading

Level 3 heading

Paragraph with one
two and
three lines

Level 2 heading

Level 4 heading

Paragraph with one
two and
three lines

 

Level 3 heading

Level 1 heading

Paragraph with one line

Level 3 heading

Level 2 heading

Paragraph with one
and two lines

Level 3 heading

Level 3 heading

Paragraph with one
two and
three lines

Level 3 heading

Level 4 heading

Paragraph with one
two and
three lines

 

Level 4 heading

Level 1 heading

Paragraph with one line

Level 4 heading

Level 2 heading

Paragraph with one
and two lines

Level 4 heading

Level 3 heading

Paragraph with one
two and
three lines

Level 4 heading

Level 4 heading

Paragraph with one
two and
three lines


Level 1 singĺỵ line heading

Level 1 singĺỵ line heading

Paragraph with one line

Level 1 singĺỵ line heading

Level 2 singĺỵ line heading

Paragraph with one
and two lines

Level 1 singĺỵ line heading

Level 3 singĺỵ line heading

Paragraph with one
two and
three lines

Level 1 singĺỵ line heading

Level 4 singĺỵ line heading

Paragraph with one
two and
three lines

 

Level 2 singĺỵ line heading

Level 1 singĺỵ line heading

Paragraph with one line

Level 2 singĺỵ line heading

Level 2 singĺỵ line heading

Paragraph with one
and two lines

Level 2 singĺỵ line heading

Level 3 singĺỵ line heading

Paragraph with one
two
three and
four lines

Level 2 singĺỵ line heading

Level 4 singĺỵ line heading

Paragraph with one
two
three and
four lines

 

Level 3 singĺỵ line heading

Level 1 singĺỵ line heading

Paragraph with one line

Level 3 singĺỵ line heading

Level 2 singĺỵ line heading

Paragraph with one
and two lines

Level 3 singĺỵ line heading

Level 3 singĺỵ line heading

Paragraph with one
two
three and
four lines

Level 3 singĺỵ line heading

Level 4 singĺỵ line heading

Paragraph with one
two
three and
four lines

 

Level 4 singĺỵ line heading

Level 1 singĺỵ line heading

Paragraph with one line

Level 4 singĺỵ line heading

Level 2 singĺỵ line heading

Paragraph with one
and two lines

Level 4 singĺỵ line heading

Level 3 singĺỵ line heading

Paragraph with one
two
three and
four lines

Level 4 singĺỵ line heading

Level 4 singĺỵ line heading

Paragraph with one
two
three and
four lines


Level 4 heading

Level 1 heading

single line

Level 4 heading

Level 1 singĺỵ line

single line

Level 4 singĺỵ line

Level 1 singĺỵ line

single line

Level 4 singĺỵ line

Level 1 header

single line

single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line
single line

Level 1 heading

Level 2 heading

Level 3 heading

Level 4 heading

Level 1 singĺỵ line

Level 2 singĺỵ line

Level 3 singĺỵ line

Level 4 singĺỵ line

Paragraph with one
two
three
four and
five lines

Level 4 heading

Level 3 heading

Level 2 heading

Level 1 heading

Level 4 singĺỵ line

Level 3 singĺỵ line

Level 2 singĺỵ line

Level 1 singĺỵ line

Paragraph with one
and two lines


Level 1 singĺỵ line

Paragraph with one
two
three and
four lines

Level 1 singĺỵ line

Plain text

Level 3 singĺỵ line

Paragraph with one
two
three and
four lines

Level 3 singĺỵ line

Plain text
Plain text
Plain text
Plain text

Level 2 singĺỵ line

Paragraph with one
two
three and
four lines

Level 2 singĺỵ line

Plain text
Plain text
Plain text

Level 4 singĺỵ line

Paragraph with one
and two lines

Paragraph with one
two
three and
four lines

Level 4 singĺỵ line

Plain text

Level 1 heading

Level 2 heading

Paragraph with one
two and
three lines

Level 3 heading

Level 4 heading

Paragraph with one line

Paragraph with one
two and
three lines

Paragraph with
line
line
line
line
line
line
line
line

Level 1 heading

Level 2 heading

Level 3 heading

Paragraph with one line


Level 1 singĺỵ line

Level 2 singĺỵ line

Paragraph with one
two and
three lines

Level 3 singĺỵ line

Level 4 singĺỵ line

Paragraph with one line

Paragraph with one
two
three and
four lines

Paragraph with
line
line
line
line
line
line
line
line
line

Level 1 singĺỵ line

Level 2 singĺỵ line

Level 3 singĺỵ line

Paragraph with one line


Level 1

Level 2

Level 3

Level 4

Level 5

Level 1 header
large size

Level 1 header
xlarge size

Level 1 header
xxlarge size

Level 1 header
xxxlarge size

Single-line xxxlarge size


Level 1
heading
wråpping
Åuĺtipĺe
lines

Paragraph with one
two
three
four and
five lines

Paragraph with one
two and
three lines

Paragraph with one and
two lines

Paragraph with one
two and
three lines

Paragraph with one line

Paragraph with one
two and
three lines

Level 2 heading that wraps over Åuĺtipĺe lines and keeps on wrapping

Paragraph with one and
two lines

Level 3 heading that wraps over Åuĺtipĺe lines and keeps on wrapping and wrapping and wrapping and wrapping

Paragraph with one line

Paragraph with one
two
three and
four lines

Paragraph with one line

Paragraph with one line

Level 4 heading that wraps over Åuĺtipĺe lines and keeps on wrapping and wrapping and wrapping and wrapping

Paragraph with one
two
three and
four lines

Paragraph with one and
two lines


Images

Paragraph with one
two
three and
four lines

Paragraph with one
two
three
four and
five lines

Contain and align to top

Contain and align to bottom right

Fill


Paragraph with one
two
three
four and
five lines

Paragraph with one
two
three
four and
five lines

Fill from bottom left

Fill from bottom left

Contain and align to top

Contain and align to top


Flow columns

A third of the distance across the Beach, the meadow ends and sand begins. This slopes gradually up for another third of the distance, to the foot of the sand hills, which seem tumbled into their places by some mighty power, sometimes three tiers of them deep, sometimes two, and sometimes only one. A third of the distance across the Beach, the meadow ends and sand begins.

This slopes gradually up for another third of the distance, to the foot of the sand hills, which seem tumbled into their places by some mighty power, sometimes three tiers of them deep, sometimes two, and sometimes only one.

The outline of this inner shore is most irregular, curving and bending in and out and back upon itself, making coves and points and creeks and channels, and often pushing out in flats with not water enough on them at low tide to wet your ankles.

A third of the distance across the Beach, the meadow ends and sand begins. This slopes gradually up for another third of the distance, to the foot of the sand hills, which seem tumbled into their places by some mighty power, sometimes three tiers of them deep, sometimes two, and sometimes only one.


A third of the distance across the Beach, the meadow ends and sand begins. This slopes gradually up for another third of the distance, to the foot of the sand hills, which seem tumbled into their places by some mighty power, sometimes three tiers of them deep, sometimes two, and sometimes only one. A third of the distance across the Beach, the meadow ends and sand begins.

This slopes gradually up for another third of the distance, to the foot of the sand hills, which seem tumbled into their places by some mighty power, sometimes three tiers of them deep, sometimes two, and sometimes only one.

The outline of this inner shore is most irregular, curving and bending in and out and back upon itself, making coves and points and creeks and channels, and often pushing out in flats with not water enough on them at low tide to wet your ankles.

A third of the distance across the Beach, the meadow ends and sand begins. This slopes gradually up for another third of the distance, to the foot of the sand hills, which seem tumbled into their places by some mighty power, sometimes three tiers of them deep, sometimes two, and sometimes only one.


A third of the distance across the Beach, the meadow ends and sand begins. This slopes gradually up for another third of the distance, to the foot of the sand hills, which seem tumbled into their places by some mighty power, sometimes three tiers of them deep, sometimes two, and sometimes only one. A third of the distance across the Beach, the meadow ends and sand begins.

This slopes gradually up for another third of the distance, to the foot of the sand hills, which seem tumbled into their places by some mighty power, sometimes three tiers of them deep, sometimes two, and sometimes only one.

The outline of this inner shore is most irregular, curving and bending in and out and back upon itself, making coves and points and creeks and channels, and often pushing out in flats with not water enough on them at low tide to wet your ankles.

A third of the distance across the Beach, the meadow ends and sand begins. This slopes gradually up for another third of the distance, to the foot of the sand hills, which seem tumbled into their places by some mighty power, sometimes three tiers of them deep, sometimes two, and sometimes only one.


Horizontal rules

Paragraph with one
two
three and
four lines


Paragraph with one
two
three and
four lines

Paragraph with one
two
three and
four lines

Paragraph with one
two
three and
four lines

Paragraph with one line


Paragraph with one line


Paragraph with one and
two lines

Paragraph with one and
two lines

Paragraph with one line


Paragraph with one and
two lines









hr with text
text with hr

hr with p

p with hr



hr with p


hr with p (multiple entries tests fractional baseline shift)

p with hr


p with hr


p with hr



Lists

Unordered list

Leading paragraph

Compact unordered list

Paragraph with one and
two lines

Ordered list

Leading paragraph

  1. Ordered list item
    spanning multiple
    lines
  2. Ordered list item
    spanning multiple
    lines
  3. Ordered list item
    spanning multiple
    lines

Compact ordered list

  1. Ordered list item
  2. Ordered list item
  3. Ordered list item
  4. Ordered list item
  5. Ordered list item
  6. Ordered list item
  7. Ordered list item
  8. Ordered list item
  9. Ordered list item
  10. Ordered list item
  11. Ordered list item
  12. Ordered list item

Paragraph with one and
two lines

Ordered & unordered lists

  1. Ordered list item
  2. Plain text
    • Unordered list item
    • Unordered list item
    • Unordered list item
  3. Paragraph

    1. Ordered list item
    2. Ordered list item
    3. Ordered list item
  4. Ordered list item
  5. Ordered list item
  6. Ordered list item

Task list

Leading paragraph

Ordered list with custom start

Paragraph

  1. Ordered list item
  2. Ordered list item
  3. Ordered list item
  4. Paragraph

    • Unordered list item
    • Unordered list item
    • Unordered list item

Compact ordered list with custom start

Paragraph

  1. Ordered list item
  2. Ordered list item
  3. Ordered list item
  4. Paragraph

    1. Ordered list item
    2. Ordered list item
    3. Ordered list item

Code

The variable --fontMono can be set to change the font family used for monospace text. CSS classes .code and .monospace can be use to enable monospace text on any element.

Here is a really long single line that should wrap when the column is narrow

<code><pre>

// CopyN copies n bytes (or until an error) from src to dst.
// It returns the number of bytes copied and the earliest
// error encountered while copying.
// On return, written == n if and only if err == nil.
//
// If dst implements the ReaderFrom interface,
// the copy is implemented using it.
//
func CopyN(dst Writer, src Reader, n int64) (written int64, err error) {
  written, err = Copy(dst, LimitReader(src, n))
  if written == n {
    return n, nil
  }
  if written < n && err == nil {
    // src stopped early; must have been EOF.
    err = EOF
  }
  return
}
      

Inline

CopyN copies n bytes (or until an error) from src to dst.

It returns the number of bytes copied and the earliest error encountered while copying.

On return, written == n if and only if err == nil.

If dst implements the ReaderFrom interface, the copy is implemented using it.


Tables

Leading paragraph before a table of file types

HeaderMime type ExtensionsDescription
89 50 4E 47 0D 0A 1A 0Aimage/png pngPNG image
47 49 46 38 39 61image/gif gifGIF image
FF D8 FFimage/jpeg jpg jpegJPEG image
4D 4D 00 2Bimage/tiff tif tiffTIFF image
42 4Dimage/bmp bmpBitmap image
00 00 01 00image/x-icon icoIcon image

Trailing paragraph

Paragraph line one
line two
line three
line four

Paragraph line one
line two
line three
line four
line five
line six
line seven

Paragraph line one
line two
line three
line four
line five
line six

Alignment demo. Table has class=w-full

Column 1Column 2 Column 3Column 4
defaultleft centerright

Paragraph line one
line two
line three
line four
line five
line six

Paragraph line one
line two
line three
line four

HeaderMime type ExtensionsDescription
89 50 4E 47 0D 0A 1A 0Aimage/png pngPNG image
47 49 46 38 39 61image/gif gifGIF image
FF D8 FFimage/jpeg jpg jpegJPEG image
4D 4D 00 2Bimage/tiff tif tiffTIFF image
42 4Dimage/bmp bmpBitmap image
00 00 01 00image/x-icon icoIcon image
HeaderMime type ExtensionsDescription
89 50 4E 47 0D 0A 1A 0Aimage/png pngPNG image
47 49 46 38 39 61image/gif gifGIF image
FF D8 FFimage/jpeg jpg jpegJPEG image
4D 4D 00 2Bimage/tiff tif tiffTIFF image
42 4Dimage/bmp bmpBitmap image
00 00 01 00image/x-icon icoIcon image

Trailing paragraph

Paragraph line one
line two
line three
line four

Paragraph line one
line two
line three
line four
line five
line six
line seven

Paragraph line one
line two
line three
line four

Paragraph line one
line two
line three
line four

Paragraph line one
line two
line three
line four

H3

Mime type
image/png
image/gif
image/jpeg
image/tiff

H4

Mime type
image/png
image/gif
image/jpeg
image/tiff

Trailing paragraph

Mime type
image/png
image/gif
image/jpeg
image/tiff
Mime type
image/png
image/gif
image/jpeg
image/tiff

Trailing paragraph