UI guide (Tellyboard)¶
How the Tellyboard admin UI is built: the color theme, the table layout, the configuration, and the components, and which pages use what.
Everything here is in tellyboard-frontend (React + Vite + Tailwind 4) and two shared npm packages.
| Page | What it explains |
|---|---|
| Color theme | design tokens, light and dark, the C colour object, the sidebar palette |
| Table layout | the table styles and which pages use which |
| Configuration | runtime config (window.__ENV__), variables, Tailwind, fonts, preferences |
| Components | the UI kit (buttons, sheets, dialogs, tabs...) and the page patterns |
Not the TV UI
This is the admin UI. The UI on the room TV is the Playout UI; the guest phone app has its own styles.
The layers¶
flowchart TB
T["@playtelly/design-tokens<br/>(Style Dictionary: tokens.json to variables.css and tokens.js)"]
TH["@playtelly/tellyboard-theme<br/>(C, S, st, tableTheme, sidebar palettes, css)"]
CSS["src/index.css<br/>(raw HSL tokens, light and .dark, --c-* aliases)"]
TW["Tailwind 4 + shadcn-style components<br/>(src/components/ui)"]
P["Pages: campaign, channel, playlist, device, schedule..."]
T --> TH
CSS --> TW
CSS --> TH
TH --> P
TW --> P
| Layer | Where | Used for |
|---|---|---|
| Design tokens package | tellyboard-frontend/design-tokens → @playtelly/design-tokens |
colours, shadows, radius, font sizes, spacing as one source; exports cv(), tokens, darkTokens, shadow, radius, fontSize, spacing |
| Theme package | tellyboard-theme → @playtelly/tellyboard-theme |
the C colour object, S list-page styles, st detail-page styles, tableTheme, sidebarTheme, sidebar palettes, table.css |
| Global CSS | src/index.css |
the HSL variables that Tailwind and the --c-* aliases read; the .dark class |
| UI kit | src/components/ui/* |
shadcn-style components built on Radix and class-variance-authority |
Where it is used in Tellyboard¶
| Feature (route or folder) | Styling it uses |
|---|---|
Channels / Feeds (components/channel) |
@playtelly/tellyboard-theme, .pt-table with the density preference, TanStack Table |
Playlists (components/playlist) |
@playtelly/tellyboard-theme, .pt-table, TanStack Table |
Campaigns (components/campaign) |
@playtelly/tellyboard-theme (C, st), inline table styles, side sheets: see Campaigns |
Screens / Screenspace (components/screenspace) |
@playtelly/tellyboard-theme |
Target groups, Device groups (components/targetgroups, components/device) |
ui/table.jsx (grab-to-scroll table), ui/tabs |
Roles and permissions (components/workspace) |
ui/table.jsx |
Create sheets and pickers (components/createsheet, components/pickersheet) |
@playtelly/tellyboard-theme |
Media (components/media) |
@playtelly/tellyboard-theme, TanStack Table for transcoding profiles |
Settings, Preferences (components/setting) |
@playtelly/tellyboard-theme, sidebar theme, table density, language, date and time format |
Schedule (components/schedule) |
page CSS module pages/Dashboard.module.css: see Schedule |
Sidebar and header (Sidebar.jsx, Header.jsx) |
SidebarThemeContext, sidebarPalette |
One source: @playtelly/tellyboard-theme
The package is the only source of the theme helpers (C, S, st, tableTheme, sidebarTheme, table.css, sidebar palettes). Always import from @playtelly/tellyboard-theme.
Do not copy style.js or table.css into an app. A colour or table change is made in the tellyboard-theme repository, the version is bumped, it is published to Nexus, and the apps update the dependency.
Tellyboard still has an older in-app copy in src/components/theme/ that is out of date (the published package v1.0.0 lacks its newest table rules); it is being removed and must not be used for new code.
Install and run¶
# the @playtelly packages come from the company registry (set once, see .npmrc in the repo)
npm config set @playtelly:registry https://nexus.castis.io/repository/npm-hosted/
cd tellyboard-frontend
npm install
npm run dev # Vite dev server
npm run build # production bundle
npm run lint
To change a colour or spacing token: edit the token source (design-tokens), run npm run build:tokens there, and publish a new @playtelly/design-tokens version.
The raw HSL values that Tailwind uses live in src/index.css.
Install and use, folder by folder¶
| Folder | Install | Run / build | How the UI layer is used |
|---|---|---|---|
design-tokens/ |
npm install |
npm run build:tokens writes dist/variables.css, tokens.js, tokens.json (Style Dictionary, sd.config.js) |
The source of the hex --c-* tokens. Publish to Nexus (@playtelly:registry=https://nexus.castis.io/repository/npm-hosted/) so apps can install it. |
tellyboard-theme/ |
npm install (peer dependency @playtelly/design-tokens) |
publish to Nexus after a change | Exports C, S, st, sidebarTheme, tableTheme, broadcastSheetStyle, index.css, table.css. |
TellyboardAdmin/tellyboard-frontend/ |
npm install (needs the .npmrc registry line) |
npm run dev, npm run build, npm run lint |
Uses both packages and its own src/index.css. Import the theme only from @playtelly/tellyboard-theme. |
PlayoutAdmin/ |
npm install |
npm run dev |
Lists @playtelly/design-tokens in package.json, but only src/tests/Test.jsx imports it. |
LauncherAPP/playout-app/ (TV UI) |
npm install |
npm run dev, npm run build:playtelly |
Does not use the packages. The TV UI has its own per-property theme.css. |
GuestApp/conciergeguestapp/ |
npm install |
npm run dev |
Does not use the packages (its own styles). |
Use in a frontend:
echo "@playtelly:registry=https://nexus.castis.io/repository/npm-hosted/" >> .npmrc
npm install @playtelly/design-tokens @playtelly/tellyboard-theme
import "@playtelly/design-tokens/css" // --c-* variables
import { C, st } from "@playtelly/tellyboard-theme"
import { cv } from "@playtelly/design-tokens"
Is the playout folder using them?
The TV playout app (playout-app) does not. PlayoutAdmin has the token package installed but uses it only in a test page, so in practice only Tellyboard uses the UI layer.