Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-THEME-001: The Theme button cycles Current, Dark, White and CreamSwRS-MDOKFSTUDIO-THEME-0016 teststhe reader presses the Themebutton, and the button names thenew mode and the next oneSwRS-MDOKFSTUDIO-THEME-025: Dark, White and Cream paint the whole page the same on any VS Code themeSwRS-MDOKFSTUDIO-THEME-0258 teststhe mode is Dark, White or Creamand paints the page, toolbar,heading band and notes from itsown paletteSwRS-MDOKFSTUDIO-CORE-050: Soft appearance and colour transitions honour reduced motionSwRS-MDOKFSTUDIO-CORE-0504 teststhe reader presses the Themebutton and the preview applies nomotionSwRS-MDOKFSTUDIO-THEME-001: The Theme button cycles Current, Dark, White and CreamSwRS-MDOKFSTUDIO-THEME-0016 testsfrom Cream the next pressgives Current againSwRS-MDOKFSTUDIO-CORE-050: Soft appearance and colour transitions honour reduced motionSwRS-MDOKFSTUDIO-CORE-0504 teststhe reduced-motionpreference is on, so thecolours do not fadeSwRS-MDOKFSTUDIO-THEME-016: Current mode follows the VS Code theme and redraws on changeSwRS-MDOKFSTUDIO-THEME-0164 teststhe mode is Current and the page keeps the colours of the VSCode themeSwRS-MDOKFSTUDIO-THEME-025: Dark, White and Cream paint the whole page the same on any VS Code themeSwRS-MDOKFSTUDIO-THEME-0258 teststhe colours are the same on a dark and on a light VS CodethemeThe page is shown in one theme mode (paths 1, 2)The page is shown in onetheme mode2A theme mode is activeA theme mode is activeThe whole page is painted in the colours of the modeThe whole page ispainted in the coloursof the modeThe theme has changed without animationThe theme has changedwithout 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