Complete instructions for integrating the design system into your application
The design system uses a consistent color palette defined as CSS variables:
:root {
--primary: #3a86ff;
--primary-dark: #2563eb;
--secondary: #64748b;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--info: #3b82f6;
--dark: #1e293b;
--light: #f8fafc;
--gray: #94a3b8;
--card-bg: rgba(255, 255, 255, 0.8);
--card-border: rgba(255, 255, 255, 0.2);
--card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
--border-radius: 16px;
}
The design uses the Inter font family with different weights:
Inter, system-ui, -apple-system, sans-serif'Courier New', monospacefont-family: 'Inter', system-ui, -apple-system, sans-serif;
font-weight: 400; /* Regular */
font-weight: 500; /* Medium */
font-weight: 600; /* Semi-bold */
font-weight: 700; /* Bold */
Add the CSS variables to your :root selector in your main CSS file:
/* Define color variables */
:root {
--primary: #3a86ff;
--primary-dark: #2563eb;
--secondary: #64748b;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--info: #3b82f6;
--dark: #1e293b;
--light: #f8fafc;
--gray: #94a3b8;
--card-bg: rgba(255, 255, 255, 0.8);
--card-border: rgba(255, 255, 255, 0.2);
--card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
--border-radius: 16px;
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
:root {
--dark: #f8fafc;
--light: #1e293b;
--gray: #64748b;
--card-bg: rgba(30, 30, 36, 0.8);
--card-border: rgba(255, 255, 255, 0.1);
--card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
}
Include these dependencies in your HTML head section:
<!-- Font Awesome Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
Use this HTML structure for dashboard cards:
<div class="stat-card">
<div class="stat-card-header">
<div class="icon-wrapper cars-icon">
<i class="fas fa-car"></i>
</div>
<div class="card-actions">
<button class="card-action-btn"><i class="fas fa-sync"></i></button>
<button class="card-action-btn"><i class="fas fa-expand"></i></button>
</div>
</div>
<div class="stat-card-content">
<div class="stat-info">
<h3>42</h3>
<p>Total Vehicles in Fleet</p>
<div class="trend up">
<i class="fas fa-arrow-up"></i> 12% from last month
</div>
</div>
<!-- Additional components like charts, progress bars -->
</div>
<div class="card-footer">
<button class="action-btn">
<i class="fas fa-list"></i> View Details
</button>
</div>
</div>
Use these media queries for responsive layouts:
/* Tablet devices */
@media (max-width: 1024px) {
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}
}
/* Mobile devices */
@media (max-width: 768px) {
.stats-grid {
grid-template-columns: 1fr;
}
.header {
flex-direction: column;
text-align: center;
}
}
/* Small mobile devices */
@media (max-width: 480px) {
.stat-card {
padding: 16px;
}
.action-btn {
width: 100%;
}
}
Glassmorphism effect with data visualization
Responsive sidebar with mobile support
Grid-based responsive layout system
Buttons, toggles, and action controls
Use the CSS variables consistently throughout your application for theming. This makes it easy to change the design system later.
Implement the mobile design first, then use media queries to enhance the experience on larger screens.
Create reusable CSS classes for cards, buttons, and other UI elements to maintain consistency.
Consider using CSS minification and bundling for production to improve loading times.
When asking AI assistants to implement components, use this structure:
Here's how to ask for a specific component:
Create a customer management page for my Rent-a-Car application
with the following requirements:
- Use the glassmorphism design system with the CSS variables provided
- Display customers in a responsive card grid layout
- Each card should show: avatar, name, contact info, and status badge
- Include search and filter functionality at the top
- Implement responsive design for mobile devices
- Use Font Awesome icons for actions (edit, delete, view details)