← The Post

Practical articles

How I implement theme choice without losing readability

A recommended token, preference and asset model for coherent light and dark reading across an advocacy website.

Stefan Rampersad · Principal Strategist, PHNYXPRO · 4 min read ·

Project:
Caribbean Sleep Health / CSDA
Historical period:
April to November 2026

Retrospective written 25 November 2026

Define the reading contract before adding a theme switch. My recommended approach uses CSDA's light and dark presentation, daytime Caribbean imagery for light mode and November readability work as the example. The contract should preserve content, navigation and action meaning while allowing the visual presentation to change. The sequence below gives the theme a maintained model and acceptance checks. It makes no accessibility certification or donation-outcome claim. Start with the semantic roles used by the interface, then connect those roles to preferences, assets and the editorial workflow.

Map semantic roles rather than individual colours

Create theme roles for page background, text, muted text, borders, links, action surfaces and focus indicators. Add roles for information, error and success states where the interface needs them. Define each role in both modes and use the shared roles in components instead of making page-specific colour guesses. Keep the accepted CSDA naming independent of the theme. Assign the design owner to maintain the role map and the development owner to ensure new controls use it. A theme should alter presentation without introducing a second set of organisational descriptions.

WCAG sets criteria for text contrast. Use that concise principle to review the actual combinations produced by the roles, including links and less prominent explanatory text. Check default, focus, disabled and error states in both modes. Do not rely on a large heading as evidence that a smaller instruction is equally readable. A useful acceptance example is a newsletter form with an invalid entry: the error, input boundary and next action should remain identifiable in light and dark views, without making colour the only explanation of what needs correction. [WCAG 2.2 criteria for text contrast]

Keep preference separate from content

Model the theme preference as an explicit choice or a system-following option. Resolve that preference consistently when the app is ready, and provide an ordinary way to change it. Avoid tying a public visual choice to a private administrative role or requiring an account merely to read in another mode. Test a returning reader, an unavailable saved preference and a changed system preference. Acceptance means the selected behaviour is understandable and recoverable, with the same article record and navigation destinations retained after the presentation changes.

Map assets by intended role and theme suitability. For a worked example, a resource introduction uses a daytime Caribbean photograph in light mode and an approved alternative treatment in dark mode. Keep the description and editorial meaning connected to the same content entry. Define stable dimensions so changing the asset does not displace the text or action. Test both the approved images and an image failure. The essential resource title and description should remain understandable without the photograph, while any alternative treatment must retain its permission and context review.

Review whole journeys in each mode

Choose an article, a resource index and a participation path as acceptance fixtures. Open an article directly, change the theme, follow a related resource and return. The title, current location and link purpose should remain clear throughout. Then test long content, an empty collection and a validation message. Check keyboard focus and compact navigation with the same fixtures. These are proposed task checks, not proof of complete conformance. Their value is that they exercise the maintained roles under real information and interaction states instead of judging a theme from an attractive homepage alone.

Give the editor a publication checklist covering image treatment, headings, callouts, links and forms in both modes. Keep donation information precise about the pathway actually offered, without adding unsupported figures or implying a working collection service. Require a design review when a new content block introduces a colour or visual state which has no existing role. Test a new callout and a replaced photograph before publication. A content update should never silently make one mode the complete experience and leave the other with unreadable supporting material.

Finish by recording the accepted roles, preference behaviour, asset associations and journey results with their owners. Ask the editor to publish a fictional draft fixture through the review process and explain which checks protect the two presentations. Keep private administrative information outside the public theme model. The system is ready for its next iteration when a reader can change the visual mode without losing the thread, and a content owner can maintain that experience through ordinary updates. Theme choice then becomes a dependable reading option rather than a decorative variation which slowly drifts away from the site it represents.

References

  1. W3C: WCAG 2.2 contrast and accessibility criteria
  2. W3C: supplemental personalisation guidance
  3. W3C: form instructions and error handling

Stefan Rampersad

Stefan leads PHNYXPRO, writing about brand storytelling, strategy and the business of creative work in the Caribbean and beyond.

Keep reading The Post

More from The Post