UNPKG

@sjsf/shadcn-theme

Version:

The shadcn-svelte based theme for svelte-jsonschema-form

9 lines (8 loc) 246 B
import { getContext, setContext } from 'svelte'; import { THEME_CONTEXT } from './internal'; export function getThemeContext() { return getContext(THEME_CONTEXT); } export function setThemeContext(ctx) { setContext(THEME_CONTEXT, ctx); }