@snowball-tech/fractal
Version:
Fractal's (Snowball's design system) React component library based on RadixUI and TailwindCSS
2 lines • 454 B
JavaScript
"use client";import{DEFAULT_THEME as e}from"../constants.js";import{ThemeContext as t}from"../ThemeProvider.js";import{useContext as n}from"react";import r from"lodash/fp/isEmpty.js";function i(i,{fail:a=!1,log:o=!1}={}){if(!r(i))return i;try{return n(t).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{i as default};
//# sourceMappingURL=useTheme.js.map