Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

accoutrement-fonts

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accoutrement-fonts

Sass webfont utilities.

  • 2.0.0-rc.1
  • pre
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by100%
Maintainers
2
Weekly downloads
 
Created
Source

Accoutrement-Fonts

Webfont management tools. Gather all your fonts into a single map, access them by name, and easily import the webfonts.

Quick Start

npm install accoutrement-fonts

Configure your font settings:

$font-formats: 'woff' 'ttf'; // Define what webfont formats need importing
$font-path: '../fonts/'; // Set the a path to your fonts directory

$fonts: (
  'heading': ( // give your font a semantic name for reference
    'name': 'maven', // optionally set a different font name
    'stack': ('helvetica', 'arial', sans-serif), // define the stack
    'normal': 'maven/maven_pro_regular-webfont', // point to any webfont files
    'bold': 'maven/maven_pro_bold-webfont',
  ),

  'body': (
    'name': 'exo',
    'stack': ('helvetica', 'arial', sans-serif),
    'normal': 'exo/exo2-regular-webfont',
    'italic': 'exo/exo2-italic-webfont',
    'bold': 'exo/exo2-bold-webfont',
    'bold' 'italic': 'exo/exo2-bolditalic-webfont',
  ),

  'alias': 'body', // create aliases when useful
);

Import a webfont, or all your configured fonts with a mixin:

@include font-face('body'); // Import one font by configuration key
@include import-webfonts; // Import all defined fonts

And set your font-family anywhere, using the semantic names you set earlier:

html {
  @include font-family('body');
}

h1, h2, h3 {
  @include font-family('heading');
}

About OddBird Accoutrement

OddBird's Accourement modules are individual Sass toolkits that work together to form the central nervous system of a project. They help to establish and access a projects configuration in consistent and inter-connected ways.

Keywords

FAQs

Package last updated on 08 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc