Wocart

@wocart/theme v4.1.0


@wocart/theme / astro / themeStylesEndpoint

Function: themeStylesEndpoint()

themeStylesEndpoint(theme): () => Response

The stylesheet of the theme's style classes as a prerendered endpoint, the file <ThemeStyles> links (THEME_STYLES_PATH):

TypeScriptCode
// src/pages/wocart-styles.css.ts import { themeStylesEndpoint } from "@wocart/theme/astro"; import { theme } from "../theme/theme"; export const prerender = true; export const GET = themeStylesEndpoint(theme);

Parameters

theme

ThemeDefinition

Returns

() => Response