Theme Documentation
Streamix is white-label: the brand name, logo, colours and fonts come from admin settings, not from code. The visual system is Tailwind CSS with colour tokens driven by CSS variables, so an admin can re-skin the storefront from Theme Options without a rebuild.
The look
- The member area is dark (near-black page, white text, one accent colour), in the style viewers expect from streaming services. It is scoped to the storefront wrapper
.site-theme.dark. - The admin has its own light and dark modes and is not affected by storefront colours.
- A few sign-up pages use light panels (
.on-lightcontainers inside the dark shell). - The Kids home uses a brighter treatment (gradient header, blue canvas).
How theming works
src/app/globals.cssdeclares tokens as space-separated RGB triplets under:root(for example--brand-600: 37 99 235).tailwind.config.tsmaps them to utilities withrgb(var(--token) / <alpha-value>), sobg-brand-600/30and similar opacity modifiers work.- The storefront layout (
src/app/(site)/layout.tsx) reads the saved theme and emits overrides for.site-theme(light) and.site-theme.dark(dark), including the neutral surface, text and line colours.
// tailwind.config.ts (excerpt)
brand: { 600: "rgb(var(--brand-600) / <alpha-value>)" /* 50…950 */ },
secondary: { 600: "rgb(var(--secondary-600) / <alpha-value>)" /* 50…950 */ },
gray: { 900: "rgb(var(--gray-900, 17 24 39) / <alpha-value>)" /* overridable per scope */ },
Tokens
| Group | Tokens | Role |
|---|---|---|
| Brand | brand-50 … brand-950 (--brand-*) |
Primary accent: Play buttons, links, active states, focus rings |
| Secondary | secondary-50 … secondary-950 |
Secondary highlights |
| Ink | ink-50 … ink-900 (static) |
Neutral text, borders and surfaces in admin and shared UI |
| Gray | gray-* via --gray-* |
Tailwind's gray by default; the dark storefront swaps it for true neutrals so form-kit panels match the page |
| Semantic neutrals | --surface, --surface-2, --body, --heading, --txt-muted, --line |
Page and panel backgrounds, text, dividers |
Dark defaults are zinc-like near-blacks (page #0b0b0d, card #141417, raised #1a1a1e), editable under Appearance.
Rule for new UI: use ink-*, brand-* and font-display. No raw hex values and no new global CSS.
Changing the look in the admin
| Where | What |
|---|---|
Theme Options (/admin/settings/theme) |
Logo, favicon and app icon, primary and secondary colours with light and dark values ("Match to Primary" helper), fonts, contact details, SEO defaults |
| Apps → App Branding | Icons, splash and store artwork kept for future companion apps |
| Content → Landing page | Hero headline, sub-headline, call to action, "more reasons to join" cards |
| Theme Builder / Page Builder | Header/footer chrome templates and CMS pages (about, careers, custom pages) |
| Menus | Footer and header link groups |
The site name (platform_name) and logo come from the general settings and are used in the header, footer, page titles and emails. "Streamix" appears only as the fallback when no name is set.
Changing defaults in code
Edit the triplets in src/app/globals.css:
:root {
--brand-500: 229 9 20; /* example: a red accent */
--brand-600: 200 8 18;
--brand-700: 170 6 15;
}
Every bg-brand-600, text-brand-500, ring-brand-500 follows.
Typography
Fonts are loaded with next/font in src/app/layout.tsx and mapped in Tailwind:
fontFamily: {
sans: ["var(--font-inter)", "system-ui", "sans-serif"], // body (Lexend by default)
display: ["var(--font-raleway)", "Roca Two", "system-ui", "sans-serif"], // headings
}
The CSS variable is still called --font-inter for historical reasons; it currently carries Lexend. Change the imports in layout.tsx to use another Google font. Do not use a trademarked font from another streaming brand.
Motion
- Hover previews, modal enter/exit and profile-gate transitions use Framer Motion and CSS transitions (
src/components/ott/motion.ts). - Billboard and hover trailers autoplay muted; members can turn previews off per profile.
- Skeletons on the dark storefront use a translucent white block (
.skeleton-block) so they show on any near-black surface.
Responsive rules
- Rows show 6 / 5 / 4 / 3 / 2 cards depending on width (
src/components/ott/card-sizes.ts). - Desktop shows hover preview cards; touch devices open the title modal on tap.
- Multi-column layouts are gated behind
sm:/lg:/xl:; modals become bottom sheets on mobile.
© CreativeCape Solutions · creative-cape.com · support@creative-cape.com