index.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. @import "tailwindcss";
  2. @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
  3. /* Enable class-based dark mode for Tailwind v4 */
  4. @custom-variant dark (&:where(.dark, .dark *));
  5. @theme {
  6. /* Bambu Lab brand colors - always the same */
  7. --color-bambu-green: #00ae42;
  8. --color-bambu-green-light: #00c64d;
  9. --color-bambu-green-dark: #009438;
  10. /* Theme-aware colors via CSS variables */
  11. --color-bambu-dark: var(--bg-primary);
  12. --color-bambu-dark-secondary: var(--bg-secondary);
  13. --color-bambu-dark-tertiary: var(--bg-tertiary);
  14. --color-bambu-gray: var(--text-muted);
  15. --color-bambu-gray-light: var(--text-secondary);
  16. --color-bambu-gray-dark: var(--text-tertiary);
  17. }
  18. /* Light mode (default) */
  19. :root {
  20. --bg-primary: #f5f5f5;
  21. --bg-secondary: #ffffff;
  22. --bg-tertiary: #e5e5e5;
  23. --text-primary: #1a1a1a;
  24. --text-secondary: #4a4a4a;
  25. --text-muted: #6b6b6b;
  26. --text-tertiary: #808080;
  27. --border-color: #d4d4d4;
  28. font-family: 'Inter', system-ui, sans-serif;
  29. line-height: 1.5;
  30. font-weight: 400;
  31. font-synthesis: none;
  32. text-rendering: optimizeLegibility;
  33. -webkit-font-smoothing: antialiased;
  34. -moz-osx-font-smoothing: grayscale;
  35. }
  36. /* Dark mode */
  37. .dark {
  38. --bg-primary: #1a1a1a;
  39. --bg-secondary: #2d2d2d;
  40. --bg-tertiary: #3d3d3d;
  41. --text-primary: #ffffff;
  42. --text-secondary: #a0a0a0;
  43. --text-muted: #808080;
  44. --text-tertiary: #4a4a4a;
  45. --border-color: #3d3d3d;
  46. }
  47. body {
  48. background-color: var(--bg-primary);
  49. color: var(--text-primary);
  50. margin: 0;
  51. min-height: 100vh;
  52. transition: background-color 0.2s ease, color 0.2s ease;
  53. }
  54. #root {
  55. min-height: 100vh;
  56. }
  57. /* Override text-white to be theme-aware */
  58. .text-white {
  59. color: var(--text-primary);
  60. }
  61. /* Smooth transitions for theme changes */
  62. .bg-bambu-dark,
  63. .bg-bambu-dark-secondary,
  64. .bg-bambu-dark-tertiary,
  65. .border-bambu-dark-tertiary {
  66. transition: background-color 0.2s ease, border-color 0.2s ease;
  67. }
  68. /* Toast slide-in animation */
  69. @keyframes slide-in {
  70. from {
  71. transform: translateX(100%);
  72. opacity: 0;
  73. }
  74. to {
  75. transform: translateX(0);
  76. opacity: 1;
  77. }
  78. }
  79. .animate-slide-in {
  80. animation: slide-in 0.2s ease-out;
  81. }
  82. /* Theme-aware icon inversion - only invert in dark mode */
  83. .icon-theme {
  84. opacity: 0.5;
  85. }
  86. .dark .icon-theme {
  87. filter: invert(1);
  88. opacity: 0.4;
  89. }
  90. /* Green-colored icon for active status indicators */
  91. .icon-green {
  92. filter: invert(48%) sepia(89%) saturate(459%) hue-rotate(93deg) brightness(95%) contrast(92%);
  93. opacity: 1;
  94. }
  95. /* Orange/red-colored icon for heating indicators */
  96. .icon-heating {
  97. filter: invert(50%) sepia(100%) saturate(1000%) hue-rotate(360deg) brightness(100%) contrast(100%);
  98. opacity: 1;
  99. }
  100. /* Jogpad theme styling - darken background in dark mode */
  101. .jogpad-theme {
  102. /* Light mode - normal */
  103. }
  104. .dark .jogpad-theme {
  105. filter: brightness(0.35) contrast(1.2);
  106. }