index.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. @tailwind base;
  2. @tailwind components;
  3. @tailwind utilities;
  4. @layer base {
  5. /* Light theme (default) */
  6. :root {
  7. --bg-primary: #f9fafb; /* gray-50 */
  8. --bg-secondary: #ffffff; /* white */
  9. --bg-tertiary: #f3f4f6; /* gray-100 */
  10. --text-primary: #111827; /* gray-900 */
  11. --text-secondary: #4b5563; /* gray-600 */
  12. --text-muted: #6b7280; /* gray-500 */
  13. --border: #e5e7eb; /* gray-200 */
  14. --border-strong: #d1d5db; /* gray-300 */
  15. /* Accent colors - Blue for light theme */
  16. --accent-50: #eff6ff;
  17. --accent-100: #dbeafe;
  18. --accent-200: #bfdbfe;
  19. --accent-500: #3b82f6;
  20. --accent-600: #2563eb;
  21. --accent-700: #1d4ed8;
  22. --accent-800: #1e40af;
  23. }
  24. /* Dark theme */
  25. .dark {
  26. --bg-primary: #111827; /* gray-900 */
  27. --bg-secondary: #1f2937; /* gray-800 */
  28. --bg-tertiary: #374151; /* gray-700 */
  29. --text-primary: #f9fafb; /* gray-50 */
  30. --text-secondary: #d1d5db;/* gray-300 */
  31. --text-muted: #9ca3af; /* gray-400 */
  32. --border: #374151; /* gray-700 */
  33. --border-strong: #4b5563; /* gray-600 */
  34. /* Accent colors - Amber for dark theme */
  35. --accent-50: #fffbeb;
  36. --accent-100: #fef3c7;
  37. --accent-200: #fde68a;
  38. --accent-500: #f59e0b;
  39. --accent-600: #d97706;
  40. --accent-700: #b45309;
  41. --accent-800: #92400e;
  42. }
  43. body {
  44. @apply antialiased transition-colors duration-200;
  45. background-color: var(--bg-primary);
  46. color: var(--text-primary);
  47. }
  48. }
  49. @layer components {
  50. .btn {
  51. @apply px-4 py-2 rounded-lg font-medium transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2;
  52. }
  53. .btn-primary {
  54. background-color: var(--accent-600);
  55. @apply text-white focus:ring-offset-2;
  56. }
  57. .btn-primary:hover {
  58. background-color: var(--accent-700);
  59. }
  60. .btn-primary:focus {
  61. --tw-ring-color: var(--accent-500);
  62. }
  63. .dark .btn-primary {
  64. @apply focus:ring-offset-gray-900;
  65. }
  66. .btn-secondary {
  67. @apply bg-gray-200 text-gray-800 hover:bg-gray-300 focus:ring-gray-500 dark:bg-gray-700 dark:text-gray-200 dark:hover:bg-gray-600;
  68. }
  69. .btn-danger {
  70. @apply bg-red-600 text-white hover:bg-red-700 focus:ring-red-500;
  71. }
  72. .input {
  73. @apply w-full px-4 py-2 rounded-lg focus:outline-none focus:ring-2 focus:border-transparent transition-colors duration-200;
  74. background-color: var(--bg-secondary);
  75. color: var(--text-primary);
  76. border: 1px solid var(--border-strong);
  77. }
  78. .input:focus {
  79. --tw-ring-color: var(--accent-500);
  80. }
  81. .input::placeholder {
  82. color: var(--text-muted);
  83. }
  84. .card {
  85. @apply rounded-xl shadow-sm transition-colors duration-200;
  86. background-color: var(--bg-secondary);
  87. border: 1px solid var(--border);
  88. }
  89. }