index.css 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. @import "./login/index.css";
  2. /*
  3. Background layers
  4. --bg-base: #14171c — app background
  5. --bg-surface: #1c2027 — cards/panels
  6. --bg-surface-raised: #262b34 — modals, dropdowns, hover states
  7. --bg-inset: #0e1014 — sunken elements (input fields, code blocks)
  8. Text
  9. --text-primary: #eef1f5
  10. --text-secondary: #9aa3af
  11. --text-tertiary: #5c6470
  12. Accent (interactive/brand)
  13. --accent: #4f9cf9 — primary actions, active toggles, links
  14. --accent-hover: #6bacfa
  15. --accent-muted: #2a3b52 — subtle backgrounds for selected/active rows
  16. Borders
  17. --border-subtle: #2a2f38
  18. --border-strong: #3a4049
  19. Semantic / device-state colors
  20. These matter a lot for a HA UI since you're constantly showing on/off, alerts, and sensor readings:
  21. --state-on: #f5b942 — entity "on" (warm amber reads well as "light is on," avoids clashing with accent blue)
  22. --state-off: #4a5058 — entity "off" (neutral gray, not red — off isn't an error)
  23. --success: #4caf7d — armed, locked, connected, healthy
  24. --warning: #e8a33d — low battery, unavailable-but-not-critical
  25. --danger: #e5484d — alarm triggered, offline, critical sensor
  26. --info: #4f9cf9 — same as accent, reuse for info badges
  27. */
  28. :root {
  29. /* Backgrounds */
  30. --bg-base: #14171c;
  31. --bg-surface: #1c2027;
  32. --bg-surface-raised: #262b34;
  33. --bg-inset: #0e1014;
  34. /* Text */
  35. --text-primary: #eef1f5;
  36. --text-secondary: #9aa3af;
  37. --text-tertiary: #5c6470;
  38. /* Accent */
  39. --accent: #4f9cf9;
  40. --accent-hover: #6bacfa;
  41. --accent-muted: #2a3b52;
  42. /* Borders */
  43. --border-subtle: #2a2f38;
  44. --border-strong: #3a4049;
  45. /* Semantic / device state */
  46. --state-on: #f5b942;
  47. --state-off: #4a5058;
  48. --success: #4caf7d;
  49. --warning: #e8a33d;
  50. --danger: #e5484d;
  51. --info: #4f9cf9;
  52. }
  53. *{
  54. margin: 0;
  55. padding: 0;
  56. box-sizing: border-box;
  57. }
  58. body, html{
  59. height: 100%;
  60. width: 100%;
  61. }
  62. body{
  63. background: var(--bg-base);
  64. color: var(--text-primary);
  65. }