UI Standards

CMD Pro UI/UX Design Standards

A Complete Design System for CMD Pro
📅 Last Updated: August 2026 ⏱️ Reading Time: 14 minutes 📋 Version: 2.1
The CMD Pro UI/UX Design Standards establish a consistent, professional, and user-friendly visual language across the entire plugin. These standards ensure that the dashboard delivers a premium experience that instills trust, enhances usability, and reflects the quality expected of a commercial-grade financial intelligence tool. The design system follows modern UI principles, prioritizing clarity, efficiency, and accessibility.
🎨

Design System at a Glance

7 Design Principles
5 Font Weights
20+ Color Variables
9 Spacing Tokens
4 Breakpoints
4 Button Types
12+ UI Components
8 WCAG 2.1 AA Targets

17.1. Design Principles

🎯 Clarity First Information is presented clearly, without unnecessary clutter or ambiguity. Financial data must be immediately understandable to support quick decision-making.
📊 Data-Driven Every design element serves the purpose of presenting data effectively. The dashboard is a tool for analysis, not decoration.
💎 Professional Aesthetic Clean, modern, and trustworthy appearance befitting a commercial financial product. Builds user confidence and credibility.
📱 Responsive & Adaptive Seamless experience across all devices and screen sizes. Users access data on desktops, tablets, and mobile devices.
🔄 Consistent Uniform design language throughout all components and screens. Reduces learning curve and enhances usability.
♿ Accessible Compliant with WCAG 2.1 AA standards for inclusive design. Ensures all users, including those with disabilities, can use the tool.
⚡ Performance-Oriented Optimized for fast loading and smooth interactions. Slow interfaces undermine user trust and productivity.

17.2. Typography

17.2.1. Font Family

Type Font Stack Usage
Primary Font 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif Body text, UI elements, labels
Monospace Font 'JetBrains Mono', 'Fira Code', 'Consolas', monospace Price data, numerical values, code snippets
Fallback Font sans-serif System default fallback

Rationale: Inter is a highly legible, modern sans-serif font optimized for screens. It offers excellent readability at all sizes and supports a wide range of weights. JetBrains Mono provides clear, distinguishable characters for financial data.

17.2.2. Font Weights

Weight CSS Value Usage
Light300Subtle labels, secondary information
Regular400Body text, paragraph content
Medium500Subheadings, emphasized text
Semibold600Headings, card titles, navigation
Bold700Primary headings, price values, key metrics

17.2.3. Type Scale

Level Size Line Height Weight Usage
H132px / 2rem1.2700Page title, dashboard header
H224px / 1.5rem1.3600Section headings
H320px / 1.25rem1.4600Card titles, subsection heads
H418px / 1.125rem1.4500Metric labels, subheadings
H516px / 1rem1.5600Small section headers
Body Large16px / 1rem1.6400Paragraphs, descriptions
Body14px / 0.875rem1.6400General text, labels
Body Small12px / 0.75rem1.5400Helper text, timestamps, disclaimers
Price Large28px / 1.75rem1.2700Primary price display
Price Medium20px / 1.25rem1.3600Secondary price display
Price Small14px / 0.875rem1.4600Small price labels

17.3. Colors

17.3.1. Primary Color Palette

Primary Blue #2563EB Primary brand color, buttons, links, active states
Primary Blue Hover #1D4ED8 Hover states for primary actions
Primary Blue Light #DBEAFE Backgrounds, highlights, selected items
Primary Dark #1E293B Headings, dark UI elements
Primary White #FFFFFF Text on dark backgrounds, card backgrounds

17.3.2. Neutral Palette

Color Hex Code Usage
Slate 900#0F172ADarkest text, primary body text
Slate 800#1E293BHeadings, bold text
Slate 700#334155Secondary text, labels
Slate 600#475569Muted text, placeholders
Slate 500#64748BDisabled text, secondary labels
Slate 400#94A3B8Borders, dividers, form borders
Slate 300#CBD5E1Light borders, backgrounds
Slate 200#E2E8F0Card backgrounds, section backgrounds
Slate 100#F1F5F9Page background, hover states
Slate 50#F8FAFCLightest background

17.3.3. Status & Semantic Colors

Success Green #22C55E Price increases, positive changes, success states
Success Dark #16A34A Hover states for success actions
Success Light #DCFCE7 Success backgrounds, positive indicators
Danger Red #EF4444 Price decreases, negative changes, errors
Danger Dark #DC2626 Hover states for danger actions
Danger Light #FEE2E2 Error backgrounds, negative indicators
Warning Yellow #F59E0B Warnings, alerts, caution states
Warning Light #FEF3C7 Warning backgrounds
Info Blue #3B82F6 Informational messages, help text
Info Light #DBEAFE Info backgrounds

17.3.4. Price Movement Colors

