Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 | /* src/styles/tailwindCustom.css */
/*
Import Tailwind Base Styles
- Ensures Tailwind CSS utilities, components, and base styles are included.
- Provides global access to Tailwind's responsive and utility classes.
*/
@tailwind base;
@tailwind components;
@tailwind utilities;
/*
Global Color Variables
- Defines primary colors for light and dark mode.
- Ensures consistent styling across the application.
*/
:root {
--bg-color: #f9fafb; /* Light Gray */
--text-color: #1f2937; /* Dark Text */
--card-bg: #ffffff; /* White for Cards */
--border-color: #d1d5db; /* Soft Borders */
--button-bg: #2563eb; /* Primary Blue */
--button-text: #ffffff; /* White Text */
--button-hover: #1e40af; /* Darker Blue */
--button-secondary: #6b7280; /* Gray */
--button-secondary-hover: #374151; /* Darker Gray */
}
/*
Dark Mode Color Variables
- Overrides default colors when dark mode is enabled.
*/
.dark {
--bg-color: #1a202c; /* Dark Background */
--text-color: #f7fafc; /* Light Text */
--card-bg: #2d3748; /* Darker Cards */
--border-color: #4a5568; /* Borders */
--button-bg: #60a5fa; /* Soft Blue */
--button-text: #f8fafc; /* Light Text */
--button-hover: #3b82f6; /* Bright Blue */
--button-secondary: #9ca3af; /* Light Gray */
--button-secondary-hover: #6b7280; /* Darker Gray */
}
/*
Body Styling
- Applies background and text color based on selected theme.
*/
body {
background-color: var(--bg-color);
color: var(--text-color);
}
/* Ensure Dark Mode Applies Correctly */
.dark body {
background-color: var(--bg-color);
color: var(--text-color);
}
/*
Dark Mode Overrides for Backgrounds and Text
- Ensures elements adapt correctly in dark mode.
*/
.dark .bg-gray-100 {
background-color: var(--bg-color) !important;
}
.dark .bg-white {
background-color: var(--card-bg) !important;
}
.dark .text-gray-700 {
color: var(--text-color) !important;
}
/*
Header & Footer Styling
- Provides consistent header/footer styling across pages.
*/
.header-container {
@apply bg-white text-gray-900 shadow-md;
}
.dark .header-container,
.dark .footer-container {
background-color: var(--card-bg) !important;
color: var(--text-color) !important;
}
.footer-container {
@apply bg-gray-200 text-gray-700 text-center py-4;
}
/*
Input Fields
- Standardizes input field appearance with focus and hover effects.
*/
.input-field {
@apply w-full px-4 py-2 border rounded transition-all duration-300 ease-in-out
focus:outline-none focus:ring focus:ring-yellow-500
hover:bg-yellow-100 focus:bg-yellow-300;
}
/* Dark Mode Input Fields */
.dark .input-field {
@apply bg-gray-700 text-white border-gray-500
focus:bg-gray-600 hover:bg-gray-600;
}
/*
Primary & Secondary Buttons
- Ensures consistent button styling across the app.
*/
.button-primary {
@apply w-full px-4 py-2 rounded transition-all duration-200 ease-in-out
active:scale-95 min-w-[120px]
bg-blue-500 text-white hover:bg-blue-600;
}
.dark .button-primary {
@apply bg-blue-500 hover:bg-blue-400 text-white;
}
.button-secondary {
@apply w-full px-4 py-2 rounded transition-all duration-200 ease-in-out
active:scale-95 min-w-[120px]
bg-gray-400 text-white hover:bg-gray-500
dark:bg-gray-600 dark:hover:bg-gray-700 dark:text-white;
}
/*
Confirmation Buttons
- Used in confirmation dialogs (Yes/No prompts).
*/
.button-confirmation {
@apply px-4 py-2 rounded transition-all duration-200 ease-in-out active:scale-95;
}
/* Yes Button (Green) */
.button-confirmation-yes {
@apply bg-green-600 text-white font-semibold rounded-lg px-4 py-2
hover:bg-green-700 active:scale-95;
}
.dark .button-confirmation-yes {
@apply bg-green-500 hover:bg-green-400;
}
/* No Button (Red) */
.button-confirmation-no {
@apply bg-red-600 text-white font-semibold rounded-lg px-4 py-2
hover:bg-red-700 active:scale-95;
}
.dark .button-confirmation-no {
@apply bg-red-500 hover:bg-red-400;
}
/*
Logout & Dashboard Buttons
- Defines styles for navigation buttons.
*/
.logout-button {
@apply px-4 py-2 text-sm rounded-md transition-all duration-200 ease-in-out active:scale-95;
background-color: #ef4444;
color: white;
}
.logout-button:hover {
background-color: #dc2626;
}
.dark .logout-button {
background-color: #e53e3e !important;
}
.dark .logout-button:hover {
background-color: #b91c1c !important;
}
/*
Help & Language Buttons
- Provides UI consistency for help and language selection.
*/
.button-help {
@apply px-4 py-2 rounded transition-all duration-200 ease-in-out
active:scale-95 min-w-[120px]
bg-gray-300 text-black hover:bg-gray-400
dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600;
}
.language-button {
@apply px-4 py-2 text-sm rounded-md transition-all
active:scale-95
bg-gray-100 text-black hover:bg-gray-300;
}
.dark .language-button {
@apply bg-blue-500 text-white hover:bg-blue-400;
}
/*
Modal Styling
- Used for help and confirmation modals.
*/
.help-modal {
@apply bg-white shadow-lg rounded-lg p-6;
}
.dark .help-modal {
background-color: var(--card-bg) !important;
color: var(--text-color) !important;
}
/* Help Modal Title */
.help-modal-title {
@apply text-gray-800;
}
.dark .help-modal-title {
color: var(--text-color) !important;
}
/*
Text Styles
- Standardizes text appearance throughout the app.
*/
.text-dark {
@apply text-gray-900;
}
.dark .text-dark {
color: var(--text-color) !important;
}
.text-muted {
@apply text-gray-600;
}
.dark .text-muted {
color: var(--text-color) !important;
}
/*
Dark Mode Toggle Button
- Used for switching between light and dark mode.
*/
.dark-mode-button {
@apply p-2 rounded-md transition-all active:scale-95;
background-color: #696a6b;
color: var(--text-color);
}
/* Light Mode: Sun Icon */
.dark-mode-button svg {
color: #facc15;
}
/* Dark Mode: Moon Icon */
.dark .dark-mode-button svg {
color: #f8fafc;
}
/* Hover Effect */
.dark-mode-button:hover {
background-color: var(--button-secondary-hover);
transform: scale(1.1);
}
/*
Admin & User Dashboard Buttons
- Standardizes buttons used in dashboards.
*/
.button-add {
@apply bg-green-600 text-white rounded-lg px-5 py-2 transition-all
hover:bg-green-700 active:scale-95;
}
.dark .button-add {
@apply bg-green-500 hover:bg-green-400;
}
.button-delete {
@apply bg-red-600 text-white rounded-lg px-5 py-2 transition-all
hover:bg-red-700 active:scale-95;
}
.dark .button-delete {
@apply bg-red-500 hover:bg-red-400;
}
.button-search {
@apply bg-blue-600 text-white rounded-lg px-5 py-2 transition-all
hover:bg-blue-700 active:scale-95;
}
.dark .button-search {
@apply bg-blue-500 hover:bg-blue-400;
}
.button-stock {
@apply bg-yellow-600 text-white rounded-lg px-5 py-2 transition-all
hover:bg-yellow-700 active:scale-95;
}
.dark .button-stock {
@apply bg-yellow-500 hover:bg-yellow-400;
}
/*
List Stock - Product Cards
- Defines styles for inventory display.
*/
.product-card {
@apply p-4 border rounded shadow transition-all duration-200;
background-color: var(--card-bg);
color: var(--text-color);
}
/* Highlight Selected Product */
.selected-product {
@apply bg-blue-200 border-blue-500 text-blue-900 font-semibold;
}
.dark .selected-product {
@apply bg-blue-600 border-blue-400 text-white;
}
/*
Skeleton Loader Styles
- Used during data fetching.
*/
.skeleton-loader-container {
@apply fixed inset-0 flex items-center justify-center bg-gray-100 dark:bg-gray-900;
}
/* Skeleton Loading Text */
.skeleton-text {
@apply text-lg font-semibold text-gray-700 dark:text-white animate-pulse;
}
|