Skip to main content

Theme

Theme is the Settings screen for switching FlowPOS between light and dark appearance on the device you are using, and for reviewing the color tokens of the active theme. It does not change sales, inventory, prices, or accounting.

Settings → Theme. Open Theme

Theme page in light mode showing Toggle Theme and the Core palette swatches

ModuleSettings
Who uses itAnyone who can open Settings → Theme (menu visibility is broad, including cashiers and default roles when Settings is available)
What it changesOnly the light/dark appearance for this browser or device. Color swatches are a visual reference; clicking one copies a CSS variable name when the clipboard is allowed

Purpose and when to use it​

Use Theme when you want to:

  • Switch the whole app between light and dark.
  • Confirm how colors look after a theme change (buttons, cards, sidebar, status colors).
  • Copy a CSS variable name (for example --primary) when someone is reviewing branding or reporting a color issue.

Use another path instead when:

SituationUse instead
Change languageLanguage control in the authenticated header
Change Retail / Restaurant workspace defaultsUser Preferences
Edit your name or sign-in emailUser Profile
Change business logo or brand detailsBusiness settings (not Theme)
Check app or API versionAbout This App

Typical scenarios​

  1. A cashier works under bright lights. They open Settings → Theme, choose Toggle Theme until the title shows Theme: light, and keep working.
  2. A manager prefers dark screens at night. They use Toggle Theme (or the moon/sun control in the header) once; the choice stays on that device until they change it again.
  3. Support asks which blue the primary button uses. Someone opens Theme, finds Primary under Core palette, and clicks the swatch so --primary is copied when the browser allows clipboard access.

Before you begin​

  • Sign in to FlowPOS. Theme lives inside the authenticated app.
  • Open Settings → Theme from the sidebar (or the Settings gateway, then Theme).
  • You do not need a special permission beyond seeing the menu item. The default Settings menu lists Theme for a wide set of roles (including owner, admin, store manager, cashier, sales associate, warehouse staff, guest, and default) when the Settings module is available.
  • Appearance is stored in this browser or app profile (light or dark). It is not saved to the server and is not synced to other devices.
  • Open this Help Center article from the book control in the authenticated header (same place on every screen). When you are on Theme and help is wired for the route, that control opens this page.

Understanding the screen​

The page is a single card. There is no create, edit, approve, or delete form.

Header and discovery​

  • Sidebar: Settings → Theme.
  • Authenticated header: book icon opens this documentation when helpPath is set for the route. Unmapped routes fall back to the Help Center home.
  • The same header also has a compact moon/sun Toggle Theme control that switches light and dark without opening this page.
ElementMeaning
Theme: light or Theme: darkActive appearance. The word after the colon is the current mode (light / dark)
DescriptionDesign tokens for the active theme. Click a swatch to copy the CSS variable name.
Toggle ThemeSwitches between light and dark immediately

Color sections​

Swatches are grouped under section headings. Translated headings:

Section (English UI)Purpose
Core paletteMain surfaces and text (background, card, primary, destructive, success, warning, info, and related foregrounds)
SidebarNavigation sidebar colors

Additional section titles currently stay in English in every locale: Charts, Backgrounds, Typography, Borders, Accents, Status, Badges, Tints.

Later Theme sections including Accents, Status, and Badges

Each swatch shows:

  1. A color sample for the active theme.
  2. A label (translated for core and sidebar names when keys exist; otherwise the token name).
  3. The CSS variable name (for example --background).
  4. A copy icon.

Field-by-field reference​

Theme has no typed form fields. Interactive controls:

ControlPurposeRequired?NotesExample
Toggle Theme (page)Switch light ↔ darkNoSame effect as the header moon/sun controlTitle changes from Theme: light to Theme: dark
Header theme iconSwitch light ↔ dark from any screenNoAvailable in the authenticated header and related account areasMoon icon while in light mode
Color swatch buttonCopy --token-name to the clipboardNoSuccess toast: Copied to clipboard. Failure toast: Could not copyClick Primary → copies --primary

Step-by-step instructions​

How to switch light and dark​

Objective: Change the app appearance on this device.

Prerequisites: You can open Settings → Theme, or you can reach the header theme icon.

  1. Open Settings → Theme, or stay on any authenticated screen.
  2. Select Toggle Theme on the page, or the moon/sun icon in the header.
  3. Confirm the title shows Theme: light or Theme: dark, and that screens update.

Expected result: The whole UI follows the new mode. The choice is remembered on this device.

Warnings: Other devices keep their own setting until you change them there.

How to review colors​

Objective: See how theme colors look in light or dark.

  1. Open Settings → Theme.
  2. Set the mode you care about with Toggle Theme.
  3. Scroll the sections (Core palette, Sidebar, Charts, and the later groups).
  4. Compare samples with what you see on POS or Restaurant screens.

