useThemeValues()
Hook
The useThemeValues()
hook provides you with the global token color values of the current user's theme.
Usage
import { useThemeValues } from '@replit/extensions-react';
const Component = () => {
const themeValues = useThemeValues();
...
}
Signature
function useThemeValues(): ThemeValuesGlobal | null;
Types
ThemeValuesGlobal
Replit's global theme token values for UI, excluding syntax highlighting.