90 lines
2.9 KiB
CSS
90 lines
2.9 KiB
CSS
@import "tailwindcss";
|
|
|
|
/* ============================================
|
|
PIM PLATFORM — GLOBAL DESIGN SYSTEM
|
|
Tailwind v4 @theme block: registers all CSS
|
|
custom properties as Tailwind utility classes.
|
|
e.g. --color-primary → bg-primary, text-primary, border-primary
|
|
Change a value here and it reflects everywhere.
|
|
============================================ */
|
|
|
|
@theme {
|
|
/* --- Brand / Primary --- */
|
|
--color-primary: #9F2BF5; /* vibrant neon purple */
|
|
--color-primary-hover: #8b25d6; /* hover state */
|
|
--color-primary-light: #c284f9; /* light accent */
|
|
--color-primary-dark: #6814a8; /* dark accent */
|
|
|
|
/* --- Semantic --- */
|
|
--color-success: #10B981; /* emerald-500 */
|
|
--color-warning: #F59E0B; /* amber-500 */
|
|
--color-danger: #EF4444; /* red-500 */
|
|
--color-info: #3B82F6; /* blue-500 */
|
|
|
|
/* --- Surface & Background --- */
|
|
--color-background: #f9fafb; /* gray-50 — app bg */
|
|
--color-surface: #ffffff; /* white — card/panel */
|
|
--color-surface-muted: #f3f4f6; /* gray-100 — muted surface */
|
|
|
|
/* --- Text --- */
|
|
--color-foreground: #111827; /* gray-900 — primary text */
|
|
--color-muted-foreground: #6b7280; /* gray-500 — secondary text */
|
|
--color-subtle-foreground: #9ca3af; /* gray-400 — placeholder */
|
|
|
|
/* --- Borders --- */
|
|
--color-border: #e5e7eb; /* gray-200 */
|
|
--color-border-strong: #d1d5db; /* gray-300 */
|
|
|
|
/* --- Sidebar-specific (override for light sidebar) --- */
|
|
--color-sidebar-bg: #ffffff;
|
|
--color-sidebar-text: #374151; /* gray-700 */
|
|
--color-sidebar-muted: #6b7280; /* gray-500 */
|
|
|
|
/* --- Font families --- */
|
|
--font-sans: 'Inter', system-ui, sans-serif;
|
|
--font-mono: 'JetBrains Mono', monospace;
|
|
|
|
/* --- Shadows --- */
|
|
--shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
|
|
--shadow-md: 0 4px 6px rgba(0,0,0,0.08);
|
|
--shadow-lg: 0 10px 15px rgba(0,0,0,0.10);
|
|
}
|
|
|
|
/* ============================================
|
|
LAYOUT CONSTANTS (used in JS/CSS via var())
|
|
These are NOT Tailwind utilities, just CSS vars.
|
|
============================================ */
|
|
:root {
|
|
--sidebar-width: 240px;
|
|
--sidebar-collapsed-width: 64px;
|
|
--header-height: 64px;
|
|
}
|
|
|
|
/* ============================================
|
|
BASE RESET
|
|
============================================ */
|
|
*, *::before, *::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-sans);
|
|
background-color: var(--color-background);
|
|
color: var(--color-foreground);
|
|
-webkit-font-smoothing: antialiased;
|
|
margin: 0;
|
|
}
|
|
|
|
/* ============================================
|
|
HIDE SCROLLBARS GLOBALLY
|
|
Keeps scroll functionality, removes visible bar.
|
|
============================================ */
|
|
* {
|
|
scrollbar-width: none; /* Firefox */
|
|
-ms-overflow-style: none; /* IE / Edge legacy */
|
|
}
|
|
|
|
*::-webkit-scrollbar {
|
|
display: none; /* Chrome, Safari, Edge (Chromium) */
|
|
}
|