New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@heckle-it/design

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heckle-it/design

Colours, type, shape and motion for Heckle, as TypeScript values and a Tailwind CSS theme

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@heckle-it/design

Heckle's colours, type, shape and motion, as a Tailwind CSS v4 theme and as TypeScript values.

Tailwind

@import "tailwindcss";
@import "@heckle-it/design/theme.css";
@import "@heckle-it/design/fonts.css";

Import the theme after Tailwind. It replaces Tailwind's default colours, fonts, text sizes, radii, shadows and easing, so only Heckle's are available.

Use the role colours (bg-page, text-fg, bg-accent text-on-accent, text-danger-fg and the rest in src/themes.ts) rather than the palette, so light and dark mode work without dark: variants.

Light and dark

The theme follows the visitor's system setting. Set data-theme="light" or data-theme="dark" on <html>, or on the host element of a shadow root, to override it.

Fonts

fonts.css loads Alfa Slab One, Rethink Sans and DM Mono from Fontsource, so they're served by your own build and never fetched from Google. Inside a shadow root, load fonts.css in the surrounding document: browsers ignore @font-face in shadow roots.

Importing CSS from TypeScript needs your bundler's type declarations, such as vite/client.

TypeScript

import { colors, dark, light } from "@heckle-it/design";

colors[light.colors.accent]; // "#FF9E5E"

FAQs

Package last updated on 01 Oct 2026

Related posts