[**@wocart/theme v4.1.0**](../../README)

***

[@wocart/theme](../../README) / [astro](../README) / 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`):

```ts
// 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`](../../index/interfaces/ThemeDefinition)

## Returns

() => `Response`
