1.0.1 • Published 9 months ago

@nick-w3/themes v1.0.1

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
9 months ago

@nick-w3/themes

Shared theme configuration and color utilities for the Design System.

Overview

This package contains the centralized theme configuration, including Tailwind CSS setup and color system used across all Design System.

Structure

.
├── colors/             # Color system
│   ├── colors.ts      # Color palette definitions
│   ├── index.ts       # Public exports
│   └── types.ts       # TypeScript types for colors
│
└── tailwind.config.ts  # Shared Tailwind configuration

Usage

Tailwind Configuration

// tailwind.config.js
import { Theme } from "@nick-w3/themes/theme";

export default {
  // Extend the shared config
  ...Theme,
  // Add your project-specific customizations
};

Color System

import { colors } from "@nick-w3/themes/colors";

// Use in your components
const primaryColor = colors.primary[500];

Features

  • 🔄 Shared Tailwind configuration
  • 🌗 Dark mode support
  • 🎯 Type-safe color utilities
  • ⚡️ Optimized for Tailwind Variants

Available Exports

Theme Configuration

  • theme: Base Tailwind configuration including:
    • Color palette
    • Typography scale
    • Spacing system
    • Animation presets
    • Dark mode configuration

Color System

  • colors: Type-safe color definitions including:
    • Brand colors
    • Semantic colors
    • State colors
    • Gradient definitions

License

AGPL-3.0 - see the LICENSE file for details.

1.0.1

9 months ago

1.0.0

9 months ago

0.0.0

9 months ago