Use case StRS-MDOKFSTUDIO-THEME-002
A reader chooses a preview theme that paints the whole page readably
As a reader, I click one Theme button to go through Current, Dark, White and Cream, and I can tell from the icon, the label and the tooltip which theme I am in and which one the next click gives; the preview follows the colours of my VS Code theme in Current mode, every part of the page uses the palette of Dark, White or Cream with no leftover dark bar over a white page, I read Cream without straining, and I see no animation when my system asks for reduced motion. As a maintainer, I can give the preview the palette of another host by mapping one list of named colours.
Use case diagram
How it is split
This use case (StRS) is reached by 2 paths, one per coloured line. A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests. Where paths meet, they share the circle or the step.
path 1: Go to the next theme path 2: Switch the theme when the system asks for reduced motion, starts at 2 other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Go to the next theme
- The page is shown in one theme modeSwRS-MDOKFSTUDIO-THEME-001 from Cream the next press gives Current againSwRS-MDOKFSTUDIO-THEME-001 · 6 tests the reader presses the Theme button, and the button names the new mode and the next one
- A theme mode is activeSwRS-MDOKFSTUDIO-THEME-016 the mode is Current and the page keeps the colours of the VS Code themeSwRS-MDOKFSTUDIO-THEME-025 the colours are the same on a dark and on a light VS Code themeSwRS-MDOKFSTUDIO-THEME-025 · 8 tests the mode is Dark, White or Cream and paints the page, toolbar, heading band and notes from its own palette
- The whole page is painted in the colours of the mode
Path 2: Switch the theme when the system asks for reduced motion
- The page is shown in one theme modeSwRS-MDOKFSTUDIO-CORE-050 the reduced-motion preference is on, so the colours do not fadeSwRS-MDOKFSTUDIO-CORE-050 · 4 tests the reader presses the Theme button and the preview applies no motion
- The theme has changed without animation
This map has 94 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 4 behaviours on the map are tested one by one, with 28 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-CORE-050Soft appearance and colour transitions honour reduced motion 4 testsSwRS-MDOKFSTUDIO-THEME-001The Theme button cycles Current, Dark, White and Cream 6 testsSwRS-MDOKFSTUDIO-THEME-016Current mode follows the VS Code theme and redraws on change 4 testsSwRS-MDOKFSTUDIO-THEME-025Dark, White and Cream paint the whole page the same on any VS Code theme 8 testsSwRS-MDOKFSTUDIO-THEME-031Cream text meets a 4.5 to 1 contrast and keeps the body colour after an admonition not on the map3 testsSwRS-MDOKFSTUDIO-THEME-034A host colour that is set is used, an unset one keeps the fallback not on the map1 test
SwRS-MDOKFSTUDIO-THEME-018A high-contrast VS Code theme is followed like any other deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-THEME-024A theme switch starts no colour transition under reduced motion deprecated deprecated Markdown file
SwRS-MDOKFSTUDIO-THEME-056The toolbar takes the forced mode colours deprecated deprecated Markdown file