Overview

The guide is for building your own theme or child theme. The theme tools it uses (the theme CLI and the sample themes) are available to customers from My Account on onlinepokerscript.com. The limits that remain are listed below and marked not yet supported on the page that covers them.

A theme changes how the player-facing product looks and, within limits, how its screens are laid out. Themes are installed as archives through the admin panel; they never change the rules of the game. The built-in theme, default, is today’s design and is the default on every install. Every other theme extends or replaces parts of it.

This guide set is for developers who build themes. Operators who install and customise themes should read the Appearance admin guide.

Pages

Read them in order the first time.

PageWhat it covers
Getting StartedWhat a theme can and cannot do, what you need, the shape of the work
Anatomy of a ThemeThe source tree, the built archive and the manifest
Templates and View IdsWhole-screen templates, the view-id hierarchy and fallback
Member and Auth ControllersThe host-owned view models and commands behind the auth, cashier, account, lobby, tournament, history, notifications, leaderboard, affiliate and agent templates
Parts and Part AreasFilling the header, footer, navigation, logo and other host-named slots
Sections and SidebarsOperator-composable blocks, page templates and widget areas
Tokens and StylingThe CSS custom properties a theme sets, the Tailwind bridge, layers and scoping
Table Layouts and the Gameplay BoundaryWhat a table layout may draw and what it may never touch
Win Oddstable.odds: the viewer’s chance to win, the operator switch and the win-odds node
Using Plugin Data in a ThemeusePluginQuery, usePluginAction, usePluginEvent, usePluginAvailable, and theme screens for plugin pages (member.plugin.*)
Settings and CustomiseTheme settings, the schema-driven form and operator overrides
Strings and Merge TagsTheme phrases, translation and {{ }} tags in editable text
Validation and Scanner RulesEvery rule an archive must pass before it installs
Building and PackagingThe theme CLI: build, pack, validate, dev, fonts, lint-rtl
Testing and CertificationTesting your theme, what certification checks, the certification record and admin approval, the sample themes
Installing and UpdatingUpload, preview, activation, rollback and the runtime folders
Theme ContractThe contract as code: ids, manifest, table view models, DOM contract, tokens, tags, SDK surface, validator, export
Tutorial: Build sample-partsA child theme of default built step by step

Not yet supported

These limits are known and recorded; a follow-up change lifts them and these pages will change with it.

LimitWhat it means for a themePage
Per-table theme inheritance (a table style’s themeSlug) is not supportedEvery table takes its layout and table tokens from the active theme; the field is no longer in the admin editorTable Layouts

Vocabulary

These words are used the same way on every page, in the code and in the admin panel. Where WordPress has a word for the same idea it is listed, because the design borrows its shape from WordPress block themes.

TermMeaningWordPress word
ThemeOne installable archive: manifest, tokens, CSS, fonts, assets, settings, strings, built JavaScriptTheme
Child themeA theme that extends a parent and overrides part of it. Two levels only.Child theme
defaultThe built-in theme: today’s UI and the fallback for everything a theme does not provideDefault theme
TemplateA React component for one view id, that is, a whole screenTemplate
View idThe host-owned name of a screen, with fallback from most specific to leastTemplate hierarchy
PartA React component that fills a host-named slot such as the header or the logoTemplate part
Part areaThe host-named slot a part fills. Code, ids and these docs always say "part" and "part area".Template part area
SectionAn operator-composable block with a settings schemaBlock or pattern
SidebarA part area filled with a list of sectionsWidget area
LayoutA theme component that draws a table; standard is the layout inside default—
SkinA table style row: a per-table choice of layout plus token overrides—
TokenA CSS custom property a theme sets (--th-* for the app, --tbl-* for tables)Global style
ContractThe host-owned definition of ids, types, schemas, DOM attributes, validator and scanner—
SDKThe hooks and components theme code may import, under the alias @pe/sdkTemplate tags
Merge tag{{viewer.firstName}} and friends in editable textMerge tag or shortcode
CustomiseThe Appearance screen that edits theme settings, tokens and sidebarsCustomizer or Site Editor
OverrideAn operator’s saved customisation; it survives theme updatesTheme mod

What this guide set does not cover

  • Plugins. A plugin can extend the server and the client in ways a theme cannot; see the Plugin Development guides. A theme can read a plugin’s own routes and events and draw its screens; see Using Plugin Data in a Theme.
  • The table rules, timers and action logic. They are product code and no theme can change them; the gameplay boundary page explains the line.
  • Blog, redirects, sitemap and SEO head injection. They are designed alongside the theme system but are separate, later work.
Try the live demo Pricing

Have questions about Poker Engine? We reply fast.