- Replace mobile placeholder with Expo Router app (tabs, playback, auth, library) - Move Convex backend to @otunes/convex for web and mobile reuse - Update web app imports and API routes to use shared package
54 lines
1.0 KiB
TypeScript
54 lines
1.0 KiB
TypeScript
import { useColorScheme } from "react-native"
|
|
|
|
export const colors = {
|
|
light: {
|
|
background: "#ffffff",
|
|
foreground: "#0a0a0a",
|
|
card: "#ffffff",
|
|
muted: "#f4f4f5",
|
|
mutedForeground: "#71717a",
|
|
border: "#e4e4e7",
|
|
primary: "#18181b",
|
|
primaryForeground: "#fafafa",
|
|
destructive: "#dc2626",
|
|
accent: "#f4f4f5",
|
|
},
|
|
dark: {
|
|
background: "#0a0a0a",
|
|
foreground: "#fafafa",
|
|
card: "#171717",
|
|
muted: "#262626",
|
|
mutedForeground: "#a1a1aa",
|
|
border: "#27272a",
|
|
primary: "#fafafa",
|
|
primaryForeground: "#18181b",
|
|
destructive: "#ef4444",
|
|
accent: "#262626",
|
|
},
|
|
} as const
|
|
|
|
export type ThemeColors = (typeof colors)[keyof typeof colors]
|
|
|
|
export function useThemeColors(): ThemeColors {
|
|
const scheme = useColorScheme()
|
|
return scheme === "dark" ? colors.dark : colors.light
|
|
}
|
|
|
|
export const spacing = {
|
|
xs: 4,
|
|
sm: 8,
|
|
md: 12,
|
|
lg: 16,
|
|
xl: 24,
|
|
xxl: 32,
|
|
} as const
|
|
|
|
export const radius = {
|
|
sm: 6,
|
|
md: 10,
|
|
lg: 14,
|
|
full: 9999,
|
|
} as const
|
|
|
|
export const playerBarHeight = 88
|