Mixins / foldkit-mixins/app

make

function · packages/mixins/src/app.ts:91

function make<
  Name extends string,
  Own extends ThemeTokens = Record<never, never>,
>(options: AppStyleThemesOptions<Name, Own>): AppStyle<Own>
function make<Own extends ThemeTokens = Record<never, never>>(
  options: AppStyleOptions<Own>,
): AppStyle<Own>

The application's tokens, layer and page stylesheet: const { t, slots, stylesheet } = AppStyle.make({ theme: Theme.make({ … }) }), or AppStyle.make({}) on the shipped theme. Slot styles are no longer in the stylesheet: a Slot injects its classes' CSS when it first draws them.