pkg:clod/com.clodhub/theme-high-contrast 0.7.0 High-contrast design tokens: the theme interface (com.clodhub/theme) with night and lounge looks whose text, buttons and table meet WCAG AA contrast (4.5:1), rendered to CSS variables, Swift constants and Kotlin constants, plus the animated background. `theme-high-contrast` is the theme interface (`com.clodhub/theme`) with high-contrast looks, for people who need stronger contrast or play in bright rooms. It has the same shape, functions and settings as `theme`, so a recipe can put it in any slot whose class is the theme class. Its `themes.json` holds `night` (black room, white text, yellow buttons, dark green table) and `lounge` (dark brown room, white text, light blue buttons, dark brown table); every text, button and status colour is opaque and has a contrast ratio of at least 4.5:1 (WCAG 2.1 AA for body text) against every surface it is drawn on. One `themes.json` renders to CSS variables for the web, Swift constants for Apple and Kotlin constants for Android. Examples A recipe that names the `theme` slot gets the high-contrast looks with `clod design ... --substitute theme=theme-high-contrast@0.7.0`; every client then draws the same high-contrast colours. A recipe's look answer keeps choosing between `night` and `lounge`. Package URL: pkg:clod/com.clodhub/theme-high-contrast@0.7.0 Class: Theme (pkg:clod/com.clodhub/theme-class@1.1.0): Colours, spacing, type and an animated background for every client. Any component of this class can fill a recipe slot that asks for it. Category presentation/design-tokens; https://clodhub.com/classes/theme-class.txt; 1 other component of this class: https://clodhub.com/components.txt?class=pkg%3Aclod%2Fcom.clodhub%2Ftheme-class Provides (1) - theme (com.clodhub/theme 1.0.0): Design tokens for colours, spacing, radii, type scale and an animated background, rendered to CSS variables, Swift constants and Kotlin constants. Web: implementation/web/tokens.ts and background.ts. Apple: ThemeTypes.swift, ThemeTokens.swift, BackgroundMath.swift, ThemeBackgroundView.swift. Android: package com.clodhub.theme. components that use it: https://clodhub.com/components.txt?requires=com.clodhub%2Ftheme Requires (0) - none Settings (3) `themeName` selects a theme from `themes.json` (`night` or `lounge`); an unknown name falls back to the default. `primaryColour` and `tableColour` are optional colours that replace the theme's primary and table colours; empty means the theme's own. A replacement colour is not checked for contrast. - themeName: string (slug); optional, default "night" - primaryColour: string (label); optional, no default - tableColour: string (label); optional, no default Depends on components: none How to use in a recipe A recipe uses it through a slot of class Theme (pkg:clod/com.clodhub/theme-class 1.1.0), naming pkg:clod/com.clodhub/theme-high-contrast as the slot's preferred component or substituting it for another component of the class. The recipe connects what it provides (theme) to the slots that use it. The recipe sets themeName, primaryColour and tableColour; any it leaves out takes its default. - as a slot in recipe.json components: {"id":"theme-high-contrast","class":{"name":"pkg:clod/com.clodhub/theme-class","version":"1.1.0","digest":"7c232af36715ae9385ef88b01b7fdf9aba15e222eb6421f38b0ba34db4403745"},"preferred":{"name":"pkg:clod/com.clodhub/theme-high-contrast","version":"0.7.0"}} - in place of another component of the class: clod fetch theme-high-contrast@0.7.0 --store store --from https://clodhub.com, then clod design RECIPE@VERSION --store store --answers answers.json --substitute SLOT=theme-high-contrast@0.7.0 --out definition.json Used by recipes: none For developers: how an application uses it Web: import `resolveTheme` and `applyTheme` from the entry module `web/index.ts`, apply the result to `document.documentElement`, link `web/theme.css` for the shipped themes (`:root` is the default theme, `[data-theme=name]` the others), and construct `Background` from `web/index.ts` on a full-screen canvas with `setScene` for pictures. Apple: compile `ThemeTypes.swift`, `ThemeTokens.swift`, `BackgroundMath.swift` anywhere, and `ThemeBackgroundView.swift` in UIKit targets (iOS, tvOS, Mac Catalyst); read colours as `ThemeSet.named(name).resolved(primary:table:)` and `Color(themeColour)`. Android: add the three Kotlin files and `ThemeBackground.kt` to a Compose module; `ThemeSet.named(name).resolved(...)`. To change a look, edit `themes.json` and run `node web/build-tokens.ts themes.json --css DIR --swift DIR --kotlin DIR` to regenerate the three outputs; `tokens.schema.json` documents the shape and `validateTokens` enforces it. Other components (`controls`, `table-layout`, `card-graphics`, `chip-graphics`) read colours from these tokens. Accounts and services None. Pure data, local rendering and on-device drawing. No accounts, network or deployment. How it is checked Node tests check the token shape against the schema, that the OpenRPC interface's token schemas agree with `tokens.schema.json` and that every method it lists is an exported web function, overrides, CSS variable rendering, that the committed generated CSS, Swift and Kotlin equal what the renderers produce, the background placement maths, and that every theme meets WCAG AA contrast (4.5:1) for text, muted text, buttons and status colours on the background, surface and table. The Apple check compiles the Swift and compares colours and frames with the TypeScript fixtures; the Android check is written for kotlinc and does not run where kotlinc is missing. - `node --test tests/web.test.ts` (web, required-local; tools: node 26.5.0) - `python3 tests/native.py apple` (apple, platform; tools: python3 3.12.8, swiftc 6.4.2, xcrun 72) - `python3 tests/native.py android` (android, platform; tools: python3 3.12.8, kotlinc 2.2.0, java 26.0.1) Updates Patch updates replace files only. Regenerate the CSS, Swift and Kotlin outputs after any change to `themes.json`. The component keeps no data; removal deletes its files and the generated outputs. Tags: contrast, design-tokens, high, presentation, theme Targets: client android, ios, macos, tvos, web, windows; server none Publisher: George McIntyre (george-mcintyre) Guardians: Level N Ltd (guardian key 08775f20) Source: clodhub/theme-high-contrast release v0.7.0; digest sha256:a5dd4e2b2bf7fa60ef8dc190306f34468485b138edf0d5e50eb826a244751a0a Release: features Line 0.7: no security releases Quality: Reviewed, certified Known vulnerabilities: none known (checked 2026-11-26 at OSV); https://clodhub.com/api/components/theme-high-contrast/0.7.0/vulnerabilities Downloads: 1 in 30 days; 1 of this version Images (4): https://clodhub.com/images/be28eab17f59e894c84c737aef313c7f9eaa78891c59620be1326720a37bdcb3.png (web, The high-contrast night look: colours, actions and table over its animated background); https://clodhub.com/images/043e5068bba6d19edf04d039a159dad489843c8f525f356bf71bb6ed8577a6b1.png (web, The high-contrast night look's animated background on its own); https://clodhub.com/images/a023d1261fe2e3d8035ccddb94eb35b3258fa73e18602610a436c88f79e55f6a.png (web, The high-contrast lounge look: colours, actions and table over its animated background); https://clodhub.com/images/ccfc3eb3a1fe5b39d5e3fdb45ea93b5a7647598e56ec91b4e263b8d623160505.png (web, The high-contrast lounge look's animated background on its own) Classes: https://clodhub.com/classes.txt; this component as JSON: https://clodhub.com/api/components/theme-high-contrast/0.7.0 Bundle download: GET https://clodhub.com/api/components/theme-high-contrast/0.7.0/bundle returns a link valid for one hour Implements: pkg:clod/com.clodhub/theme-class@1.1.0 7c232af36715ae9385ef88b01b7fdf9aba15e222eb6421f38b0ba34db4403745 com.clodhub/theme 1.0.0 entry modules: android android/src/main/java, ios apple/Sources, macos apple/Sources, server server/index.ts, tvos apple/Sources, web web/index.ts, windows web/index.ts shared behaviour suites: apple-values, shared Platforms: android, ios, macos, server, tvos, web, windows Toolchains: android >=8.0.0, ios >=17.0.0, java >=17.0.0 <27.0.0, kotlin =2.4.21, macos >=14.0.0, node >=26.5.0 <27.0.0, swift =6.4.2, tvos >=17.0.0 Frameworks: android-ui: androidx.compose.ui =1.10.0 Styles: scope global; 64 namespaces; 0 conflicts Licence: Apache-2.0; 0 upstream sources, 2 exact dependencies, 48 files (listed on the details page) Suitable for jobs: theme profile any: cost none; load none; regions any; compliance none Notes: Pure library; no provider limits apply. Data migration: this component keeps no data Maintainers: Level N Ltd; https://github.com/clodhub/theme-high-contrast/issues; updates https://github.com/clodhub/theme-high-contrast/releases (manual) What you download theme-high-contrast-0.7.0.tar, from release v0.7.0 of clodhub/theme-high-contrast: 48 files - Documents and manifests (8): CONTRACT.md, INSTRUCTIONS.md, LICENCE, NOTICE, PROVENANCE.md, SOURCE.md, ... - Source code (17): android/ (4), apple/ (4), server/ (1), web/ (8) - Tests (6): android/ (1), apple/ (1), fixtures/ (1), make-fixtures.ts, native.py, web.test.ts - Interface documents (1): theme.json - Class files: the class's interfaces and shared checks (5): theme-class/ (5) - Examples (2): consumer.ts, images.ts - Images of it as built (4): lounge-background.png, lounge-sample.png, night-background.png, night-sample.png - Diagrams (5): definition.json, examples/ (1), output/ (3) Installing copies 17 of them into the application under components/theme-high-contrast/: android 4, apple 4, server 1, web 8 Not included: the values of its settings, which the recipe writes; any secret The archive is a release file on the publisher's public GitHub repository; ClodHub keeps this page and a pointer to the release, not the code. clod checks the archive's sha256 fingerprint before anything is copied, and installing runs none of the package's code. Versions - 0.7.0 features (2026-11-26T11:34:05.071Z) sha256:a5dd4e2b2bf7fa60ef8dc190306f34468485b138edf0d5e50eb826a244751a0a Links Details (package foundations, upstream sources, exact dependencies, styles, class inventories, files): https://clodhub.com/components/theme-high-contrast/details.txt?version=0.7.0 Page: https://clodhub.com/components/theme-high-contrast; JSON: https://clodhub.com/api/components/theme-high-contrast/0.7.0; connections diagram: https://clodhub.com/api/components/theme-high-contrast/0.7.0/connections.svg Copyright Level N Ltd 2026