Nifty Procrastination Machine

    primer-marketing-type

    2.0.0 • Public • Published

    Primer Marketing CSS Typography

    npm version Build Status

    Flash messages, or alerts, inform users of successful or pending actions. Use them sparingly. Don’t show more than one at a time.

    This repository is a module of the full primer repository.

    Documentation

    The typography for our marketing pages differs slightly from what is in Primer's core--it is responsive, on a slightly different scale, and headlines are in a different font (Roboto).

    Heading Utilities

    Use .h000-mktg.h6-mktg to change an element's font, size, and weight on marketing pages.

     
    <p class="h000-mktg">Heading 000</p>
    <p class="h00-mktg">Heading 00</p>
    <p class="h0-mktg">Heading 0</p>
    <p class="h1-mktg">Heading 1</p>
    <p class="h2-mktg">Heading 2</p>
    <p class="h3-mktg">Heading 3</p>
    <p class="h4-mktg">Heading 4</p>
    <p class="h5-mktg">Heading 5</p>
    <p class="h6-mktg">Heading 6</p>
     

    Typographic Utilities

    These utilities are meant to be used in addition to Primer's core utilities.

     
    <p class="lead-mktg text-gray">I'm a lead paragraph. Bacon ipsum dolor amet tri-tip chicken kielbasa, cow swine beef corned beef ground round prosciutto hamburger porchetta sausage alcatra tail.</p>
     
    <p class="pullquote">I'm a pullquote. Someone said these words in real life, and now they're on the internet</p>
     

    Install

    This repository is distributed with npm. After installing npm, you can install primer-marketing-typography with this command.

    $ npm install --save primer-marketing-typography
    

    Usage

    The source files included are written in Sass (scss) You can simply point your sass include-path at your node_modules directory and import it like this.

    @import "primer-marketing-typography/index.scss";

    You can also import specific portions of the module by importing those partials from the /lib/ folder. Make sure you import any requirements along with the modules.

    Build

    For a compiled css version of this module, a npm script is included that will output a css version to build/build.css

    $ npm run build
    

    License

    MIT © GitHub

    Install

    npm i primer-marketing-type

    DownloadsWeekly Downloads

    2,515

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    19.2 kB

    Total Files

    8

    Last publish

    Collaborators

    • andrialexandrou
    • jfuchs
    • githubbot
    • manuelpuyol
    • jonrohan
    • broccolini
    • mislav
    • mdo
    • primer-css
    • keithamus
    • mschoening
    • koddsson
    • emilybrick
    • lgarron
    • colebemis
    • smockle
    • simurai
    • khiga8
    • dustin.greif
    • srt32