For the complete documentation index, see llms.txt. This page is also available as Markdown.

Settings Variables

These variables are available on all custom twig blocks and can be used to customise your twig templates with colours and images from your settings that will update as you change within the settings.

Usage

{{ settings.site_name }}
{{ settings.primary_color }}
<a href="{{ settings.facebook_url }}">Facebook</a>

Available Settings

Colors

Variable
Example

settings.primary_color

#4F45E4

settings.background

#111827

settings.button_text_color

#ffffff

Logos

Variable
Description

settings.logo_url

Main site logo

settings.email_logo_url

Email logo

settings.favicon_url

Site favicon

settings.wallet_icon_url

Wallet icon

Branding

Variable
Example

settings.site_name

"My Raffle Site"

settings.footer_text

"© 2026 My Site"

settings.currency_icon

"£" or "€"

Social URLs

Variable

settings.facebook_url

settings.twitter_url

settings.instagram_url

settings.tiktok_url

settings.youtube_url

Review Scores

Variable

settings.trustpilot_score

settings.trustpilot_url

settings.facebook_review_score

Example: Dynamic Styling

Use settings to apply theme colors to your custom blocks:

These settings variables are available inside the Custom Twig Block, the Custom Twig Product Grid, and the Custom Twig Slider.


AI Context

For AI Assistants: This documents the RaffleX global settings variable available in all Twig templates.

Availability: Automatically available in all Twig templates. No setup required.

Settings keys (18 total):

  • Colors: primary_color, background, button_text_color

  • Logos: logo_url, email_logo_url, favicon_url, wallet_icon_url

  • Branding: site_name, footer_text, currency_icon

  • Social: facebook_url, twitter_url, instagram_url, tiktok_url, youtube_url

  • Reviews: trustpilot_score, trustpilot_url, facebook_review_score

Usage: Access via {{ settings.key_name }}. Use conditionals for optional values: {% if settings.facebook_url %}...{% endif %}

Last updated