UNPKG

next-yak

Version:

next-yak is a CSS-in-JS solution tailored for Next.js that seamlessly combines the expressive power of styled-components syntax with efficient build-time extraction of CSS using Next.js's built-in CSS configuration

22 lines (19 loc) 581 B
import React, { ReactNode } from 'react'; interface YakTheme { } /** * Returns the current yak theme context * * @see https://github.com/jantimon/next-yak/blob/main/packages/next-yak/runtime/context/README.md */ declare const useTheme: () => YakTheme; /** * Yak theme context provider * * @see https://github.com/jantimon/next-yak/blob/main/packages/next-yak/runtime/context/README.md */ declare const YakThemeProvider: ({ children, theme, }: { children: ReactNode; theme?: YakTheme; }) => React.JSX.Element; export { type YakTheme, YakThemeProvider, useTheme };