Package detail

@kajabi-ui/styles

Kajabi3.8k0.1.0

A collection of styles and tokens used within Kajabi

readme

Kajabi Design System Tokens and Styles (@kajabi-ui/styles)

A comprehensive design tokens package that provides standardized design primitives for Kajabi's design system. This package (@kajabi-ui/styles) serves as the foundation for consistent UI development across all Kajabi products.

Purpose

This repository houses Kajabi's design system tokens, which serve as the single source of truth for colors, typography, spacing, and other design primitives used across Kajabi's products. These tokens ensure design consistency, streamline development, and create a unified visual experience.

Key features:

  • Centralized design tokens management
  • Platform-agnostic implementation
  • Compatible with multiple formats (CSS, SCSS, JSON)
  • Built with Style Dictionary and Tokens Studio
  • Easy integration with CDN options

Installation

NPM Package

npm install @kajabi-ui/styles

or

yarn add @kajabi-ui/styles

Usage in Projects

CSS Import

@use '~@kajabi-ui/styles/pine/pine.css';

SCSS Import

@use '~@kajabi-ui/styles/pine/pine.scss';

JavaScript Import

import '@kajabi-ui/styles/pine/pine.css';

CDN Usage with jsDelivr

You can also use jsDelivr to include our design tokens directly in your HTML without installing the package:

<!-- Global CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@kajabi-ui/styles/dist/pine/pine.css">

The CDN option is ideal for:

  • Quick prototyping
  • Projects that don't use a build system
  • Third-party integrations with Kajabi

Specific Component Usage

For more granular imports of specific components:

/* Import only chip tokens */
@use '@kajabi-ui/styles/pine/components/pds-chip/pds-chip.tokens.scss';

Available Token Categories

  • Colors and themes
  • Typography (font families, sizes, weights)
  • Spacing and layout
  • Border properties (width, radius)
  • Shadows and elevation
  • Z-index
  • Motion and animations
  • Component-specific tokens (button, chip, etc.)

Project Structure

ds-tokens/
├── packages/
│   └── styles/            # Main package (@kajabi-ui/styles)
│       ├── src/
│       │   ├── tokens/    # Source token files (JSON format)
│       │   └── lib/       # Build and transformation scripts
└── .github/              # GitHub workflows and configuration

Development with Nx

This project is built with Nx, a smart, extensible build framework. Nx helps manage monorepos and provides efficient build tools for multiple packages.

Using Nx Commands

Building the Project

# Build the styles package
npx nx run @kajabi-ui/styles:build

# Or using the shorter syntax
npx nx build @kajabi-ui/styles

Running Other Scripts

# Generate tokens
npx nx run @kajabi-ui/styles:generate

# Run linting
npx nx run @kajabi-ui/styles:lint

Nx Targets

To see all available targets for the styles package:

npx nx show project @kajabi-ui/styles

Using Token Studio

This project uses Tokens Studio (formerly Figma Tokens) to manage design tokens. Token Studio provides a bridge between design and development by allowing designers to maintain tokens in Figma that can be exported and used in the development workflow.

Getting Started with Token Studio:

  1. For Designers:

    • Install the Tokens Studio for Figma plugin
    • Connect to our shared token repository
    • Make changes through the Token Studio interface
  2. For Developers:

    • Token changes are synchronized with our repository through the build process
    • Token files are stored in the src/tokens/ directory
    • Review and implement token changes using the standard contribution workflow

Contribution Workflow

  1. Create a feature branch

    git checkout -b feature/your-feature-name
    
  2. Make your changes to the token files in src/tokens/

  3. Run the token generation script

    npm run generate
    
  4. Verify changes work as expected

  5. Commit your changes with a descriptive message

    git commit -m "Add new color tokens for marketing pages"
    
  6. Push your changes and create a pull request

    git push origin feature/your-feature-name
    
  7. Request a review from the design systems team

Release Process

The package is published to NPM with a structure that makes tokens accessible without the dist/ prefix in import paths, ensuring a clean and intuitive developer experience.


© 2025 Kajabi, LLC. All rights reserved.

changelog

0.1.0 (2025-05-13)

Features 🚀

  • alert: add alert component tokens (#5)

❤️ Thank You

  • Phillip Lovelace

0.0.3 (2025-04-23)

Bug Fixes 🐛

  • line-height: remove the calculation fomr line-height.body (4cc666c)

❤️ Thank You

  • Julian Skinner

0.0.2 (2025-04-23)

This was a version bump only, there were no code changes.

0.0.2-dev.0 (2025-04-23)

Bug Fixes 🐛

  • add base token files to distributed package (067e6f6)

Documentation 📄

  • update both the root and styles readme files (#3)

❤️ Thank You

  • Julian Skinner @ju-Skinner

0.0.1 (2025-04-22)

Documentation 📄

  • update readme (#2)
  • update package.json with author and description (c776bc2)

❤️ Thank You

  • Julian Skinner @ju-Skinner