Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| The phone app: Chat in full with phone notifications, plus Code and Customize (#4) | 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 | } |
This file's history is long; its oldest lines are credited to the oldest commit read.