parse-css-font

  • Version 4.0.0
  • Published
  • 61.6 kB
  • 7 dependencies
  • MIT license

Install

npm i parse-css-font
yarn add parse-css-font
pnpm add parse-css-font

Overview

Parse the CSS font property value.

Index

Functions

function parseCSSFont

parseCSSFont: (value: string) => ISystemFont | IFont;

    Interfaces

    interface IFont

    interface IFont {}

      property family

      family?: string[];

        property lineHeight

        lineHeight?: string | number;

          property size

          size?: string;

            property stretch

            stretch?: string;

              property style

              style?: string;

                property variant

                variant?: string;

                  property weight

                  weight?: string;

                    interface ISystemFont

                    interface ISystemFont {}

                      property system

                      system: string;

                        Package Files (1)

                        Dependencies (7)

                        Dev Dependencies (13)

                        Peer Dependencies (0)

                        No peer dependencies.

                        Badge

                        To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                        You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/parse-css-font.

                        • Markdown
                          [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/parse-css-font)
                        • HTML
                          <a href="https://www.jsdocs.io/package/parse-css-font"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>