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

@automattic/typography

Package Overview
Dependencies
Maintainers
37
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automattic/typography

Typographic elements for WordPress.com products.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7K
increased by24.52%
Maintainers
37
Weekly downloads
 
Created
Source

Typography

@automattic/typography is a Sass file for shared typographic elements across WordPress.com products. This package contains

  • the @font-face declaration for the WordPress.com brand font
  • font-size sass variables
  • font-family sass variables

Installation

yarn add @automattic/typography

Usage

Note that this package contains two sass files and there are use cases for @importing either file.

Import the variables.scss file

@import '@automattic/typography/styles/variables';

Apply font variables as needed:

.my-text {
    font-size: $font-body-small;
}

Import the fonts.sccc file

@import '@automattic/typography/styles/fonts';

Extend the .wp-brand-font selector in your SCSS:

.design__typography-branded {
	@extend .wp-brand-font;
	font-size: $font-title-medium;
}

Or apply the class name wp-brand-font to any elements that should display with Recoleta:

<h1 className="wp-brand-font">Brand font heading</h1>

Note that the fonts.scss file imports the variables.scss file.


Please refer to the Calypso Typography Docs for more information.

Keywords

FAQs

Package last updated on 06 Jun 2022

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