New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@tekton-ui/tokens

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tekton-ui/tokens

TypeScript token type definitions with compile-time enforcement

latest
Source
npmnpm
Version
0.3.3
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

@tekton/tokens

TypeScript token type definitions for Tekton Design System with compile-time enforcement.

Overview

Provides TypeScript interfaces for design tokens that enforce CSS variable references at compile time.

Installation

pnpm add @tekton/tokens

Usage

import type { TektonTokens, TokenReference } from '@tekton/tokens';

// TokenReference ensures only CSS variables are allowed
const background: TokenReference = 'var(--tekton-bg-surface-default)';

// TypeScript error: Type '"#ffffff"' is not assignable to type 'TokenReference'
// const invalid: TokenReference = '#ffffff';

Token Categories

  • BgTokens: Background colors (surface, primary, secondary, etc.)
  • FgTokens: Foreground/text colors
  • SpacingTokens: Spacing scale (0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24)
  • RadiusTokens: Border radius (none, sm, md, lg, xl, full)
  • TypographyTokens: Font families, sizes, weights, line heights
  • ShadowTokens: Box shadows (none, sm, md, lg, xl)

SPEC Reference

  • SPEC-STYLED-001
  • TAG-002: Token Type Definitions

License

MIT

Keywords

design-tokens

FAQs

Package last updated on 10 Feb 2026

Related posts