Color Hex Code Usage
Up (Green)#22C55EPrice increase, upward movement
Up (Bright)#16A34AStrong price increase
Down (Red)#EF4444Price decrease, downward movement
Down (Dark)#DC2626Strong price decrease
Neutral#64748BNo change, stable price
Background Up#DCFCE7Background for positive changes
Background Down#FEE2E2Background for negative changes

17.4. Spacing & Layout

17.4.1. Spacing Scale

sp-0 0
sp-1 4px (0.25rem)
sp-2 8px (0.5rem)
sp-3 12px (0.75rem)
sp-4 16px (1rem)
sp-5 24px (1.5rem)
sp-6 32px (2rem)
sp-8 48px (3rem)
sp-10 64px (4rem)

17.4.2. Grid System

Property Value Description
Number of Columns12Standard 12-column grid
Gutter24pxHorizontal and vertical spacing between columns
Container Width1350pxMaximum content width
Margin24pxMargin on left and right of container
Column Width(container – gutter) / 12Fluid column width

17.4.3. Responsive Breakpoints

CMD Pro is designed to provide a seamless experience across all devices. The following breakpoints define how the interface adapts to different screen sizes, ensuring that functionality remains accessible and visually consistent at every viewport width.

Breakpoint Screen Width Layout Target Devices
Small Mobile< 480pxSingle columnSmall phones
Mobile480px – 767pxSingle columnPhones
Tablet768px – 1023pxTwo-columnTablets, large phones
Desktop1024px – 1279pxThree-columnSmall laptops, desktops
Large Desktop≥ 1280pxFull gridLarge monitors

Component Behavior by Breakpoint

Component Desktop (≥ 1024px) Tablet (768–1023px) Mobile (< 768px)
12-Column Grid Full 12 columns 6 columns (stacked) Single column (stacked)
Commodity Cards 3–4 per row 2 per row 1 per row (full width)
Tables Full table, all columns Scrollable horizontally Scrollable horizontally or collapsed view
Ticker Horizontal scrolling bar Horizontal scrolling bar Smaller height, slower scroll
Charts Full size, interactive Reduced height (250px) Compact height (200px), touch-friendly
Navigation Horizontal menu Horizontal menu (condensed) Hamburger menu
Dashboard Filters Horizontal inline Horizontal inline (wrapped) Vertical stacked
Buttons Standard size Standard size Larger touch targets (min 44px)
Typography Full size Slightly reduced Reduced for readability
Spacing sp-6 (32px) sp-5 (24px) sp-4 (16px)

17.5. Component Standards

17.5.1. Cards

Description: Cards are the primary container for grouping related content and information.

Property Value
Background#FFFFFF
Border Radius12px
Border1px solid #E2E8F0
Box Shadow0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04)
Padding24px (sp-6)
Margin16px (sp-4)
Hover Shadow0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)

17.5.2. Buttons

Property Primary Secondary Outlined Ghost
Background #2563EB #F1F5F9 Transparent Transparent
Text Color #FFFFFF #1E293B #2563EB #475569
Border 1px solid #2563EB 1px solid #E2E8F0 1px solid #2563EB None
Border Radius 8px 8px 8px 8px
Padding 10px 20px 10px 20px 10px 20px 10px 20px
Font Weight 500 500 500 500
Hover BG #1D4ED8 #E2E8F0 #DBEAFE #F1F5F9

Button Sizes

Size Padding Font Size Usage
Small6px 12px12pxCompact actions, tables
Medium10px 20px14pxStandard buttons (default)
Large14px 28px16pxPrimary calls to action

Button Preview

Default   Hover   Active   Focus   Disabled
Primary Button Secondary Button Outlined Ghost
Small Medium Large

17.5.3. Tables

Property Value
Header Background#F1F5F9
Header Text#475569, 600 weight, 12px size
Row Background#FFFFFF
Row Hover#F8FAFC
Row Alternate#FAFBFC
Border1px solid #E2E8F0
Cell Padding12px 16px
Border Radius8px

17.5.4. Icons

Property Value
Icon LibraryFont Awesome 6 (Solid & Regular) or Heroicons
Size16px, 20px, 24px
ColorInherits parent text color or specific semantic colors
Spacing8px margin from adjacent text

17.5.5. Charts

Chart Library: Chart.js 4.x

Property Value
Height300px – 400px
Width100% of container
Background#FFFFFF
Grid Lines#E2E8F0, 1px, dashed
Axis Labels#64748B, 12px
Line Color#2563EB (Primary Blue)
Line Width2px
Fill Areargba(37, 99, 235, 0.1)
Point Radius3px
Point Hover5px
Legend#1E293B, 12px, positioned top-right

17.5.6. CMD Pro-Specific Components

These components are unique to CMD Pro and form the core building blocks of the commodity market intelligence interface.

