/* See the Tailwind configuration guide for advanced usage https://tailwindcss.com/docs/configuration */ @import "tailwindcss" source(none); @source "../css"; @source "../js"; @source "../../lib/towerops_web"; /* ── Custom color palette ── */ @theme { --color-sweet-salmon-50: #ffe7e6; --color-sweet-salmon-100: #fed0cd; --color-sweet-salmon-200: #fea19a; --color-sweet-salmon-300: #fd7268; --color-sweet-salmon-400: #fd4235; --color-sweet-salmon-500: #fc1303; --color-sweet-salmon-600: #ca0f02; --color-sweet-salmon-700: #970c02; --color-sweet-salmon-800: #650801; --color-sweet-salmon-900: #320401; --color-sweet-salmon-950: #230300; --color-desert-sand-50: #faf0eb; --color-desert-sand-100: #f5e2d6; --color-desert-sand-200: #ebc5ad; --color-desert-sand-300: #e0a885; --color-desert-sand-400: #d68b5c; --color-desert-sand-500: #cc6e33; --color-desert-sand-600: #a35829; --color-desert-sand-700: #7a421f; --color-desert-sand-800: #522c14; --color-desert-sand-900: #29160a; --color-desert-sand-950: #1d0f07; --color-wheat-50: #faf4eb; --color-wheat-100: #f5e9d6; --color-wheat-200: #ebd3ad; --color-wheat-300: #e0bd85; --color-wheat-400: #d6a75c; --color-wheat-500: #cc9133; --color-wheat-600: #a37429; --color-wheat-700: #7a571f; --color-wheat-800: #523a14; --color-wheat-900: #291d0a; --color-wheat-950: #1d1407; --color-cool-steel-50: #f0f3f4; --color-cool-steel-100: #e1e7ea; --color-cool-steel-200: #c4cfd4; --color-cool-steel-300: #a6b7bf; --color-cool-steel-400: #89a0a9; --color-cool-steel-500: #6b8894; --color-cool-steel-600: #566d76; --color-cool-steel-700: #405159; --color-cool-steel-800: #2b363b; --color-cool-steel-900: #151b1e; --color-cool-steel-950: #0f1315; --color-cerulean-50: #edf4f8; --color-cerulean-100: #dbe9f0; --color-cerulean-200: #b6d3e2; --color-cerulean-300: #92bcd3; --color-cerulean-400: #6da6c5; --color-cerulean-500: #4990b6; --color-cerulean-600: #3a7392; --color-cerulean-700: #2c566d; --color-cerulean-800: #1d3a49; --color-cerulean-900: #0f1d24; --color-cerulean-950: #0a141a; /* Design tokens (replaces daisyUI semantic variables) */ --radius-selector: 0.25rem; --radius-field: 0.25rem; --radius-box: 0.5rem; } /* Heroicons plugin */ @plugin "../vendor/heroicons"; /* ── Custom variants ── */ @custom-variant phx-click-loading (.phx-click-loading&, .phx-click-loading &); @custom-variant phx-submit-loading (.phx-submit-loading&, .phx-submit-loading &); @custom-variant phx-change-loading (.phx-change-loading&, .phx-change-loading &); /* Use the data attribute for dark mode */ @custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *)); /* ── Reusable utility classes (replaces daisyUI component classes) ── */ /* Card — replaces daisyUI `card card-body bg-base-100 border-base-200` */ @utility card { border-radius: var(--radius-box); border: 1px solid var(--color-cool-steel-200); background: var(--color-cool-steel-50); padding: 1.5rem; } [data-theme="dark"] .card { border-color: var(--color-cool-steel-700); background: var(--color-cool-steel-900); } /* Badge — replaces daisyUI `badge` */ @utility badge { display: inline-flex; align-items: center; border-radius: 9999px; padding-inline: 0.625rem; padding-block: 0.125rem; font-size: 0.75rem; font-weight: 500; line-height: 1.25rem; } /* Button base — replaces daisyUI `btn` (for standalone usage outside core_components) */ @utility btn { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: var(--radius-field); padding-inline: 1rem; padding-block: 0.5rem; font-size: 0.875rem; font-weight: 500; line-height: 1.25rem; cursor: pointer; border: 1px solid transparent; background: var(--color-cool-steel-200); color: var(--color-cool-steel-900); transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; } [data-theme="dark"] .btn { background: var(--color-cool-steel-700); color: var(--color-cool-steel-50); } /* ── Base element styles (replaces daisyUI resets) ── */ /* Make LiveView wrapper divs transparent for layout */ [data-phx-session], [data-phx-teleported-src] { display: contents } /* Hide 1Password live region */ [id="1p-live-region"] { display: none !important; } /* Sidebar layout */ #app-sidebar { width: 14rem; transition: width 0.2s ease; } html.sidebar-collapsed #app-sidebar { width: 4rem; } html.sidebar-collapsed [data-sidebar-text] { display: none; } html.sidebar-collapsed [data-sidebar-section] { display: none; } html.sidebar-collapsed .sidebar-collapse-icon { transform: rotate(180deg); } .sidebar-collapse-icon { transition: transform 0.2s ease; } html.sidebar-collapsed [data-sidebar-tooltip] { position: relative; } html.sidebar-collapsed [data-sidebar-tooltip]:hover::after { content: attr(data-sidebar-tooltip); position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 0.5rem; padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; white-space: nowrap; z-index: 50; background-color: #1f2937; color: #fff; pointer-events: none; } #main-wrapper { transition: width 0.2s ease; } /* ── Animations ── */ /* Page transitions */ @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } .page-fade-in { animation: fadeIn 0.15s ease-out; } /* Smooth transitions on interactive elements */ .card, .btn, .badge { transition: box-shadow 0.15s ease, transform 0.15s ease; } /* Subtle hover lift on cards */ .card-hover:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transform: translateY(-1px); } @media (prefers-color-scheme: dark) { .card-hover:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } } /* Status pulse animation for live indicators */ @keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .status-pulse { animation: statusPulse 2s ease-in-out infinite; } /* Skeleton shimmer effect */ @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } } .skeleton-shimmer { background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.08) 50%, transparent 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; } /* ── Global element styles ── */ /* Scrollbar styling for webkit */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.25); } [data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); } [data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); } /* Table row hover highlight */ tbody tr:hover td { background-color: rgba(73, 144, 182, 0.06); } [data-theme="dark"] tbody tr:hover td { background-color: rgba(73, 144, 182, 0.12); } /* Focus ring styling */ :focus-visible { outline: 2px solid var(--color-cerulean-500); outline-offset: 2px; } /* Global smooth transitions for interactive elements */ a, button, input, select, textarea { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; } /* Password strength indicator (JS-driven via classes) */ .password-strength-bar.strength-weak { background-color: var(--color-sweet-salmon-500); } .password-strength-bar.strength-fair { background-color: var(--color-wheat-500); } .password-strength-bar.strength-good { background-color: #22c55e; } .password-strength-bar.strength-strong { background-color: #16a34a; }