The useTheme hook returns the currently active theme config object.
useTheme
import { useTheme } from "@artsy/palette" const App = (props) => { const { theme } = useTheme() return <Box>The current theme version is {theme.id}</Box> } Copy
import { useTheme } from "@artsy/palette" const App = (props) => { const { theme } = useTheme() return <Box>The current theme version is {theme.id}</Box> }