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.
| Page | What it covers |
|---|---|
| Getting Started | What a theme can and cannot do, what you need, the shape of the work |
| Anatomy of a Theme | The source tree, the built archive and the manifest |
| Templates and View Ids | Whole-screen templates, the view-id hierarchy and fallback |
| Member and Auth Controllers | The host-owned view models and commands behind the auth, cashier, account, lobby, tournament, history, notifications, leaderboard, affiliate and agent templates |
| Parts and Part Areas | Filling the header, footer, navigation, logo and other host-named slots |
| Sections and Sidebars | Operator-composable blocks, page templates and widget areas |
| Tokens and Styling | The CSS custom properties a theme sets, the Tailwind bridge, layers and scoping |
| Table Layouts and the Gameplay Boundary | What a table layout may draw and what it may never touch |
| Win Odds | table.odds: the viewer’s chance to win, the operator switch and the win-odds node |
| Using Plugin Data in a Theme | usePluginQuery, usePluginAction, usePluginEvent, usePluginAvailable, and theme screens for plugin pages (member.plugin.*) |
| Settings and Customise | Theme settings, the schema-driven form and operator overrides |
| Strings and Merge Tags | Theme phrases, translation and {{ }} tags in editable text |
| Validation and Scanner Rules | Every rule an archive must pass before it installs |
| Building and Packaging | The theme CLI: build, pack, validate, dev, fonts, lint-rtl |
| Testing and Certification | Testing your theme, what certification checks, the certification record and admin approval, the sample themes |
| Installing and Updating | Upload, preview, activation, rollback and the runtime folders |
| Theme Contract | The contract as code: ids, manifest, table view models, DOM contract, tokens, tags, SDK surface, validator, export |
Tutorial: Build sample-parts | A 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.
| Limit | What it means for a theme | Page |
|---|---|---|
Per-table theme inheritance (a table style’s themeSlug) is not supported | Every table takes its layout and table tokens from the active theme; the field is no longer in the admin editor | Table 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.
| Term | Meaning | WordPress word |
|---|---|---|
| Theme | One installable archive: manifest, tokens, CSS, fonts, assets, settings, strings, built JavaScript | Theme |
| Child theme | A theme that extends a parent and overrides part of it. Two levels only. | Child theme |
default | The built-in theme: today’s UI and the fallback for everything a theme does not provide | Default theme |
| Template | A React component for one view id, that is, a whole screen | Template |
| View id | The host-owned name of a screen, with fallback from most specific to least | Template hierarchy |
| Part | A React component that fills a host-named slot such as the header or the logo | Template part |
| Part area | The host-named slot a part fills. Code, ids and these docs always say "part" and "part area". | Template part area |
| Section | An operator-composable block with a settings schema | Block or pattern |
| Sidebar | A part area filled with a list of sections | Widget area |
| Layout | A theme component that draws a table; standard is the layout inside default | — |
| Skin | A table style row: a per-table choice of layout plus token overrides | — |
| Token | A CSS custom property a theme sets (--th-* for the app, --tbl-* for tables) | Global style |
| Contract | The host-owned definition of ids, types, schemas, DOM attributes, validator and scanner | — |
| SDK | The hooks and components theme code may import, under the alias @pe/sdk | Template tags |
| Merge tag | {{viewer.firstName}} and friends in editable text | Merge tag or shortcode |
| Customise | The Appearance screen that edits theme settings, tokens and sidebars | Customizer or Site Editor |
| Override | An operator’s saved customisation; it survives theme updates | Theme 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.