Installation
Get up and running with @deepgram/styles in minutes. Choose CDN for quick prototypes or npm for production apps.
CDN (Quick Start)
The fastest way to start using Deepgram Styles. Add two stylesheet links to your HTML
<head> and you're ready to go. No build step required.
unpkg
<!-- Fetching latest version... --> jsDelivr
An alternative CDN with global edge caching.
<!-- Fetching latest version... --> Theme Utilities (optional)
The theme utilities are an ES module you can import directly from the CDN. They provide light/dark/system theme switching with localStorage persistence.
<!-- Fetching latest version... --> npm (Production)
Install as a dependency for version pinning, tree-shaking, and bundler integration. Works with any build tool — Vite, webpack, Parcel, esbuild, etc.
Install
npm install @deepgram/styles @fortawesome/fontawesome-free Or with other package managers:
pnpm add @deepgram/styles @fortawesome/fontawesome-free
# or
yarn add @deepgram/styles @fortawesome/fontawesome-free Import in JavaScript / TypeScript
Import both stylesheets in your app's entry file. Your bundler will handle the CSS.
import '@deepgram/styles';
import '@fortawesome/fontawesome-free/css/all.min.css'; Or link directly in HTML
<link rel="stylesheet" href="node_modules/@deepgram/styles/dist/deepgram.css">
<link rel="stylesheet" href="node_modules/@fortawesome/fontawesome-free/css/all.min.css"> Using with Tailwind CSS v4
If your project already uses Tailwind CSS v4, you can import the Deepgram theme CSS to get all design tokens as Tailwind utilities. This replaces the default stylesheet import.
/* In your main CSS file */
@import "@deepgram/styles/theme";
/* This gives you:
* - All Deepgram design tokens (--color-dg-*, --font-dg-*, --spacing-dg-*)
* - Base styles
* - Custom utilities (dg-gradient-border, dg-glow-cyan-green, etc.)
* - Tailwind v4's @import "tailwindcss" is included
*/ Font Awesome Icons
Components use Font Awesome Free icons.
Any icon from the free library works. Solid icons (fas) are used most often.
<!-- Solid icon -->
<i class="fas fa-play"></i>
<!-- Regular icon -->
<i class="far fa-bell"></i>
<!-- Brand icon -->
<i class="fab fa-github"></i> Verify It Works
Paste this button into your page. If you see a styled green button, everything is working.
<button class="dg-btn dg-btn--primary">
<i class="fas fa-check"></i>
It works!
</button> Package Exports
The @deepgram/styles package exposes several entry points:
| Import | Description |
|---|---|
@deepgram/styles | Minified production CSS (default) |
@deepgram/styles/expanded | Non-minified CSS for debugging |
@deepgram/styles/theme | Tailwind v4 theme CSS with all tokens |
@deepgram/styles/source | Source CSS with @apply directives (for custom builds) |
@deepgram/styles/react | Typed React components |
@deepgram/styles/utils | Theme utility functions (setLight, setDark, etc.) |
@deepgram/styles/design-system | Raw YAML design tokens |
@deepgram/styles/logo/* | 12 SVG logo variants (adaptive, light, dark) |