sample-parts is a child theme of default that replaces the header, the footer and the logo, and gives the operator one setting, Tagline, shown in the header. You will start from the Poker Engine source, write the theme in a folder of your own, build, validate and pack it with the theme CLI, install it through Site & Content › Themes, activate it, and change the tagline while a player’s page is open. Then you will roll it back, deactivate it and delete it.
The finished source is the sample-parts sample in the theme tools from My Account on onlinepokerscript.com. The files you write here are identical to it, and step 3 checks that.
Every step ends with a Checkpoint: what you should see before you go on. If a checkpoint fails, stop and compare with the step; do not carry on.
What you will build
| File | What it is |
|---|---|
theme.json | The manifest: extends: "default", the three part areas it fills, the Tagline setting |
src/theme.tsx | The entry: one defineTheme({...}) call |
src/parts/header.tsx, footer.tsx, logo.tsx | The parts for site.header, site.footer and brand.logo |
src/styles/theme.css | The theme’s stylesheet, scoped to the markup the parts render |
strings/en.json | Three translatable phrases under theme.sample-parts.* |
assets/logo.svg, screenshot.png, README.md, LICENSE | Package files the manifest and the archive carry |
Views, sections and the table are not registered, so they stay default.
Before you start
- macOS or Linux with a shell (the commands use
bash/zshsyntax). - Node.js 22.15 or later and npm 10 (
node -v,npm -v). - The Poker Engine source and the theme tools from My Account.
- Docker for a throwaway database. Step 0 starts its own PostgreSQL 16 container; any other PostgreSQL 16 works if you change
DATABASE_URLin step 0 to match, as long as it is a database you can afford to wipe. - An authenticator app (any TOTP app), only if your install requires two-factor authentication for admins. The development seed does not.
- Ports
3000(API),5173(client),5180(theme dev) and55432(the tutorial’s database) free. If another copy of the product already holds3000or5173, leave it running and use other ports: see Running on other ports at the end of step 0.
No licence key is needed. Without one the server logs LICENSE_KEY and LICENSE_DOMAIN must be configured and the lobby shows a "temporarily unavailable" notice; the header, the footer and Appearance work regardless.
0. Get the product running locally
In the root of the Poker Engine source, install the dependencies:
npm ci
Every command from here to the end of the tutorial runs from this folder, the root of the source, unless the step says otherwise. Open each new terminal there.
Start a database of its own for the tutorial:
Warning: do not use
docker compose up -d postgresfor this tutorial. The development Compose file names its containerpoker-engine-dband its volumepostgres_data, and Compose prefixes the volume with the folder name. A copy of the source in a folder calledpoker-enginetherefore reuses the database of any other checkout on the same machine, andmigrate deployanddb:seedbelow would write into it. The command below starts a separate, named, throwaway container on its own port instead.
docker run -d --name pe-tutorial-db \
-e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=tutorial -e POSTGRES_DB=pe_tutorial \
-p 55432:5432 -v pe-tutorial-db-data:/var/lib/postgresql/data \
postgres:16-alpine
until docker exec pe-tutorial-db pg_isready -h 127.0.0.1 -U postgres >/dev/null 2>&1; do sleep 1; done
docker ps --filter name=pe-tutorial-db --format '{{.Names}} {{.Ports}}'
The last line prints pe-tutorial-db 0.0.0.0:55432->5432/tcp, [::]:55432->5432/tcp (without the [::] part where Docker has IPv6 off). Nothing else on the machine uses that container or its volume pe-tutorial-db-data. If docker run says the name pe-tutorial-db is already in use, it is left over from an earlier run of this tutorial; remove it with the clean-up commands at the end of step 8 and start again.
Create .env from the example and fill in the values the server refuses to start without. This writes a database URL that matches the tutorial’s container, fresh random secrets, and an updater folder inside the source folder:
cp .env.example .env
node -e '
const fs = require("fs"), crypto = require("crypto"), path = require("path");
let env = fs.readFileSync(".env", "utf8");
const set = (key, value) => {
const line = new RegExp("^#? *" + key + "=.*$", "m");
env = line.test(env) ? env.replace(line, key + "=" + value) : env + "\n" + key + "=" + value + "\n";
};
set("DATABASE_URL", "\"postgresql://postgres:tutorial@localhost:55432/pe_tutorial?schema=public\"");
for (const key of ["JWT_ACCESS_SECRET", "JWT_REFRESH_SECRET", "JWT_2FA_TEMP_SECRET"]) set(key, crypto.randomBytes(64).toString("hex"));
set("CSRF_SECRET", crypto.randomBytes(32).toString("hex"));
set("ENCRYPTION_KEY", crypto.randomBytes(32).toString("hex"));
set("POKER_ENGINE_UPDATER_DIR", path.resolve("tmp/updater"));
fs.writeFileSync(".env", env);
console.log("wrote .env");
'
POKER_ENGINE_UPDATER_DIR matters on a development machine: without it the update manager tries to create /app/updater, and npm run dev stops with ENOENT: no such file or directory, mkdir '/app/updater'. The folder is tmp/updater inside the source folder, so two installs on one machine never share it.
Apply the migrations and seed the development data into the tutorial’s database:
npx prisma generate
npx prisma migrate deploy
npm run db:seed
The seed ends with:
✅ Seeding complete!
Default credentials:
Admin: admin / admin123
Players: player1-5 / player123
Start the API and the client, each in its own terminal, from the root of the source:
npm run dev # terminal 1: the API on http://localhost:3000
npm run dev:client # terminal 2: the client on http://localhost:5173
Checkpoint. In a third terminal:
curl -s http://localhost:3000/health
curl -s http://localhost:5173/api/v1/config/theme
The first prints {"status":"ok",...}. The second prints the active theme through the client’s proxy; it starts with {"success":true,"data":{"slug":"default", and contains "appearance":{"enabled":false,. default is active and nothing is shown to players yet. Open http://localhost:5173/ in a browser: you see today’s design.
Running on other ports
If another copy of the product already holds 3000 or 5173, run this one on other ports instead of stopping it. The API reads PORT from .env; the client’s development proxy reads VITE_API_PROXY_TARGET (default http://localhost:3000) and takes the client port as a Vite flag. The browser calls the API through the client’s proxy, so the API must also accept the client’s origin in CORS_ORIGINS. For example, with the API on 3100 and the client on 5174, set in .env:
PORT=3100
CORS_ORIGINS=http://localhost:3100,http://localhost:5174
and start the two terminals with:
npm run dev # terminal 1: the API on http://localhost:3100
VITE_API_PROXY_TARGET=http://localhost:3100 npm run dev --prefix client -- --port 5174 --strictPort # terminal 2: the client on http://localhost:5174
--strictPort makes Vite stop with an error rather than move to the next free port. For the rest of the tutorial, read 3100 wherever it says 3000 and 5174 wherever it says 5173; step 5 shows the matching theme dev flags.
1. Create the theme folder
A theme is a folder with theme.json at its root and the sources in src/. It does not have to be inside the Poker Engine source; this tutorial keeps it outside so the source stays clean. Every later command reads the folder from $THEME, and the finished sample from $SAMPLE, so set both in each terminal you use. Run these from the root of the source, like everything else:
export THEME=~/pe-themes/sample-parts
export SAMPLE=/path/to/sample-parts # the sample-parts sample from the theme tools
mkdir -p "$THEME/src/parts" "$THEME/src/styles" "$THEME/strings" "$THEME/assets"
Checkpoint. ls "$THEME" lists assets src strings.
2. Write the manifest and the package files
The manifest says who the theme is, which contract version it was built for, what it extends and what it registers. parts lists the three part areas the theme fills; settings declares the one field operators edit in Customise.
cat > "$THEME/theme.json" <<'EOF'
{
"slug": "sample-parts",
"name": "Sample Parts",
"version": "0.1.0",
"description": "Sample child theme of the default theme: replaces the header, footer and logo parts. Used by the end-to-end suite and the authoring tutorial; never bundled.",
"author": "Poker Engine",
"license": "UNLICENSED",
"engines": { "contract": "^0.1.0" },
"extends": "default",
"surfaces": ["site", "member"],
"colorSchemes": ["dark"],
"entry": "dist/theme.js",
"styles": "dist/theme.css",
"screenshot": "screenshot.png",
"parts": { "site.header": {}, "site.footer": {}, "brand.logo": {} },
"settings": [
{
"id": "header",
"label": "Header",
"fields": [{ "id": "tagline", "type": "text", "label": "Tagline", "default": "Cards on the table" }]
}
],
"assets": { "logo": "assets/logo.svg" },
"strings": ["en"]
}
EOF
What the fields do:
slugis the theme’s id, its folder name on the server and the prefix of its archive. Its strings live undertheme.sample-parts.*.engines.contractis the contract range the theme was built against. The running product implements contract0.1.0; a theme whose range does not include it is not loaded anddefaultstays.extends: "default"makes this a child theme: anything it does not register comes fromdefault.entryandstylesname the filesbuildwrites. The entry imports a stylesheet, sostylesmust be declared.strings: ["en"]meansstrings/en.jsonexists.
The strings, the logo asset, the README, the licence and the screenshot. The last command copies the screenshot from the sample ($SAMPLE, set in step 1):
cat > "$THEME/strings/en.json" <<'EOF'
{
"theme.sample-parts.nav.home": "Home",
"theme.sample-parts.nav.lobby": "Lobby",
"theme.sample-parts.footer.note": "Sample Parts theme"
}
EOF
cat > "$THEME/assets/logo.svg" <<'EOF'
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32"><rect width="32" height="32" rx="6" fill="#0f172a"/><path d="M16 6l7 10-7 10-7-10z" fill="#f59e0b"/></svg>
EOF
cat > "$THEME/README.md" <<'EOF'
# Sample Parts
A child theme of `default` that replaces three parts: `site.header`, `site.footer` and `brand.logo`. The header places the logo part through `<Part id="brand.logo" />`, links home and to the lobby, and shows the operator's **Tagline** setting (Admin › Appearance › Customise), which updates on open pages without a reload. Views, sections and the table stay `default`.
The authoring tutorial (`docs/guides/developer/theme-development/tutorial-sample-parts.md`) builds this theme from a clean checkout. Not a product theme; never bundled.
EOF
cat > "$THEME/LICENSE" <<'EOF'
UNLICENSED
Sample child theme of the default theme for the Poker Engine end-to-end suite and tutorial. Not a product theme; never bundled.
EOF
cp "$SAMPLE/screenshot.png" "$THEME/screenshot.png"
The screenshot is the one binary file; it is copied from the sample because the manifest names it and the validator checks that every file the manifest names exists.
Checkpoint. ls "$THEME" lists LICENSE README.md assets screenshot.png src strings theme.json.
3. Write the entry, the three parts and the stylesheet
The entry registers one component per part area. A child theme overrides its parent’s part by registering the same id; here the parent is default, whose fills are the product’s own header, footer and logo.
cat > "$THEME/src/theme.tsx" <<'EOF'
/**
* sample-parts: fills three host part areas. A child theme overrides a parent's part by
* registering the same id; anything not registered here (views, sections, the table) stays
* `default`.
*/
import { defineTheme } from '@pe/sdk';
import { Header } from './parts/header';
import { Footer } from './parts/footer';
import { Logo } from './parts/logo';
import './styles/theme.css';
defineTheme({
slug: 'sample-parts',
parts: {
'site.header': Header,
'site.footer': Footer,
'brand.logo': Logo,
},
});
EOF
The header reads three things through the SDK, the only data path a theme has: the viewer (useViewer), the operator’s settings (useThemeSettings) and the translator (useT). It does not draw the logo itself; <Part id="brand.logo" /> places whatever fills the brand.logo part area, which is this theme’s own logo part. Link is the SDK’s router link; a theme never imports the router.
cat > "$THEME/src/parts/header.tsx" <<'EOF'
import { Link, Part, useT, useThemeSettings, useViewer } from '@pe/sdk';
/** `site.header`: the logo part, two links, the viewer's name and the operator's tagline. */
export function Header() {
const t = useT();
const viewer = useViewer();
const settings = useThemeSettings();
const tagline = typeof settings.tagline === 'string' ? settings.tagline : '';
return (
<header data-theme="sample-parts" data-sample-part="site.header" data-testid="sample-parts-header" data-tagline={tagline} className="sp-header">
<Part id="brand.logo" />
<nav aria-label={t('theme.sample-parts.nav.home', 'Home')} className="sp-header__nav">
<Link to="/">{t('theme.sample-parts.nav.home', 'Home')}</Link>
<Link to="/lobby">{t('theme.sample-parts.nav.lobby', 'Lobby')}</Link>
</nav>
<p className="sp-header__tagline">{tagline}</p>
<span className="sp-header__viewer">{viewer.isLoggedIn ? viewer.username : ''}</span>
</header>
);
}
EOF
cat > "$THEME/src/parts/footer.tsx" <<'EOF'
import { useBrand, useT } from '@pe/sdk';
/** `site.footer`: one line with the site title. */
export function Footer() {
const t = useT();
const brand = useBrand();
return (
<footer data-theme="sample-parts" data-sample-part="site.footer" data-testid="sample-parts-footer" className="sp-footer">
<span>{brand.name}</span>
<span className="sp-footer__note">{t('theme.sample-parts.footer.note', 'Sample Parts theme')}</span>
</footer>
);
}
EOF
cat > "$THEME/src/parts/logo.tsx" <<'EOF'
import { Link, useBrand } from '@pe/sdk';
/** `brand.logo`: the operator's logo from Appearance › Branding, or an inline diamond mark, and the site title, linking home. */
export function Logo() {
const brand = useBrand();
return (
<Link to="/" className="sp-logo" aria-label={brand.name}>
<span data-theme="sample-parts" data-sample-part="brand.logo" className="sp-logo__inner">
{brand.logoUrl ? (
<img src={brand.logoUrl} alt="" width="28" height="28" className="sp-logo__image" />
) : (
<svg viewBox="0 0 32 32" width="28" height="28" aria-hidden="true">
<rect width="32" height="32" rx="6" fill="currentColor" opacity="0.15" />
<path d="M16 6l7 10-7 10-7-10z" fill="currentColor" />
</svg>
)}
<span className="sp-logo__title">{brand.name}</span>
</span>
</Link>
);
}
EOF
Each part puts data-theme="sample-parts" on its own root element, and every rule in the stylesheet is scoped to it. The product also sets data-theme on <html> to the active theme’s slug, but a part can be shown while another theme is active (a parent’s part, a preview), so scoping to the part’s own root is the safer habit. The logo part shows the operator’s logo from Site & Content › Branding when one is uploaded (useBrand().logoUrl) and its own mark otherwise. Logical properties (padding-inline, border-block-end) keep the theme right-to-left safe; theme lint-rtl checks that.
cat > "$THEME/src/styles/theme.css" <<'EOF'
/* Every rule is scoped to an element this theme renders: the parts carry data-theme="sample-parts". */
[data-theme='sample-parts'].sp-header {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 1rem;
padding-block: 0.75rem;
padding-inline: 1.5rem;
background: var(--th-surface, #1f2937);
border-block-end: 3px solid #f59e0b;
color: var(--th-text, #ffffff);
}
[data-theme='sample-parts'] .sp-header__nav {
display: flex;
gap: 1rem;
}
[data-theme='sample-parts'] .sp-header__tagline {
margin: 0;
font-style: italic;
color: #fbbf24;
}
[data-theme='sample-parts'].sp-logo__inner {
display: inline-flex;
align-items: center;
gap: 0.5rem;
color: #f59e0b;
font-weight: 700;
}
[data-theme='sample-parts'].sp-footer {
display: flex;
justify-content: space-between;
padding-block: 1rem;
padding-inline: 1.5rem;
border-block-start: 3px solid #f59e0b;
color: var(--th-muted, #9ca3af);
}
EOF
Checkpoint. Your folder is the sample, file for file:
diff -r -x dist "$THEME" "$SAMPLE" && echo "identical"
prints identical. Any line diff prints is a typing difference to fix before you build.
4. Build, validate and pack
The CLI runs from the root of the Poker Engine source as npm run theme -- <command> [options] <theme-dir>. It needs nothing installed in the theme folder: React and the SDK are not bundled, they are read from the host at runtime.
npm run theme -- build "$THEME"
Expected output (the relative path depends on where your folder is):
built sample-parts@0.1.0 → …/pe-themes/sample-parts/dist (2 files)
theme.css
theme.js
dist/theme.js is readable, unminified JavaScript whose first statement is const host = window.__pokerEngine;, the one host read the scanner allows. dist/theme.css opens with the layer order and wraps your rules in @layer pe-theme { … }.
Run the validator, the same rules the server applies to an upload:
npm run theme -- validate "$THEME"
Expected output:
theme validate: sample-parts@0.1.0 ok against contract 0.1.0: 0 errors, 0 warnings; 8 files, 5.4 KiB package, 0.7 KiB css, 0.9 KiB js gzipped (largest chunk 0.0 KiB)
theme validate: source directory; 1 path left out as theme pack would: src/
Check right-to-left safety:
npm run theme -- lint-rtl "$THEME"
It prints RTL lint: 5 file(s) clean. Then pack the archive:
npm run theme -- pack "$THEME"
Expected output:
packed sample-parts-0.1.0.tgz (8 files, 41392 bytes, sha256 d6a94041dd82…)
skipped src/
Checkpoint. The archive is reproducible: the same sources pack to the same bytes on any machine.
shasum -a 256 "$THEME/dist/sample-parts-0.1.0.tgz" # Linux: sha256sum
tar -tzf "$THEME/dist/sample-parts-0.1.0.tgz"
The hash starts with d6a94041dd82. The listing has eight entries, all under sample-parts/: LICENSE, README.md, assets/logo.svg, dist/theme.css, dist/theme.js, screenshot.png, strings/en.json, theme.json. A different hash means a file differs from the sample; run the diff from step 3 again.
5. Run it against the local product with theme dev (optional)
theme dev puts a proxy on port 5180 in front of the client on 5173. It rebuilds the theme when a file under the folder changes, answers the theme endpoints with your local build as if it were the active theme, and reloads the page after each rebuild. Nothing is installed on the server.
npm run theme -- dev "$THEME"
Expected output:
theme dev: http://localhost:5180 (theme sample-parts@0.1.0 from …/pe-themes/sample-parts; client via http://localhost:5173)
Open http://localhost:5180/. The header has the amber bottom border, the diamond logo with the site title, Home and Lobby links; the footer reads the site title and "Sample Parts theme". Edit a colour in src/styles/theme.css and save: the terminal prints rebuilt sample-parts@0.1.0; reloading 1 client(s) and the page reloads with the new colour. theme dev builds into $THEME/dist/ as it goes.
Undo the colour edit before you go on, and save again: the archive you upload in step 6 and the hash in step 8 assume your files still match the sample. diff -r -x dist "$THEME" "$SAMPLE" from step 3 prints nothing once the edit is undone.
--port sets the proxy’s own port (default 5180) and --vite-port the client it forwards to (default 5173). With the client on 5174, for example:
npm run theme -- dev "$THEME" --port 5181 --vite-port 5174
and open http://localhost:5181/. theme dev reaches the API only through the client, so it needs no API port of its own.
Two differences from an installed theme: the tagline is empty, because theme dev serves no settings (the manifest default is applied by the server), and the switch that shows a theme to players does not apply, because the proxy answers the theme configuration itself. Stop it with Ctrl+C before step 6; http://localhost:5173/ was never changed." The archive you packed in step 4 is still in $THEME/dist/; theme dev does not change it.
6. Upload, preview and activate
Sign in as the admin. Open http://localhost:5173/login and sign in with admin / admin123. On the development seed you land on the lobby straight away. If Require two-factor authentication for admins is on for your install (Settings › Security; it is off by default), the first sign-in shows Set up admin two-factor authentication instead: add the Manual setup key (or the QR code) to your authenticator app, type the 6-digit code into Authentication Code and click Finish setup, store the backup codes, then click Continue.
Upload. Go to http://localhost:5173/admin/appearance/themes (Site & Content › Themes in the admin sidebar). Click Upload theme and choose ~/pe-themes/sample-parts/dist/sample-parts-0.1.0.tgz.
Checkpoint. The Validation report panel opens with the title "Sample Parts 0.1.0 installed" and "0 errors, 0 warnings · contract 0.1.0". Close it. The list has two theme cards: Default (Active) and Sample Parts (Inactive, extends default, version 0.1.0). On disk the server unpacked the archive to themes/sample-parts/0.1.0/ in the root of the source.
Each card shows only the actions that apply to it. Activate, Customise and Preview are labelled buttons; Validate, Export and Delete are icon buttons at the end of the card (hover one to see its name). The Sample Parts card has all six; the active Default card has only Customise. Deactivate replaces Activate on an active theme, Roll back (an icon button) appears once a theme has a previous version, and Delete is not offered on the active theme.
Preview. Click Preview on the Sample Parts card. A new tab opens the site with the theme applied for your browser only. Back on the Themes page, without a reload, a banner reads Previewing "sample-parts" in this browser only; players see no change. with a Stop preview button. Close the preview tab and click Stop preview.
Activate. Players see the active theme only while Show the active theme to players is on. Turn that switch on (it shows "Players now see the active theme"), then click Activate on the Sample Parts card.
Checkpoint. Sample Parts is Active and Default is Inactive. In a private (incognito) window, which is a guest with no admin session, open http://localhost:5173/:
- the header is the theme’s: an amber bottom border, the diamond logo next to the site title, Home and Lobby, and the italic tagline "Cards on the table";
- the footer has the amber top border, the site title and "Sample Parts theme";
- everything between them, including the lobby and the table pages, is unchanged
default.
From the terminal, curl -s http://localhost:5173/api/v1/config/theme now starts with {"success":true,"data":{"slug":"sample-parts", and contains "settings":{"tagline":"Cards on the table"} and "enabled":true.
7. Customise a setting and watch it update live
Keep the private window open on http://localhost:5173/.
In the admin tab, click Customise on the Sample Parts card (or go to Site & Content › Customise, which opens the active theme). Under Settings, in the Header group, change Tagline to Shuffle up and deal and click Save.
Checkpoint. The admin page shows Settings saved for "Sample Parts". In the private window, without reloading, the header’s tagline changes to "Shuffle up and deal" within a second or two: the server sent appearance_updated, the page fetched the theme configuration again and the header re-rendered with the new setting.
What is and is not live today:
- Settings, part and view changes reach open pages without a reload, as you just saw.
- Token values and the operator’s Custom CSS are served in the token sheet (
theme.css), which open pages re-read onappearance_updated, so they update live as well.
Reset to defaults on the Customise page puts the tagline back to "Cards on the table". Your saved values belong to the theme slug: they survive an update of the theme and a switch to another theme and back.
8. Roll back, deactivate and delete
Update and roll back. Make a second version: change "version": "0.1.0" to "version": "0.2.0" in $THEME/theme.json, then build and pack again:
sed -i.bak 's/"version": "0.1.0"/"version": "0.2.0"/' "$THEME/theme.json" && rm "$THEME/theme.json.bak"
npm run theme -- build "$THEME"
npm run theme -- pack "$THEME"
pack prints packed sample-parts-0.2.0.tgz (8 files, 2281 bytes, sha256 19a38894f29a…) and lists the earlier archive and src/ as skipped. Upload dist/sample-parts-0.2.0.tgz with Upload theme: the report says "Sample Parts 0.2.0 installed" and the card shows version 0.2.0 with "previous 0.1.0", still active. Click Roll back on the card and confirm Roll "Sample Parts" back from 0.2.0 to 0.1.0?.
Checkpoint. The card shows version 0.1.0 (previous 0.2.0) and is still Active; the tagline you saved in step 7 is still shown, because overrides survive updates and rollbacks. Uploading a version that is already installed, or is kept as the previous version, is refused: the Themes page shows a red notice such as sample-parts-0.1.0.tgz was not installed: Theme "sample-parts" version 0.1.0 is already installed; bump the version to replace it. The next change you ship needs a new version number. After Delete (below) the same version can be uploaded again.
Deactivate. Click Deactivate on the Sample Parts card.
Checkpoint. Default is Active. The private window shows the product’s own header and footer again, without a reload.
Delete. Click Delete on the Sample Parts card and confirm Delete "Sample Parts"? Its files, settings and strings are removed. This cannot be undone. The card disappears, and with it the files under themes/sample-parts/, the saved tagline and the theme’s strings. Turn Show the active theme to players off again if you want the install back exactly as it started. Once deleted, the theme can be uploaded again, 0.1.0 included, as if it had never been installed.
Clean up. Stop the API and the client with Ctrl+C, then remove the tutorial’s database container and its volume. These names belong to this tutorial only; nothing else uses them:
docker rm -f pe-tutorial-db
docker volume rm pe-tutorial-db-data
What this tutorial does not show
These are limits of the product today, each marked not yet supported on the page that covers it:
- A table style’s
themeSlugis stored but not applied. theme dev --link, building straight into a local server’s installed-themes folder: install withpackand Site & Content › Themes, as here. See Building and Packaging.- Building a theme from the exported contract snapshot alone, without the Poker Engine source, and a theme’s own CI pipeline built on it. The CLI used here reads the contract from the product’s source. What the export writes, and what it is for, is in Building and Packaging › The contract snapshot and Theme Contract › The export.
Where to go next
The other samples in the theme tools each exercise one more capability: tokens only (sample-tokens), a theme-defined section type and front page (sample-sections), table tokens with a declared timing profile (sample-table), a light colour scheme (sample-light), and an archive the validator rejects (sample-bad). Build any of them the same way: npm run theme -- build <sample folder> then pack. The rest of this guide set covers each capability in depth; Testing and Certification covers testing a theme and certifying a table layout.