"use client"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@nextsparkjs/core/components/ui/card"; import { Button } from "@nextsparkjs/core/components/ui/button"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@nextsparkjs/core/components/ui/tabs"; import { Badge } from "@nextsparkjs/core/components/ui/badge"; import { ArrowLeft, Palette, Package, Layers, BookOpen, Download, FormInput } from "lucide-react"; import Link from "next/link"; import { ComponentGallery } from "@nextsparkjs/core/components/superadmin/misc/ComponentGallery"; import { ThemePreview } from "@nextsparkjs/core/components/superadmin/misc/ThemePreview"; import { FieldTypesGallery } from "@nextsparkjs/core/components/superadmin/misc/FieldTypesGallery"; import { useState } from "react"; /** * Style Gallery Page - Developer Area * * Comprehensive design system showcase for developers. * Displays components, themes, and design tokens for reference and testing. */ export default function DevStylePage() { const [activeTab, setActiveTab] = useState("components"); return (
{/* Header */}

Style Gallery

Design system showcase and component library

{/* Quick Stats */}
Components
30+

Available UI components

Color Tokens
16

Theme color variables

Themes
2

Light & dark modes

Documentation
100%

Component coverage

{/* Main Content Tabs */} Components Field Types Theme & Colors Guidelines {/* Components Tab */} Component Library Complete showcase of all available UI components with different states and variations {/* Field Types Tab */} Entity Field Types Complete showcase of all entity field types with examples and variants for form development {/* Theme Tab */} Theme System Color tokens, typography, and design system variables for both light and dark themes {/* Guidelines Tab */}
{/* Design Principles */} Design Principles Core principles guiding our design system

1 Consistency

Maintain visual and functional consistency across all components

2 Accessibility

Ensure all components meet WCAG 2.1 AA standards

3 Scalability

Design components that work at different scales and contexts

4 Performance

Optimize for fast loading and smooth interactions

{/* Usage Guidelines */} Usage Guidelines How to effectively use this design system

Color Usage

Use semantic color names (primary, secondary, destructive) rather than specific colors

Typography Scale

Follow the established type scale for consistent hierarchy

Spacing System

Use the 8px grid system for consistent spacing and alignment

Component Composition

Combine base components to create complex interfaces

{/* Technical Specs */} Technical Specifications Implementation details and requirements
Framework Next.js 14
Styling Tailwind CSS
Components Radix UI
Icons Lucide React
Theme System CSS Variables
Build Tool Turbo
{/* Resources */} Resources & Links Additional resources and documentation
); }