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

@arcteryx/components-typography

Package Overview
Dependencies
Maintainers
0
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcteryx/components-typography

Arcteryx Typography

  • 6.3.2
  • npm
  • Socket score

Version published
Weekly downloads
496
decreased by-30.43%
Maintainers
0
Weekly downloads
 
Created
Source

components-typography

Standard typography components for H1, H2, H3, H4, p, and blockquote elements.

Usage

import {H1} from "@arcteryx/components-typography";

const LoudRedHeading = () => (
    <H1 loud textColor="#ff0000">
);

A note on the colour attribute

Styled components (SC) strips out all non-standard HTML attributes so as to keep markup valid. The color attribute is an old school (now defunct) attribute that SC doesn't strip out, and is therefore giving us validation errors. Using textColor avoids this.

How-to import/reference fonts

Each consuming app is responsible to host and load its own fonts:

  • Ensure global variable is defined as JSX references font-family: var(--font-urw-din);

For example URW is available on a AWS S3

https://images.arcteryx.com/fonts/urw-family-typekit.css

FAQs

Package last updated on 28 Oct 2024

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