| 1 | import { useColorScheme } from "react-native"; |
| 2 | |
| 3 | import { dark, light, type Palette } from "./tokens"; |
| 4 | |
| 5 | export { fonts, radius, space, type Palette } from "./tokens"; |
| 6 | |
| 7 | /** The palette for the phone's light or dark setting; dark when it has none. */ |
| 8 | export function useColors(): Palette { |
| 9 | return useColorScheme() === "light" ? light : dark; |
| 10 | } |