🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@kadena/fonts

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kadena/fonts

Package to serve fonts to applications

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
134
76.32%
Maintainers
5
Weekly downloads
 
Created
Source

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);
}

FAQs

Package last updated on 29 Jun 2023

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