Hook to access the theme from a component.
The theme.
function App() { // Style a paragraph with the secondary text color const { theme } = useTheme(); return <p style={{ color: theme["colors-fg-muted"] }}>Secondary text</p>;} Copy
function App() { // Style a paragraph with the secondary text color const { theme } = useTheme(); return <p style={{ color: theme["colors-fg-muted"] }}>Secondary text</p>;}
Hook to access the theme from a component.