--- name: ui-ux-design description: UI/UX design patterns and best practices for the LMS. Activate when designing pages, creating layouts, working on user experience, or building navigation. --- # UI/UX Design for DevOps LMS ## Activation Triggers - Designing new pages or layouts - Creating navigation structures - Working on user flows - Building responsive designs - Implementing accessibility features - Designing progress visualization ## Design System ### Color Palette (Dark Mode) ```css /* Backgrounds */ --bg-base: #111827; /* gray-900 - Main background */ --bg-elevated: #1f2937; /* gray-800 - Cards, sidebars */ --bg-hover: #374151; /* gray-700 - Hover states */ /* Text */ --text-primary: #f9fafb; /* gray-50 - Headings */ --text-secondary: #e5e7eb; /* gray-200 - Body text */ --text-muted: #9ca3af; /* gray-400 - Secondary info */ --text-disabled: #6b7280; /* gray-500 - Disabled */ /* Accent Colors */ --primary: #6366f1; /* indigo-500 - Primary actions */ --success: #22c55e; /* green-500 - Completed */ --warning: #f59e0b; /* amber-500 - In progress */ --error: #ef4444; /* red-500 - Failed/errors */ /* Borders */ --border: #374151; /* gray-700 */ ``` ### Typography Scale ```css /* Headings */ .text-4xl /* 36px - Page titles */ .text-2xl /* 24px - Section headers */ .text-xl /* 20px - Card titles */ .text-lg /* 18px - Subsection headers */ .text-base /* 16px - Body text */ .text-sm /* 14px - Secondary text */ .text-xs /* 12px - Badges, labels */ /* Font Weights */ .font-bold /* 700 - Headings */ .font-semibold /* 600 - Subheadings */ .font-medium /* 500 - Emphasis */ .font-normal /* 400 - Body */ ``` ### Spacing System ```css /* Use consistent spacing */ .space-y-2 /* 8px - Tight grouping */ .space-y-4 /* 16px - Related items */ .space-y-6 /* 24px - Sections */ .space-y-8 /* 32px - Major sections */ /* Padding */ .p-4 /* 16px - Card content */ .p-6 /* 24px - Large cards */ .px-4 /* Horizontal padding */ .py-2 /* Vertical padding for buttons */ ``` ## Page Layouts ### Dashboard Layout (Home Page) ``` ┌─────────────────────────────────────────────────────────────┐ │ Header: Logo + Navigation + Progress Summary │ ├─────────────────────────────────────────────────────────────┤ │ │ │ Hero Section │ │ ┌─────────────────────────────────────────────────────┐ │ │ │ Overall Progress: 45/527 lessons (8.5%) │ │ │ │ [████████░░░░░░░░░░░░░░░░░░░░░░░░░░] 8.5% │ │ │ │ [Continue Learning] [View Certificate] │ │ │ └─────────────────────────────────────────────────────┘ │ │ │ │ Phase Grid (2-3 columns) │ │ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │ │ │ Phase 1 │ │ Phase 2 │ │ Phase 3 │ │ │ │ SDLC │ │ Foundations │ │ Cloud │ │ │ │ ████░░ 80% │ │ ██░░░░ 33% │ │ ░░░░░░ 0% │ │ │ │ 4/5 topics │ │ 2/6 topics │ │ 0/9 topics │ │ │ └──────────────┘ └──────────────┘ └──────────────┘ │ │ │ └─────────────────────────────────────────────────────────────┘ ``` ### Lesson Layout ``` ┌─────────────────────────────────────────────────────────────┐ │ Breadcrumb: Home > Phase 1 > SDLC Models > Waterfall │ ├──────────────┬──────────────────────────────────────────────┤ │ │ │ │ Sidebar │ Lesson Content │ │ (240px) │ │ │ │ ┌────────────────────────────────────────┐ │ │ Phase 1 ▼ │ │ Waterfall Model │ │ │ ├ SDLC │ │ ⏱ 15 min • 🟢 Beginner │ │ │ │ Models ▼ │ └────────────────────────────────────────┘ │ │ │ ├ ✓ Water │ │ │ │ ├ ○ Agile │ ## What is Waterfall? │ │ │ └ ○ Scrum │ The Waterfall model is a linear... │ │ └ Phases │ │ │ │ ## Key Phases │ │ Phase 2 │ 1. Requirements │ │ Phase 3 │ 2. Design │ │ │ ... │ │ │ │ │ │ ┌────────────────────────────────────────┐ │ │ │ │ [Mark Complete] [← Prev] [Next →] │ │ │ │ └────────────────────────────────────────┘ │ │ │ │ │ │ Quiz Section (collapsible) │ │ │ ┌────────────────────────────────────────┐ │ │ │ │ Question 1 of 4 │ │ │ │ │ What is the main characteristic... │ │ │ │ │ ○ Option A │ │ │ │ │ ○ Option B │ │ │ │ │ ● Option C ✓ │ │ │ │ │ ○ Option D │ │ │ │ └────────────────────────────────────────┘ │ │ │ │ └──────────────┴──────────────────────────────────────────────┘ ``` ### Progress Page Layout ``` ┌─────────────────────────────────────────────────────────────┐ │ Your Learning Progress │ ├─────────────────────────────────────────────────────────────┤ │ │ │ Stats Cards (4 columns) │ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ │ │ 45 │ │ 8.5% │ │ 12h 30m │ │ 3 │ │ │ │ Completed│ │ Progress │ │ Time │ │ Quizzes │ │ │ └──────────┘ └──────────┘ └──────────┘ └──────────┘ │ │ │ │ Phase Progress (Accordion) │ │ ┌─────────────────────────────────────────────────────┐ │ │ │ ▼ Phase 1: SDLC 80% ████░ │ │ │ │ ├ SDLC Models 100% ████ │ │ │ │ ├ SDLC Phases 60% ███░ │ │ │ │ └ Development Workflows 0% ░░░░ │ │ │ ├─────────────────────────────────────────────────────┤ │ │ │ ▶ Phase 2: Foundations 33% ██░░░ │ │ │ └─────────────────────────────────────────────────────┘ │ │ │ └─────────────────────────────────────────────────────────────┘ ``` ## Component Patterns ### Phase Card ```vue

Phase 1: SDLC

4 topics • 20 lessons

{{ progress }}%
Est. 2h 30m {{ progress > 0 ? 'Continue' : 'Start' }}
``` ### Lesson Sidebar Item ```vue
{{ title }} Current
``` ### Quiz Question Card ```vue
Question {{ current }} of {{ total }} {{ difficulty }}

{{ question }}

{{ option }}
Previous {{ current === total ? 'Finish' : 'Next' }}
``` ## Responsive Design ### Breakpoints ```css sm: 640px /* Mobile landscape */ md: 768px /* Tablet */ lg: 1024px /* Desktop */ xl: 1280px /* Large desktop */ ``` ### Mobile Patterns ```vue
``` ## Accessibility ### Focus States ```vue Click me
Clickable content
``` ### Screen Reader Support ```vue
``` ## Animation & Transitions ```vue
{{ item.name }}
``` ## Empty & Error States ### Empty State ```vue

No lessons found

Start exploring the roadmap to begin your DevOps learning journey.

Explore Roadmap
``` ### Error State ```vue

Failed to load lesson

{{ error.message }}

Try Again
```