nazim-status-badges

Enforce consistent status badge variants and semantic color mappings in Nazim UI.

Updated Nov 15, 2025
One-click install
npx skills add https://github.com/AHMADJAN-New/nazim-web --skill nazim-status-badges
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nazim-status-badges
Source: https://github.com/AHMADJAN-New/nazim-web/tree/main/.cursor/skills/nazim-status-badges
Command: npx skills add https://github.com/AHMADJAN-New/nazim-web --skill nazim-status-badges

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Ensures that status indicators across the Nazim application are displayed consistently and semantically, improving user understanding and application aesthetics.

Core Features & Use Cases

  • Standardized Badge Variants: Utilizes predefined shadcn/ui badge variants (default, secondary, outline, destructive) mapped to common status meanings (success, neutral, info, error).
  • Semantic Color Mapping: Provides a clear mapping of status types to semantic colors (green for success, red for error, yellow for warning, etc.) for both light and dark modes.
  • Pattern Examples: Offers clear TypeScript code examples for implementing status badges based on simple variants or variant + custom color combinations.
  • Use Case: When displaying a student's enrollment status in a table, use this skill to ensure 'active' students show a green 'default' badge, 'pending' students show an orange 'outline' badge, and 'withdrawn' students show a red 'destructive' badge.

Quick Start

Apply the statusBadgeVariant function to the student's status to determine the correct badge variant for display.

Frequently Asked Questions about nazim-status-badges

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement consistent status badges in a frontend UI design system?

To implement consistent status badges in a frontend UI design system, apply the `statusBadgeVariant` function to map predefined variants like default, secondary, outline, and destructive to common status meanings such as success, neutral, info, and error.

What is the semantic color mapping for status indicators in application dialogs and tables?

Semantic color mapping for status indicators assigns green to success, red to error, and yellow to warning, providing clear visual cues for both light and dark modes across dialogs, cards, and tables.

How do I display student enrollment status using shadcn/ui badge variants?

To display student enrollment status using shadcn/ui badge variants, map active students to a green default badge, pending students to an orange outline badge, and withdrawn students to a red destructive badge.

Does this status badge pattern work for both light and dark UI modes?

Yes, this status badge pattern works for both light and dark UI modes by enforcing predefined semantic color schemes that ensure clarity and consistent user experience across various application modules.

When do I need standardized badge variants for student management and attendance tracking?

You need standardized badge variants for student management and attendance tracking when you want to enforce consistent status display patterns across tables and cards, improving user understanding of enrollment and fee collection states.