The useTheme() hook returns all metadata on the current theme including syntax highlighting, description, HSL, token values, and more.
useTheme()
import { useTheme } from '@replit/extensions-react'; const Component = () => { const theme = useTheme(); ... }
function useThemeValues(): ThemeVersion | null;
Was this page helpful?