Design system & component previews
Explore colors and typography, interact with real selects, switches, and settings cards, and compare light, dark, and built-in skins.
How to use it
- Choose a section or component in the sidebar and open its documentation or an individual example.
- Switch themes, skins, or component language in the toolbar. Descriptions and demo text retain their original language.
- Adjust disabled states, icon sizes, progress, and other parameters in Controls.
- Switch between Popup, Mobile, and Desktop viewports to check wrapping and layout, then interact with a mouse or keyboard.
| Section | Content |
|---|---|
| Overview | Explorer introduction |
| Foundations | Theme colors, text contrast, typography, corners, and shadows |
| UI | Selects, switches, collapsible cards, progress, icons, buttons, and dialogs |
| Examples | Real settings-card compositions, including long text and narrow screens |
Previews do not read or change extension settings, call translation services, or download models or fonts. Missing fonts use system fallbacks. Use the extension for complete features.
Contributing to the interface
Contributing to the interface
Install dependencies and start the explorer from the repository root:
pnpm install --frozen-lockfile
pnpm storybookOpen the address shown in the terminal, usually http://127.0.0.1:6006. The stories and their configuration live in docs/development/storybook/. Reuse components from src/ui/components/ and styles from src/ui/styles/.
Cards and information order
- Start settings pages with navigation or content. The sidebar, narrow-screen category, and accessible heading provide the page name.
- Reuse
SettingsGroup,SettingsItem, andSettingsDisclosurefromsrc/features/settings/ui/components/. Use shared colors and spacing fromsrc/ui/styles/tokens.css. - Keep common settings expanded. Secondary settings can collapse, with setup and failure states visible in the summary. Retain drafts when collapsed; callers still manage requests and saving.
- Keep titles and explanations together, with one primary button per action area. Put technical details in help.
- Task dialogs and confirmations share
src/ui/styles/dialogs.css: scroll the content inside the window, keep footer actions reachable, and reveal formats or full differences on demand. Cancel always cancels; it never submits an alternative choice. - Use
settings-controls.cssand anfr-settings-controlscontainer for standalone settings controls to retain switch sizes, touch areas, and keyboard focus styles. - Check dark themes, narrow screens, long text, keyboard focus, and drafts after reopening. Allow primary text to wrap and avoid distracting animations or filters.
Build and check:
pnpm storybook:typecheck
pnpm docs:build:site
pnpm storybook:check
pnpm docs:check
pnpm docs:previewdocs:build:site places the explorer in the documentation output’s storybook/ directory. Preview it from the local docs. GitHub Pages publishes the same artifact.
References
The order draws on Read Frog Storybook. Components and styles use FluentRead’s own Vue, Element Plus, and Vite implementation. See the Storybook Vue and Vite documentation for the tool itself.