UNPKG

gatsby-plugin-theme-ui

Version:

Gatsby plugin for adding Theme UI context

17 lines (13 loc) 319 B
import { useStaticQuery, graphql } from 'gatsby' const useThemeUiConfig = () => { const data = useStaticQuery(graphql` query { themeUiConfig(id: { eq: "gatsby-plugin-theme-ui-config" }) { preset prismPreset } } `) return data.themeUiConfig } export default useThemeUiConfig