UNPKG

@snowball-tech/fractal

Version:

Fractal's (Snowball's design system) React component library based on RadixUI and TailwindCSS

2 lines 455 B
import{r as e}from"./constants-CW2-utNH.js";import{createContext as t,useContext as n}from"react";import r from"lodash/fp/isEmpty.js";import"react/jsx-runtime";const i=t({theme:e});function a(t,{fail:a=!1,log:o=!1}={}){if(!r(t))return t;try{return n(i).theme}catch(e){if(o&&console.warn(`[FRACTAL][THEME] Unable to load the global theme as no ThemeProvider has been found!`),a)throw e}return e}export{a as t}; //# sourceMappingURL=useTheme-TjNOC1gT.js.map