UNPKG

@aws-amplify/ui

Version:

`@aws-amplify/ui` contains low-level logic & styles for stand-alone usage or re-use in framework-specific implementations.

11 lines (10 loc) 554 B
import type { Theme, DefaultTheme, WebTheme } from '../types'; import type { WebTokens } from '../tokens'; /** * This will be used like `const myTheme = createTheme({})` * `myTheme` can then be passed to a Provider or the generated CSS * can be passed to a stylesheet at build-time or run-time. * const myTheme = createTheme({}) * const myOtherTheme = createTheme({}, myTheme); */ export declare function createTheme<TokensType extends WebTokens = WebTokens>(theme?: Theme<TokensType> | WebTheme, DefaultTheme?: DefaultTheme | WebTheme): WebTheme;