UNPKG

@wordpress/global-styles-ui

Version:
19 lines (16 loc) • 587 B
import { createContext } from '@wordpress/element'; import type { GlobalStylesConfig } from '@wordpress/global-styles-engine'; export interface GlobalStylesContextType { user: GlobalStylesConfig; base: GlobalStylesConfig; merged: GlobalStylesConfig; onChange: ( newValue: GlobalStylesConfig ) => void; fontLibraryEnabled?: boolean; } export const GlobalStylesContext = createContext< GlobalStylesContextType >( { user: { styles: {}, settings: {} }, base: { styles: {}, settings: {} }, merged: { styles: {}, settings: {} }, onChange: () => {}, fontLibraryEnabled: false, } );