💳 Price Card Displays commodity price with USD/PKR, change, and timestamp
📋 Commodity Selector Dropdown or tabbed interface for selecting commodities
💱 Currency Selector Toggle between USD, PKR, and other currencies
📅 Date Picker Custom date range selection for charts and reports
📰 Ticker Item Individual price display within the scrolling ticker feed
📈 Trend Badge Color-coded badge showing price movement (▲/▼ with percentage)
🔔 Alert Badge Notification indicator for triggered price alerts
Loading/Skeleton State Animated placeholders while content is loading
📭 Empty State Friendly message when no data is available
⚠️ API Error State Clear error message with retry option when API fails
💡 Tooltip Contextual help on hover or focus
🔄 Modal Focused overlay for alerts, settings, and confirmations

17.6. Accessibility Standards (WCAG 2.1 AA)

Guideline Requirement Design Implementation
Contrast Ratio Minimum 4.5:1 for normal text 🎯 TARGET: WCAG 2.1 AA All text meets contrast requirements
Focus Indicators Visible focus on all interactive elements 🎯 TARGET: WCAG 2.1 AA :focus styles with outline: 2px solid #2563EB
Alt Text All non-text content has text alternative 🎯 TARGET: WCAG 2.1 AA Images, icons, charts have descriptive alt text
Keyboard Navigation All functionality operable via keyboard 🎯 TARGET: WCAG 2.1 AA Full keyboard support (Tab, Enter, Space, Esc)
ARIA Labels Proper ARIA labels for interactive elements 🎯 TARGET: WCAG 2.1 AA aria-label, aria-describedby, role attributes
Font Size Text can be resized without loss of content 🎯 TARGET: WCAG 2.1 AA Relative units (rem, em) instead of px
Reduced Motion Respect user’s motion preferences 🎯 TARGET: WCAG 2.1 AA prefers-reduced-motion media query support
Screen Reader Compatible with screen readers 🎯 TARGET: WCAG 2.1 AA Semantic HTML, proper heading hierarchy

📌 Note: These are design requirements and targets. Final WCAG 2.1 AA compliance should be verified through automated testing and manual audits on the implemented product.

17.7. Design Tokens (CSS Variables)

/* ── Colors — Primary ── */
–color-primary: #2563EB;
–color-primary-hover: #1D4ED8;
–color-primary-light: #DBEAFE;
–color-primary-dark: #1E293B;
–color-white: #FFFFFF;

/* ── Colors — Neutral ── */
–color-slate-900: #0F172A;
–color-slate-800: #1E293B;
–color-slate-700: #334155;
–color-slate-600: #475569;
–color-slate-500: #64748B;
–color-slate-400: #94A3B8;
–color-slate-300: #CBD5E1;
–color-slate-200: #E2E8F0;
–color-slate-100: #F1F5F9;
–color-slate-50: #F8FAFC;

/* ── Colors — Semantic ── */
–color-success: #22C55E;
–color-success-dark: #16A34A;
–color-success-light: #DCFCE7;
–color-danger: #EF4444;
–color-danger-dark: #DC2626;
–color-danger-light: #FEE2E2;
–color-warning: #F59E0B;
–color-warning-light: #FEF3C7;
–color-info: #3B82F6;
–color-info-light: #DBEAFE;

/* ── Typography ── */
–font-family: ‘Inter’, -apple-system, BlinkMacSystemFont, sans-serif;
–font-size-h1: 2rem;
–font-size-h2: 1.5rem;
–font-size-h3: 1.25rem;
–font-size-body: 0.875rem;
–font-size-price-large: 1.75rem;

/* ── Spacing ── */
–sp-0: 0;
–sp-1: 0.25rem;
–sp-2: 0.5rem;
–sp-3: 0.75rem;
–sp-4: 1rem;
–sp-5: 1.5rem;
–sp-6: 2rem;
–sp-8: 3rem;
–sp-10: 4rem;

/* ── Layout ── */
–container-width: 1350px;
–grid-gutter: 1.5rem;
–border-radius: 0.75rem;
–border-radius-sm: 0.5rem;
–border-radius-lg: 1rem;

/* ── Shadows ── */
–shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
–shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
–shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
🎨

UI/UX Design Standards Conclusion

This comprehensive UI/UX Design Standards document provides a complete design system for CMD Pro, ensuring consistency, professionalism, and usability across all components and devices. With 7 design principles, 4 responsive breakpoints, 12+ UI components, and a WCAG 2.1 AA design target, the design system establishes a premium visual language that builds trust, enhances user experience, and supports the brand’s positioning as a leading commodity market intelligence tool.

Document Status: Approved for Design 📋 Design Version: 2.1 📅 Last Updated: August 2026
Don`t copy text!
Scroll to Top