chalk-styling-system

Solid

Create consistent chalk-based color and styling system for CLI output with themes, semantic colors, and formatting utilities.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Chalk Styling System Create consistent chalk-based styling for CLI output. ## Capabilities - Create color theme systems - Define semantic color utilities - Set up text formatting helpers - Implement conditional styling - Create box and border utilities - Generate styling documentation ## Usage Invoke this skill when you need to: - Create consistent CLI color schemes - Define semantic output styling - Build formatting utilities - Support multiple themes ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | language | string | Yes | Target language | | theme | object | No | Custom color theme | | utilities | array | No | Formatting utilities needed | ## Generated Patterns ### TypeScript Styling System ```typescript import chalk, { ChalkInstance } from 'chalk'; // Theme definition export interface Theme { primary: string; secondary: string; success: string; warning: string; error: string; info: string; muted: string; } const defaultTheme: Theme = { primary: '#3498db', secondary: '#9b59b6', success: '#2ecc71', warning: '#f39c12', error: '#e74c3c', info: '#00bcd4', muted: '#95a5a6', }; // Create themed chalk instance export function createTheme(theme: Partial<Theme> = {}): { primary: ChalkInstance; secondary: ChalkInstance; success: ChalkInstance; warning: ChalkInstance; error: ChalkInstance; info: ChalkInstance; muted: ChalkInstance; } { const t = { ...defaultTheme, ...the...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills