# Prompt: match your brand

Source: https://help.ruuster.com/idx/prompt-brand

> Match the listing pages to your brand through the --rw-* variables, without restyling the recipe components.

This prompt sets your brand on the recipe components through their variables, as [Match your brand](https://help.ruuster.com/idx/theming) describes.

## The prompt

```text
Read RUUSTER_IDX.md first and follow its MUST and NEVER rules. Ask me if it doesn't cover something.

Match the listing pages to my brand without restyling the recipe components, following <https://help.ruuster.com/idx/theming>. Read my brand variables from GET /v1/meta themeVars and pass them to RecipesStyles in my layout. Where my site's colors or fonts differ, override only the --rw-* variables in my own stylesheet. Do not change the components' markup or class names, and keep text contrast at WCAG 2.2 AA.

Use this environment variable: IDX_SECRET_KEY (server only). Never paste a secret key into a chat. No key goes in any page: my pages call my own /api/idx route, made with createListingsRoute from @ruuster/idx/route, which adds my secret key on the server (on a site with no server, the widgets call the API with no key from my approved website address).

Fair housing: describe homes, places and amenities only. Never describe the people who live in an area or who a home or area suits, and never rank schools as a reason to buy.

When you are done, list the --rw-* variables you changed with their old and new values.
```

## What it builds

- `RecipesStyles` in your layout with your `themeVars` from `GET /v1/meta`
- overrides of the `--rw-*` variables in your own stylesheet, and nothing else

## How to check it

1. Compare a results page and a listing page with your site's colors and fonts.
2. Check the text contrast with your browser's accessibility tools: it meets WCAG 2.2 AA.

## Before you paste it

Follow the setup on [Build it with your AI coding assistant](https://help.ruuster.com/idx/build-with-ai) once: `RUUSTER_IDX.md` at the root of your project, the two lines in `CLAUDE.md` or `AGENTS.md`, and your keys in `.env.local`. Never paste a secret key into a chat. Replace the text in square brackets with your own before you send the prompt.
