@guruhotel/aura-ui
Version:
⚛️ React UI library by GuruHotel
1 lines • 757 B
JavaScript
import{createStitches as e}from"@stitches/react";import t from"./common";import o from"./light-theme";import s from"./dark-theme";import r from"./functions/deep-merge";export const getStitchesTheme=e=>r(e,t.theme);const m=e({...t,theme:{...t.theme,shadows:{...t.theme.shadows,...o.shadows},colors:{...t.theme.colors,...o.colors}}});export const createThemeBase=m.createTheme;export const styled=m.styled;export const css=m.css;export const globalCss=m.globalCss;export const keyframes=m.keyframes;export const getCssText=m.getCssText;export const theme=m.theme;export const config=m.config;export const createTheme=({type:e,theme:t,className:m})=>{if(!e)throw new Error("Theme type is required");return createThemeBase(m||`${e}-theme`,r("dark"===e?s:o,t))};