Files
menassit/client/src/index.css
T
ghaddaditw 8f543623b5 Improve app performance and font rendering for Arabic language users
Implements Arabic font optimization, performance tracking, and server-side performance monitoring using performanceOptimization service.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: c5f0c281-8dd8-4846-b452-4a07bcd21062
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9777c70b-fc38-4831-8d6b-78dfffe041b0/aafbff93-ed78-4896-8b12-66a9ce417e74.jpg
2025-06-08 07:58:21 +00:00

153 lines
3.6 KiB
CSS

/* Arabic font optimization */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;
--card: 0 0% 100%;
--card-foreground: 222.2 84% 4.9%;
--popover: 0 0% 100%;
--popover-foreground: 222.2 84% 4.9%;
--primary: 221.2 83.2% 53.3%;
--primary-foreground: 210 40% 98%;
--secondary: 210 40% 96%;
--secondary-foreground: 222.2 84% 4.9%;
--muted: 210 40% 96%;
--muted-foreground: 215.4 16.3% 46.9%;
--accent: 210 40% 96%;
--accent-foreground: 222.2 84% 4.9%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;
--border: 214.3 31.8% 91.4%;
--input: 214.3 31.8% 91.4%;
--ring: 221.2 83.2% 53.3%;
--radius: 0.75rem;
--chart-1: 12 76% 61%;
--chart-2: 173 58% 39%;
--chart-3: 197 37% 24%;
--chart-4: 43 74% 66%;
--chart-5: 27 87% 67%;
/* Arabic performance optimizations */
--font-arabic: 'Noto Sans Arabic', 'Amiri', 'Arabic UI Text', 'Tahoma', sans-serif;
--font-arabic-display: 'Noto Sans Arabic', 'Amiri', 'Arabic UI Display', sans-serif;
}
.dark {
--background: 222.2 84% 4.9%;
--foreground: 210 40% 98%;
--card: 222.2 84% 4.9%;
--card-foreground: 210 40% 98%;
--popover: 222.2 84% 4.9%;
--popover-foreground: 210 40% 98%;
--primary: 217.2 91.2% 59.8%;
--primary-foreground: 222.2 84% 4.9%;
--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;
--muted: 217.2 32.6% 17.5%;
--muted-foreground: 215 20.2% 65.1%;
--accent: 217.2 32.6% 17.5%;
--accent-foreground: 210 40% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 210 40% 98%;
--border: 217.2 32.6% 17.5%;
--input: 217.2 32.6% 17.5%;
--ring: 224.3 76.3% 94.0%;
--chart-1: 220 70% 50%;
--chart-2: 160 60% 45%;
--chart-3: 30 80% 55%;
--chart-4: 280 65% 60%;
--chart-5: 340 75% 55%;
}
}
@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
font-feature-settings: "rlig" 1, "calt" 1;
}
}
/* Arabic text optimizations */
.arabic-text {
font-family: var(--font-arabic);
font-display: swap;
text-rendering: optimizeLegibility;
font-variant-ligatures: common-ligatures contextual;
font-feature-settings: "liga" 1, "calt" 1, "kern" 1;
}
/* RTL-specific optimizations */
[dir="rtl"] {
text-align: right;
}
[dir="rtl"] .sidebar {
border-left: 1px solid hsl(var(--border));
border-right: none;
}
[dir="ltr"] .sidebar {
border-right: 1px solid hsl(var(--border));
border-left: none;
}
/* Performance optimizations for Arabic rendering */
.arabic-text * {
will-change: auto;
contain: layout style;
}
/* Focus indicators for accessibility */
.focus\:ring-arabic:focus {
outline: 2px solid hsl(var(--ring));
outline-offset: 2px;
}
/* Animation optimizations */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* High contrast mode support */
@media (prefers-contrast: high) {
:root {
--background: 0 0% 100%;
--foreground: 0 0% 0%;
--border: 0 0% 50%;
}
.dark {
--background: 0 0% 0%;
--foreground: 0 0% 100%;
--border: 0 0% 50%;
}
}
/* Print styles */
@media print {
.no-print {
display: none !important;
}
body {
font-size: 12pt;
line-height: 1.4;
}
.arabic-text {
font-family: 'Noto Sans Arabic', serif;
}
}