Skip to content
This repository was archived by the owner on Jun 14, 2022. It is now read-only.

Releases

Update readme

Choose a tag to compare

@sndrs sndrs released this 12 Dec 14:42

Readme updated to reflect the change made in 3.1.0

Remove browser font reset

Choose a tag to compare

@sndrs sndrs released this 04 Nov 17:15

The default rem size is no longer set to 10px and the body then reset back to 16px.

From now on, we now assume we know nothing about the default font sizes and they're left alone.

v3.0.0 - SassDoc, better configuration and helpers

Choose a tag to compare

@kaelig kaelig released this 26 Aug 17:11

SassDoc

Inline documentation uses SassDoc notation, to do things like this:

screen shot 2014-08-26 at 18 06 20

Configuration

Configuration is consolidated into a single map, easy to extend and simpler to query:

$font-scale: (
    header: (
        1: (font-size: 16, line-height: 20),
        2: (font-size: 18, line-height: 24),
        3: (font-size: 20, line-height: 24),
        4: (font-size: 22, line-height: 28),
        5: (font-size: 24, line-height: 28),
    ),
    headline: (
        1: (font-size: 14, line-height: 18),
        2: (font-size: 16, line-height: 20),
        3: (font-size: 20, line-height: 24),
        4: (font-size: 24, line-height: 28),
        5: (font-size: 28, line-height: 32),
        6: (font-size: 32, line-height: 36),
        7: (font-size: 36, line-height: 40),
        8: (font-size: 40, line-height: 44),
        9: (font-size: 44, line-height: 48),
    ),
    bodyHeading: (
        1: (font-size: 14, line-height: 22),
        2: (font-size: 16, line-height: 24),
        3: (font-size: 18, line-height: 28),
        4: (font-size: 20, line-height: 28),
    ),
    bodyCopy: (
        1: (font-size: 14, line-height: 20),
        2: (font-size: 16, line-height: 24),
        3: (font-size: 18, line-height: 28),
    ),
    data: (
        1: (font-size: 11, line-height: 14),
        2: (font-size: 12, line-height: 14),
        3: (font-size: 13, line-height: 16),
        4: (font-size: 14, line-height: 18),
        5: (font-size: 16, line-height: 20),
        6: (font-size: 18, line-height: 22),
    ),
    textSans: (
        1: (font-size: 12, line-height: 16),
        2: (font-size: 13, line-height: 18),
        3: (font-size: 14, line-height: 20),
        4: (font-size: 14, line-height: 22),
    )
);

Helpers

Ubiquity between configuration, the png matrix and the helper parameter syntax.

get-font-size and get-line-height helpers take these two parameters:

@param {String} $name - Name of the font-scale in the matrix (eg: headline)
@param {Number} $level - Level in the matrix

They should be called like this:

.get-font-size {
    font-size: get-font-size(headline, 6); // used to be ($fs-headlines, 6)
}
.get-line-height {
    line-height: get-line-height(header, 3); // used to be ($fs-headers, 3)
}

v2.1.1 - force pixel values in font-size mixin

Choose a tag to compare

@kaelig kaelig released this 26 Aug 11:45

Fixes a bug where @include font-size(14, 18) would output unitless values: font-size: 14; line-height: 18;

v2.1.0 - output values in pixel units only

Choose a tag to compare

@kaelig kaelig released this 26 Aug 11:19
  • Removes guss-rem dependency
  • Outputs values in px units instead of rem + px fallback

v2.0.2

Choose a tag to compare

@kaelig kaelig released this 18 Aug 13:58

Change f-headlineSans's font-weight from 200 to normal

v2.0.1

Choose a tag to compare

@kaelig kaelig released this 14 Aug 11:40

Change line-height of Header 3 from 28px to 24px (#10)

v2.0.0 - Use correct font names

Choose a tag to compare

@kaelig kaelig released this 24 Jul 09:34
  • [new] Normalise variable and mixins names
    • $sans-serif → $f-data
    • $serif → $f-serif-text
    • $serifheadline → $f-serif-headline
    • $text-sans → $f-sans-serif-text
    • $headline-sans → $f-sans-serif-headline
    • f-textsans() → f-textSans()
    • fs-textsans() → fs-textSans()
  • [new] Use the real font names:
    • AgateSans → Guardian Agate Sans 1 Web
    • EgyptianText → Guardian Text Egyptian Web
    • EgyptianHeadline → Guardian Egyptian Web
    • TextSans → Guardian Text Sans Web
    • HeadlineSans → Guardian Sans Web
  • [new] Add 14/18 size to the Headline scale
  • [new] Remove 14/22 size from the Body Copy scale
  • [new] guss-typography-defaults mixin
  • [new] Re-architect in multiple partials
  • [new] Font scale documentation in HTML

v1.4.0 - Font smoothing is at the product's discretion

Choose a tag to compare

@kaelig kaelig released this 05 Jun 10:08

v1.3.0 - Headline Sans & Better Docs

Choose a tag to compare

@ironsidevsquincy ironsidevsquincy released this 12 May 17:06
  • [new] headline-sans font, with associated f-headlineSans mixin
  • [update] Better documentation