feat: add Tooltip component and related hooks for improved UI interactions

- Implemented Tooltip component using Radix UI for better accessibility and customization.
- Created TooltipProvider, TooltipTrigger, and TooltipContent for modular usage.
- Added useIsMobile hook to detect mobile devices based on screen width.
- Updated themes with new color variables for better design consistency across the application.
This commit is contained in:
2025-07-03 15:34:53 +00:00
committed by GitHub
parent f25b4dcac1
commit 7b622cb1ec
44 changed files with 6021 additions and 472 deletions

View File

@@ -1,6 +1,10 @@
// Theme color utilities for dynamic viewport theme color
export const themeColors = {
default: {
background: 'hsl(0, 0%, 100%)', // White background for light mode
hex: '#ffffff' // Hex equivalent for theme-color
},
blue: {
background: 'hsl(240, 10%, 3.9%)', // Dark blue background
hex: '#09090b' // Hex equivalent for theme-color
@@ -34,7 +38,7 @@ export const themeColors = {
export type Theme = keyof typeof themeColors;
export function getThemeBackgroundColor(theme: Theme): string {
return themeColors[theme].hex;
return themeColors[theme]?.hex || themeColors.default.hex;
}
export function hslToHex(h: number, s: number, l: number): string {