globals.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. @import "tailwindcss";
  2. @plugin '../../hero.ts';
  3. @source '../../node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}';
  4. @custom-variant dark (&:is(.dark *));
  5. html,
  6. body {
  7. scrollbar-width: thin;
  8. scrollbar-color: #6b7280 transparent;
  9. }
  10. html::-webkit-scrollbar,
  11. body::-webkit-scrollbar {
  12. width: 6px;
  13. height: 6px;
  14. }
  15. html::-webkit-scrollbar-track,
  16. body::-webkit-scrollbar-track {
  17. background: transparent;
  18. }
  19. html::-webkit-scrollbar-thumb,
  20. body::-webkit-scrollbar-thumb {
  21. background-color: #6b7280;
  22. border-radius: 9999px;
  23. }
  24. .dark html::-webkit-scrollbar-thumb,
  25. .dark body::-webkit-scrollbar-thumb {
  26. background-color: #d4d4d4;
  27. }
  28. @theme {
  29. /* Custom breakpoints */
  30. --breakpoint-xxs: 375px;
  31. --breakpoint-xs: 425px;
  32. --breakpoint-xss: 525px;
  33. --breakpoint-400: 400px;
  34. --breakpoint-sm: 640px;
  35. --breakpoint-md: 768px;
  36. --breakpoint-lg: 1024px;
  37. --breakpoint-xl: 1280px;
  38. --breakpoint-2xl: 1610px;
  39. --breakpoint-3xl: 1640px;
  40. --breakpoint-1366: 1366px;
  41. /* Custom spacing */
  42. --spacing-7_5: 30px;
  43. --spacing-30: 120px;
  44. --spacing-92_5: 23.125rem;
  45. /* Font sizes */
  46. --font-size-xxs: 13px;
  47. /* Font family */
  48. --font-family-outfit: var(--font-outfit), system-ui, sans-serif;
  49. }
  50. /* GLOBAL VARIABLES */
  51. :root {
  52. /* Font families */
  53. font-family: var(--font-outfit), system-ui, sans-serif;
  54. --background: #ffffff;
  55. --foreground: #000;
  56. --color-selected-black: #00000099;
  57. --hero-background: #ffffff;
  58. --hero-foreground: #000;
  59. --dark-grey: #404040;
  60. --selected-color: #e3ecff;
  61. --selected-color-dark: #555b69;
  62. --selected-bottom-dark: #95b6ff;
  63. --selected-bg-bottom-dark: #314779;
  64. --input-color: #b3b3b3;
  65. /* font size */
  66. --font-size-xxs: 13px;
  67. /* Spacing */
  68. --space-30: 120px;
  69. --space-7_5: 30px;
  70. --space-92_5: 23.125rem;
  71. /* Screens (breakpoints) */
  72. --screen-xxs: 360px;
  73. --screen-xs: 425px;
  74. --screen-xss: 525px;
  75. --screen-400: 400px;
  76. --screen-sm: 640px;
  77. --screen-md: 768px;
  78. --screen-lg: 1024px;
  79. --screen-xl: 1280px;
  80. --screen-2xl: 1610px;
  81. --screen-3xl: 1640px;
  82. --screen-1366: 1366px;
  83. }
  84. .dark {
  85. --background: #171717;
  86. --foreground: #ffffff;
  87. --hero-background: #171717;
  88. --hero-foreground: #ffffff;
  89. }
  90. @theme inline {
  91. --color-background: var(--background);
  92. --color-foreground: var(--foreground);
  93. --color-font-color: var(--font-color);
  94. --color-selected-black: var(--color-selected-black);
  95. --color-dark-grey: var(--dark-grey);
  96. --color-selected-color: var(--selected-color);
  97. --color-selected-color-dark: var(--selected-color-dark);
  98. --color-selected-bottom-dark: var(--selected-bottom-dark);
  99. --color-selected-bg-bottom-dark: var(--selected-bg-bottom-dark);
  100. --color-input-color: var(--input-color);
  101. }
  102. body {
  103. background: var(--background);
  104. color: var(--foreground);
  105. font-family: var(--font-outfit), system-ui, sans-serif;
  106. }
  107. @layer components {
  108. /* Hide scrollbar for drawer content */
  109. .drawer-scrollbar-hidden {
  110. scrollbar-width: none;
  111. /* Firefox */
  112. -ms-overflow-style: none;
  113. /* IE and Edge */
  114. }
  115. .drawer-scrollbar-hidden::-webkit-scrollbar {
  116. display: none;
  117. /* Chrome, Safari, Opera */
  118. }
  119. .placeholder-input-color::placeholder {
  120. color: var(--input-color);
  121. }
  122. .dark .placeholder-selected-color-dark::placeholder {
  123. color: var(--selected-color-dark);
  124. }
  125. .mobile-heading h2 {
  126. @apply sticky bg-white z-50 dark:bg-background top-0;
  127. }
  128. .prose h1 {
  129. margin: 12px 0 !important;
  130. font-family: Outfit, sans-serif !important;
  131. font-size: 24px !important;
  132. font-weight: 600 !important;
  133. }
  134. .prose p {
  135. color: var(--color-selected-black) !important;
  136. font-weight: 300 !important;
  137. }
  138. .dark .prose p {
  139. color: white !important;
  140. font-weight: 300 !important;
  141. }
  142. .margin-t {
  143. margin-top: -9px;
  144. }
  145. @keyframes shimmer {
  146. 0% {
  147. transform: translateX(-100%);
  148. }
  149. 100% {
  150. transform: translateX(100%);
  151. }
  152. }
  153. .image-carousel-aspect {
  154. aspect-ratio: 1.72;
  155. }
  156. @media (min-width: 768px) {
  157. .image-carousel-aspect {
  158. aspect-ratio: 1.98;
  159. }
  160. }
  161. /* Prevent body scrolling when drawer is open */
  162. .scroll-locked {
  163. overflow: hidden !important;
  164. height: 100vh !important;
  165. width: 100vw !important;
  166. position: fixed !important;
  167. top: 0;
  168. left: 0;
  169. touch-action: none;
  170. -webkit-overflow-scrolling: none;
  171. }
  172. }