react-accessible-time-picker
Version:
A simple and customizable time picker component for React
48 lines (42 loc) • 1.45 kB
CSS
:root {
/* Default light theme */
--time-text: #1f2937;
--time-bg: #ffffff;
--time-border: #d1d5db;
--time-focus-border: #3b82f6;
--time-separator: #6b7280;
--time-disabled-text: #9ca3af;
--time-hover: #f3f4f6;
--time-focus: #e5e7eb;
--time-icon: #4b5563;
--time-popover-bg: #ffffff;
--time-popover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--time-active: #e5edff;
--time-disabled-bg: #f9fafb;
--time-scrollbar-hover-bg: rgba(0, 0, 0, 0.05);
--time-scrollbar-thumb: rgba(0, 0, 0, 0.2);
--time-scrollbar-thumb-hover: rgba(0, 0, 0, 0.3);
--time-scrollbar-bg: transparent;
/* Variables */
--scrollbar-size: 5px;
}
/* Dark theme */
[data-theme="dark"] {
--time-text: #e5e7eb;
--time-bg: #1f2937;
--time-border: #4b5563;
--time-focus-border: #60a5fa;
--time-separator: #9ca3af;
--time-disabled-text: #6b7280;
--time-hover: #374151;
--time-focus: #4b5563;
--time-icon: #9ca3af;
--time-popover-bg: #111827;
--time-popover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.25);
--time-active: #2563eb;
--time-disabled-bg: #111827;
--time-scrollbar-hover-bg: rgba(255, 255, 255, 0.1);
--time-scrollbar-thumb: rgba(255, 255, 255, 0.2);
--time-scrollbar-thumb-hover: rgba(255, 255, 255, 0.3);
--time-scrollbar-bg: transparent;
}