Skip to content

knocklabs/telegraph

Repository files navigation

Telegraph by Knock

Telegraph

The design system at Knock

Installation Instructions

npm install @telegraph/tokens

Add stylesheets

Pick one:

Via CSS (preferred):

@import "@telegraph/tokens"; (option: default.css, dark.css, light.css)

Via Javascript:

import "@telegraph/tokens/default.css"; (options: default.css, dark.css, light.css)

Scope styles:

<body className="tgph">

Note: If you only want to use telegraph in a certain part of your app, you would wrap that part in an element with the tgph class.

Packages

Core Packages

Name Version
@telegraph/nextjs npm version
@telegraph/tokens npm version
@telegraph/typography npm version
@telegraph/button npm version
@telegraph/icon npm version

Internal Packages

Name Version
@telegraph/postcss-config npm version
@telegraph/prettier-config npm version
@telegraph/tailwind-config npm version
@telegraph/vite-config npm version
@telegraph/vitest-config npm version

Upcoming Packages

Name Status
@telegraph/link In Development
@telegraph/code In Development
@telegraph/divider In Development
@telegraph/select In Development
@telegraph/badge In Development
@telegraph/combobox Planned
@telegraph/form Planned