Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions features/theme-variants.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ In your code you'll be able to load different styles based on the value of `kcCo
Tutorial video
{% endembed %}

## Viewing your variants

1. Assign the variant as the login theme to the realm.
2. Create separate clients and assign each variant to a different client.
3. Apply the theme name in the `kcContext` of the storybook story: `<KcPageStory kcContext={{ themeName: "chocolate" }}...`

## Different text for each of your theme variants

Keycloakify lets you provide custom tranlations on a per-theme variant basis.
Expand Down Expand Up @@ -98,6 +104,10 @@ export { useI18n, type I18n };

<figure><img src="../.gitbook/assets/image (33).png" alt=""><figcaption><p>"my-theme-2" view</p></figcaption></figure>

## In Emails

Access the value in your email theme with `${xKeycloakify.themeName}`.

## In Native Themes

For native Email Theme [this video timestamp](https://www.youtube.com/watch?v=IZ9LSLfWxqo\&t=684s).\
Expand Down