index.css 1.9 KB

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