@kadena/fonts
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Getting started

Easily import Kadena fonts.

import { KodeMono } from '@kadena/fonts'

// Basic implementation, return the Kode Mono Regular (weight: 400) font
const font = KodeMono()

// With specific weight
const font = KodeMono({
  weight: 400,
})

// With specific fallback
const font = KodeMono({
  weight: 400,
  fallback: 'Courier New, monospace',
})

Usage

// Using classnames
<div>
  <code className={font.className}>
    ...
  </code>
</div>

or

// Using css font variable

const { variable } = KodeMono({
  weight: 400,
})
.my-code {
  font-family: var(--replace-with-the-variable-return-string-value);
}

Readme

Keywords

none

Package Sidebar

Install

npm i @kadena/fonts

Weekly Downloads

125

Version

0.0.1

License

BSD-3-Clause

Unpacked Size

7.41 kB

Total Files

8

Last publish

Collaborators

  • kadena-lars
  • alber70g
  • takadenoshi
  • ash_vd
  • randynamic
  • buckie
  • heekyun