The useThemeValues() hook provides you with the global token color values of the current user’s theme.
useThemeValues()
import { useThemeValues } from '@replit/extensions-react'; const Component = () => { const themeValues = useThemeValues(); ... }
function useThemeValues(): ThemeValuesGlobal | null;
Was this page helpful?