Expected result: Swatches match the active theme. No business data is saved.

How to copy a CSS variable name​

Objective: Copy a token name for support or design review.

  1. Open Settings → Theme.
  2. Find the swatch (for example Primary).
  3. Click or tap the swatch.
  4. Look for Copied to clipboard with the value (for example --primary).

Expected result: The variable name is on the clipboard when the browser allows it.

Possible errors: If you see Could not copy, the browser blocked clipboard access. Allow clipboard permission for FlowPOS, or select the variable text from the swatch label and copy manually.

Toast showing Could not copy after a swatch click when clipboard access is blocked

In-app discovery​

  • Route path: /ThemeColorPreview
  • Docs helpPath: /settings/theme
  • helpLabelKey: theme.help
  • Help opens from the authenticated header book control (not a page-level chip).

What users can and cannot do​

ActionAllowed?Conditions or Restrictions
Switch light/darkYesStored on this device only
Review color swatchesYesRead-only samples
Copy CSS variable nameYesRequires clipboard permission
Change languageNot available hereUse the header language control
Edit business colors / logoNot availableUse business settings and related branding screens
Create / edit / delete recordsNot availableTheme is not a document form
Approve / cancel / reopenNot available—
Print / exportNot available—
Change stock, sales, or moneyNot availableTheme never posts business transactions

Record statuses and lifecycle​

Theme has no document statuses. Appearance has two modes:

stateDiagram-v2
[*] --> light: First visit follows device preference when nothing was saved
light --> dark: Toggle Theme
dark --> light: Toggle Theme
  • light — light surfaces and dark text for most content.
  • dark — dark surfaces for low-light use.
  • Switching is immediate and reversible. There is no approval step.

How the choice is applied:

flowchart LR
A[Open Theme or use header icon] --> B[Toggle Theme]
B --> C[App stores light or dark on this device]
C --> D[All screens on this device use that appearance]

Effects on other modules​

AreaEffect
All PWA screens on this deviceColors and contrast follow light or dark
Other devices / browsersUnchanged until toggled there
Inventory, sales, restaurant ordersNone
Accounting and reports dataNone
User PreferencesSeparate — layout and tab defaults, not light/dark
Server / multi-tenant dataNone — no Theme API call

Practical examples​

  1. Everyday: End of shift under dim lights — open Theme, toggle to dark, close the menu, continue closing the cash register.
  2. Shared tablet: Morning staff toggle to light. The next person on the same tablet inherits that choice until someone toggles again.
  3. Common mistake: Expecting Theme to change the business logo or receipt brand colors. Theme only switches light/dark and shows token samples; branding is configured elsewhere.

Common errors and troubleshooting​

ProblemPossible CauseRecommended Solution
Could not copy after clicking a swatchBrowser blocked clipboard accessAllow clipboard for the FlowPOS site, or copy the --… text shown on the swatch manually
Theme resets on another computerPreference is device-localToggle Theme on each device you use
Some section titles stay English in Spanish UIThose headings are not translated yetUse the translated menu label Tema and the translated Cambiar Tema / core swatch names; section titles such as Charts may remain English
Some swatch names look like success or chart-1Missing friendly labels for those tokensUse the CSS variable under the sample; report naming gaps to support if needed
Expected logo or brand color editorTheme is not a branding editorUse business settings for logo and related brand fields

Best practices​

  • Prefer the header moon/sun control for a quick switch while working; use Settings → Theme when you need to inspect colors.
  • Keep light mode for bright floors and dark mode for dim rooms — comfort only; it does not change permissions or totals.
  • Do not treat copied CSS variable names as instructions to change stock or prices.
  • When reporting a color bug, note Theme: light or Theme: dark and the token name (for example --destructive).
  • Remember that shared devices share one stored appearance until someone toggles it.

Frequently asked questions​

What is Theme for?
To switch light and dark appearance on this device, and to review (or copy) the active color tokens.

Where do I find help while I am on this screen?
Use the book icon in the authenticated header. On Theme it opens this article when help metadata is set.

Is Theme the only way to switch dark mode?
No. The authenticated header (and related account areas) also expose Toggle Theme.

Does Theme change my business logo?
No. It only changes light/dark appearance for the app chrome and content colors driven by the theme.

Will my dark mode follow me to another phone?
Not automatically. Each browser or device stores its own choice.

Do I need manager approval to toggle Theme?
No. Anyone who can open the screen (or the header control) can toggle appearance.

Why do some labels stay in English?
Core palette and sidebar names are translated. Several later section titles and some token labels still fall back to English or raw token names.

Does clicking a swatch change the live app colors?
No. It only attempts to copy the CSS variable name. Appearance changes only when you use Toggle Theme.

Can Theme create inventory or sales documents?
No.

Last verified against the PWA Theme page (ThemeColorPreview) on 2026-12-03.