Comprehensive modernization of ZyroxCSS with focus on contemporary design patterns, full responsiveness, and accessibility standards. All components have been redesigned with modern aesthetics and touch-friendly interfaces.
This is a major version update with significant breaking changes:
/* Old v1.x */
--primary-color: #4A90E2 /* Light Blue */
--secondary-color: #50E3C2 /* Mint Green */
/* New v2.0 */
--primary-color: #6366F1 /* Indigo */
--primary-dark: #4F46E5
--primary-light: #818CF8
--secondary-color: #06B6D4 /* Cyan */
--secondary-dark: #0891B2
--secondary-light: #22D3EEAll major components have been redesigned:
- Buttons: New color variants & sizes
- Forms: Complete styling overhaul
- Navigation: Gradient background, mobile menu redesign
- Modals: New animation system
- Cards: Enhanced shadow system
- Tabs: Multiple style variants
- Progress: Animated variants added
/* Old: ad-hoc sizing */
--spacing: 16px
/* New: consistent scale */
--spacing-xs: 0.25rem
--spacing-sm: 0.5rem
--spacing-md: 1rem /* was 16px */
--spacing-lg: 1.5rem
--spacing-xl: 2rem
--spacing-2xl: 3rem- Font stack updated to modern system fonts
- All headings now use fluid sizing with
clamp() - New responsive typography utilities
- New Primary Colors: Indigo (#6366F1) + Cyan (#06B6D4) for modern look
- Enhanced Status Colors: Professional green, red, amber, and blue variants
- Neutral Scale: Improved gray palette with 9 levels for better hierarchy
- Dark Mode: Full dark mode support with CSS variables
- Fluid Scaling: Font sizes scale responsively with viewport using
clamp() - Modern Font Stack: Updated to system fonts:
-apple-system, BlinkMacSystemFont, 'Segoe UI' - Better Line Heights: Adjusted for improved readability
- Enhanced Headings: h1-h6 with responsive sizing and weights
- Consistent Scale: 8 levels (xs, sm, md, lg, xl, 2xl) instead of ad-hoc values
- CSS Variables: All spacing uses custom properties for easy theming
- Responsive Utilities:
p-*,m-*,px-*,py-*classes for quick adjustments
- Multi-Level Shadows: From
shadow-smtoshadow-xlfor depth - Consistent Sizing: Based on material design principles
- Smooth Transitions: All shadows animate with smooth easing
- Mobile-First: 5 levels of responsive design
- Mobile: < 640px (default)
- Small: 640px - 767px (
sm:) - Medium: 768px - 1023px (
md:) - Large: 1024px - 1279px (
lg:) - XL+: ≥ 1280px (
xl:,2xl:)
- Navbar: Hamburger menu on mobile, fixed layout on desktop
- Grid System: 12-column with auto-fit on mobile
- Forms: Stack on mobile, horizontal on desktop
- Cards: Grid changes from 4 → 3 → 2 → 1 column
- Typography: Fluid sizing scales across all breakpoints
- New Variants: primary, secondary, success, danger, warning, ghost, outline
- Sizes: sm, md (default), lg, xl
- Modern Effects: Smooth hover lift, focus rings, disabled states
- Group Support:
btn-groupandbtn-group--stacked - Responsive: Block buttons on mobile
- Variants: elevated, flat, colored (success/danger/warning/info)
- Image Support:
card-imagewith proper aspect ratio - Responsive Grid:
card-containerwith auto-fit columns - Subtle Animations: Lift on hover with shadow transition
- Modern Inputs: Better padding, focus states, and feedback
- Validation States: success and error states with icons
- Floating Labels:
form-floatingfor modern label behavior - Switch Toggle: Toggle switches with smooth animations
- File Upload: Drag-and-drop ready with modern styling
- Form Grid: Responsive form layout utilities
- Icons Support:
form-icon-groupfor prepended/appended icons
- Gradient Background: Modern background with depth
- Mobile Menu: Full-screen dropdown on mobile
- Hover Effects: Smooth transitions and subtle animations
- Submenus: Nested navigation with proper alignment
- Responsive: Adapts from fixed to sticky navigation
- Sizes: sm, md (default), lg, xl, fullscreen
- Animations: Smooth slide-in with spring-like effect
- Centered Content: Better vertical centering
- Close Button: Accessible close button in header
- Mobile Optimized: Full-screen on small devices
- Filled & Outlined: Two presentation styles
- Status Colors: success, danger, warning, info
- Icons: Semantic icon placeholders
- Close Action: Dismissible alerts with animation
- Responsive: Flex layout adapts to mobile
- Sizes: sm, md (default), lg
- Variants: Filled, outlined, dotted
- Status Colors: All theme colors supported
- Pill Design: Fully rounded badges with modern aesthetic
- Multiple Styles: default, pills, vertical, boxed
- Animations: Smooth transitions between tabs
- Mobile Scroll: Horizontal scroll on mobile with indicator
- Icons Support: Can include icons in tab headers
- Animated: Optional shimmer and stripe animations
- Sizes: sm, md, lg
- Status Colors: All theme colors
- Circular Progress: Circular progress indicators
- Stacked: Multiple progress bars together
- Labels: Built-in label support
- Positions: top, bottom, left, right
- Sizes: sm, md, lg
- Animations: Smooth reveal with proper arrow
- Dark Variant: Alternative dark styling
- Mobile Friendly: Accessible tooltips on touch devices
- Mobile Optimized: Full-screen on mobile
- Submenus: Support nested dropdowns
- Sizes: sm, md, lg
- Icons: Icon support in dropdown items
- Dividers: Visual separators between groups
- Direction:
flex-row,flex-col,flex-wrap - Alignment:
items-center,content-center, etc. - Justification:
flex-between,flex-space-around - Gap:
gap-1togap-8 - Responsive: Prefixed variants (sm:, md:, lg:, xl:)
- Margin:
m-*,mx-*,my-*,mt-*,mb-*,ml-*,mr-* - Padding:
p-*,px-*,py-*,pt-*,pb-*,pl-*,pr-* - Responsive: All have breakpoint variants
- Values: 0 to 8 (0, 0.25rem, 0.5rem, ..., 2rem)
- Display:
hidden,block,flex,gridwith breakpoint prefixes - Columns: Grid columns from 1 to 5
- Gaps: Gap utilities for all breakpoints
- Text: Responsive text sizing utilities
- Font Weight:
font-lighttofont-extrabold - Letter Spacing:
tracking-tighttotracking-widest - Line Height:
leading-tighttoleading-loose - Text Align:
text-left,text-center,text-right - Text Truncation:
truncate,line-clamp-1,line-clamp-2,line-clamp-3
- Optimized CSS: 5,345 lines of compiled CSS (~145KB)
- Tree-Shaking Ready: Modular SCSS structure
- CSS Variables: Reduced overrides and redundancy
- Smooth Animations: Hardware-accelerated transforms
- Focus Indicators: Clear focus states for keyboard navigation
- ARIA Ready: Semantic structure for screen readers
- Color Contrast: WCAG AA compliant ratios
- Touch Targets: Minimum 44px tap targets
- Semantic HTML: Proper heading hierarchy and form labels
- System Preference: Respects
prefers-color-scheme: dark - CSS Variables: All colors use custom properties
- Automatic: No manual dark mode switching needed
- Complete Coverage: All components support dark mode
- sm: 640px
- md: 768px
- lg: 1024px
- xl: 1280px (default)
- 2xl: 1536px
- 12-Column:
.col-1to.col-12 - Responsive:
.col-sm-*,.col-md-*,.col-lg-*,.col-xl-*,.col-2xl-* - Auto:
.col-autofor auto-sizing - Offsets:
.offset-md-*to.offset-md-6
- Auto-Fit:
grid--auto-fitfor responsive grids - Named Columns:
grid--cols-2,grid--cols-3,grid--cols-4 - Responsive Stacking: Auto-stacks on smaller screens
- SCSS Files: 35 files
- Total SCSS Lines: 4,208 lines
- Compiled CSS: ~5,345 lines (145KB)
- Components: 20+ components
- Utilities: 200+ utility classes
- Chrome/Edge: Latest 2 versions
- Firefox: Latest 2 versions
- Safari: Latest 2 versions
- Mobile: iOS Safari 12+, Chrome Android latest
/* Old */
--primary-color: #4A90E2
/* New */
--primary-color: #6366F1
--primary-dark: #4F46E5
--primary-light: #818CF8<!-- Old -->
<button class="btn btn--primary">Click</button>
<!-- New (now with better styling) -->
<button class="btn btn--primary">Click</button><!-- Old -->
<input class="form-control" type="text">
<!-- New (with better styling and spacing) -->
<div class="form-group">
<label class="form-label">Label</label>
<input class="form-control" type="text">
</div>- RTL (Right-to-Left) support
- CSS-in-JS integration
- Component JavaScript library
- Design tokens export to other formats
- Extended animation library
- Advanced theming system
All components have been tested for:
- ✓ Responsiveness across breakpoints
- ✓ Accessibility standards (WCAG AA)
- ✓ Dark mode support
- ✓ Touch device compatibility
- ✓ Browser compatibility
- ✓ Performance metrics
Modern design patterns inspired by:
- Tailwind CSS
- Bootstrap
- Material Design
- Modern web standards (WCAG 2.1)
Updated: January 16, 2026 Version: 2.0.0 Status: Stable & Production Ready Migration Required: Yes, from v1.x to v2.0 Breaking Changes: Yes - See breaking changes section above