| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367 |
- @import "tailwindcss";
- @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
- /* Enable class-based dark mode for Tailwind v4 */
- @custom-variant dark (&:where(.dark, .dark *));
- @theme {
- /* Accent colors - use CSS variables for theming */
- --color-bambu-green: var(--accent);
- --color-bambu-green-light: var(--accent-light);
- --color-bambu-green-dark: var(--accent-dark);
- /* Theme-aware colors via CSS variables */
- --color-bambu-dark: var(--bg-primary);
- --color-bambu-dark-secondary: var(--bg-secondary);
- --color-bambu-dark-tertiary: var(--bg-tertiary);
- --color-bambu-gray: var(--text-muted);
- --color-bambu-gray-light: var(--text-secondary);
- --color-bambu-gray-dark: var(--text-tertiary);
- }
- /* ============================================
- BASE DEFAULTS
- ============================================ */
- :root {
- /* Default accent color (green) */
- --accent: #00ae42;
- --accent-light: #00c64d;
- --accent-dark: #009438;
- /* Default light mode background (neutral) */
- --bg-primary: #f5f5f5;
- --bg-secondary: #ffffff;
- --bg-tertiary: #e5e5e5;
- --text-primary: #1a1a1a;
- --text-secondary: #4a4a4a;
- --text-muted: #6b6b6b;
- --text-tertiary: #808080;
- --border-color: #d4d4d4;
- /* Default style (classic) */
- --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
- --glow-color: transparent;
- font-family: 'Inter', system-ui, sans-serif;
- line-height: 1.5;
- font-weight: 400;
- font-synthesis: none;
- text-rendering: optimizeLegibility;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- }
- /* Dark mode base */
- .dark {
- --bg-primary: #1a1a1a;
- --bg-secondary: #2d2d2d;
- --bg-tertiary: #3d3d3d;
- --text-primary: #ffffff;
- --text-secondary: #a0a0a0;
- --text-muted: #808080;
- --text-tertiary: #4a4a4a;
- --border-color: #3d3d3d;
- --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
- }
- /* ============================================
- LAYER 1: BACKGROUND PALETTES
- ============================================ */
- /* Light mode backgrounds */
- .bg-neutral {
- /* Default - already set in :root */
- }
- .bg-warm {
- --bg-primary: #faf8f5;
- --bg-secondary: #fffefa;
- --bg-tertiary: #e8e4dd;
- --text-primary: #2d2a26;
- --text-secondary: #5c5750;
- --text-muted: #7a756c;
- --text-tertiary: #9a9590;
- --border-color: #d8d4cc;
- }
- .bg-cool {
- --bg-primary: #f0f4f8;
- --bg-secondary: #ffffff;
- --bg-tertiary: #dce4ec;
- --text-primary: #1a2530;
- --text-secondary: #4a5568;
- --text-muted: #6b7a8a;
- --text-tertiary: #8a9aaa;
- --border-color: #c8d4e0;
- }
- /* Dark mode backgrounds */
- .dark.bg-neutral {
- --bg-primary: #1a1a1a;
- --bg-secondary: #2d2d2d;
- --bg-tertiary: #3d3d3d;
- --text-primary: #ffffff;
- --text-secondary: #a0a0a0;
- --text-muted: #808080;
- --text-tertiary: #4a4a4a;
- --border-color: #3d3d3d;
- }
- .dark.bg-warm {
- --bg-primary: #1c1a18;
- --bg-secondary: #2e2a26;
- --bg-tertiary: #3e3a36;
- --text-primary: #f5f0ea;
- --text-secondary: #b0a898;
- --text-muted: #8a8278;
- --text-tertiary: #5a5248;
- --border-color: #3e3a36;
- }
- .dark.bg-cool {
- --bg-primary: #181c20;
- --bg-secondary: #262c32;
- --bg-tertiary: #363e46;
- --text-primary: #f0f4f8;
- --text-secondary: #98a8b8;
- --text-muted: #788898;
- --text-tertiary: #4a5a6a;
- --border-color: #363e46;
- }
- .dark.bg-oled {
- --bg-primary: #000000;
- --bg-secondary: #141414;
- --bg-tertiary: #1f1f1f;
- --text-primary: #ffffff;
- --text-secondary: #a0a0a0;
- --text-muted: #707070;
- --text-tertiary: #404040;
- --border-color: #2a2a2a;
- }
- .dark.bg-slate {
- --bg-primary: #0f172a;
- --bg-secondary: #1e293b;
- --bg-tertiary: #334155;
- --text-primary: #f1f5f9;
- --text-secondary: #94a3b8;
- --text-muted: #64748b;
- --text-tertiary: #475569;
- --border-color: #334155;
- }
- .dark.bg-forest {
- --bg-primary: #121a16;
- --bg-secondary: #1c2a22;
- --bg-tertiary: #2a3d30;
- --text-primary: #e8f5ec;
- --text-secondary: #8aa894;
- --text-muted: #6a8874;
- --text-tertiary: #4a6854;
- --border-color: #2a3d30;
- }
- /* ============================================
- LAYER 2: STYLE EFFECTS
- ============================================ */
- /* Classic - default, clean minimal shadows */
- .style-classic {
- /* Uses default shadows from :root and .dark */
- }
- /* Glow - accent-colored glow effects on cards */
- .style-glow {
- --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 25px color-mix(in srgb, var(--accent) 12%, transparent);
- }
- .dark.style-glow {
- --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px color-mix(in srgb, var(--accent) 15%, transparent);
- }
- /* Vibrant - dramatic deep shadows, more contrast */
- .style-vibrant {
- --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
- }
- .dark.style-vibrant {
- --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
- }
- /* ============================================
- LAYER 3: ACCENT COLORS
- ============================================ */
- .accent-green {
- --accent: #00ae42;
- --accent-light: #00c64d;
- --accent-dark: #009438;
- }
- .accent-teal {
- --accent: #14b8a6;
- --accent-light: #2dd4bf;
- --accent-dark: #0d9488;
- }
- .accent-blue {
- --accent: #3b82f6;
- --accent-light: #60a5fa;
- --accent-dark: #2563eb;
- }
- .accent-orange {
- --accent: #f97316;
- --accent-light: #fb923c;
- --accent-dark: #ea580c;
- }
- .accent-purple {
- --accent: #8b5cf6;
- --accent-light: #a78bfa;
- --accent-dark: #7c3aed;
- }
- .accent-red {
- --accent: #ef4444;
- --accent-light: #f87171;
- --accent-dark: #dc2626;
- }
- body {
- background-color: var(--bg-primary);
- color: var(--text-primary);
- margin: 0;
- min-height: 100vh;
- transition: background-color 0.2s ease, color 0.2s ease;
- }
- #root {
- min-height: 100vh;
- }
- /* Override text-white to be theme-aware */
- .text-white {
- color: var(--text-primary);
- }
- /* Smooth transitions for theme changes */
- .bg-bambu-dark,
- .bg-bambu-dark-secondary,
- .bg-bambu-dark-tertiary,
- .border-bambu-dark-tertiary {
- transition: background-color 0.2s ease, border-color 0.2s ease;
- }
- /* Toast slide-in animation */
- @keyframes slide-in {
- from {
- transform: translateX(100%);
- opacity: 0;
- }
- to {
- transform: translateX(0);
- opacity: 1;
- }
- }
- .animate-slide-in {
- animation: slide-in 0.2s ease-out;
- }
- /* Theme-aware icon inversion - only invert in dark mode */
- .icon-theme {
- opacity: 0.5;
- }
- .dark .icon-theme {
- filter: invert(1);
- opacity: 0.4;
- }
- /* Green-colored icon for active status indicators */
- .icon-green {
- filter: invert(48%) sepia(89%) saturate(459%) hue-rotate(93deg) brightness(95%) contrast(92%);
- opacity: 1;
- }
- /* Orange/red-colored icon for heating indicators */
- .icon-heating {
- filter: invert(50%) sepia(100%) saturate(1000%) hue-rotate(360deg) brightness(100%) contrast(100%);
- opacity: 1;
- }
- /* Jogpad theme styling - darken background in dark mode */
- .jogpad-theme {
- /* Light mode - normal */
- }
- .dark .jogpad-theme {
- filter: brightness(0.35) contrast(1.2);
- }
- /* Empty AMS slot with diagonal stripes */
- .ams-empty-slot {
- background: repeating-linear-gradient(
- 45deg,
- #444,
- #444 2px,
- #222 2px,
- #222 4px
- );
- }
- .dark .ams-empty-slot {
- background: repeating-linear-gradient(
- 45deg,
- #555,
- #555 2px,
- #333 2px,
- #333 4px
- );
- }
- /* Touch manipulation to prevent zoom on double-tap */
- .touch-manipulation {
- touch-action: manipulation;
- }
- /* Safe area insets for notched devices */
- .safe-area-bottom {
- padding-bottom: env(safe-area-inset-bottom, 0);
- }
- .safe-area-top {
- padding-top: env(safe-area-inset-top, 0);
- }
- /* Hide scrollbar but keep functionality */
- .scrollbar-hide {
- -ms-overflow-style: none;
- scrollbar-width: none;
- }
- .scrollbar-hide::-webkit-scrollbar {
- display: none;
- }
- /* Mobile drawer animation */
- @keyframes slide-in-left {
- from {
- transform: translateX(-100%);
- }
- to {
- transform: translateX(0);
- }
- }
- .animate-slide-in-left {
- animation: slide-in-left 0.3s ease-out;
- }
- /* Card shadows - uses theme-specific shadow */
- .card-shadow {
- box-shadow: var(--card-shadow);
- }
|