Shared design foundations for English and Arabic, on Web and Flutter. Built with IBM Plex.
Documentation · Foundations · Get started · Project map · Engineering reference
Cave UI brings design tokens, reusable Web styles and JavaScript helpers, native Flutter widgets, and bilingual guidance into one source repository. Logical properties, locale-aware direction and shared themes support English and Arabic interfaces.
Web component specimens rendered from committed source; this is a documentation composition, not a product screenshot or Flutter rendering. Artwork provenance.
أسس تصميم مشتركة للعربية والإنجليزية على الويب وFlutter، بخطوط IBM Plex ودعم اتجاه القراءة والمظاهر.
| Foundation | In this repository |
|---|---|
| Shared tokens | Colour, typography, spacing, radii and motion; Light, Dark and Black themes with a System preference |
| Web | CSS components and JavaScript helpers with no external runtime dependencies |
| Flutter | Native SDK widgets, themes and localization integration |
| Bilingual guidance | 15 documented components with English/Arabic HTML, JavaScript and Dart examples |
| Local exploration | Component playground, customization controls and sample templates; templates have no backend connections |
Website beta: v2.1.0-beta.1; UI packages remain alpha. Registry publication is paused. Package version 0.1.0-alpha.1 is not published to npm or pub.dev. Use locally built archives or an available archive from the documentation downloads. See the package instructions before installation:
| Package | Purpose | Installation and examples |
|---|---|---|
@cave-ui/tokens |
CSS, typed JavaScript/JSON and DTCG subset exports | Tokens README |
@cave-ui/core |
Web styles, locale/theme controller and interaction helpers | Web README |
cave_ui |
Flutter widgets, themes and localization | Flutter README |
After installing the Web archive:
import '@cave-ui/core/tokens.css';
import '@cave-ui/core/styles.css';
import { createCave } from '@cave-ui/core';
const ui = createCave({ locale: 'ar-LB', theme: 'system' });
ui.setLocale('en');
ui.setTheme('black');Applications own their content translations and state. The controller supplies built-in UI labels, direction and formatting; it does not translate application content automatically.
| Location | Purpose |
|---|---|
source/tokens.json |
Canonical design values |
source/catalog.mjs · source/guidance.mjs · source/messages.json |
Bilingual component examples, guidance and UI labels |
source/components/core.css |
Reusable Web component styles |
packages/tokens/ · packages/core/ · packages/flutter/ |
Package implementations and package-specific licences |
src/ · site/ · scripts/ |
Documentation generation, browser controls and tooling |
docs/ |
Status, compatibility, migration and accessibility reference |
Contributing · Changelog · Compatibility · Migration · Accessibility coverage
Package code and generated design tokens are MIT licensed. See packages/LICENSE and the licence in each package. Optional bundled open fonts retain their included SIL OFL notices. The UI packages do not load fonts from a network.
Cave logos, icons, patterns and proprietary fonts are excluded from packages. The documentation site's Cave symbol retains separate brand terms; MIT does not grant rights to Cave marks. Hero and Blue Ocean are not served by the design site. Consult the separate Cave Brand guide for brand use.
Local setup, validation, documentation behaviour and release reference
Requires Node 20+ and Flutter 3.35+. The existing repository notes validation with Flutter 3.47.6. See current validation for the checks performed on this candidate.
npm ci
npm test
npm run test:types
npm run build
npx playwright install chromium firefox webkit
npm run test:browser:all
npm run test:navigation
npm run test:templates
cd packages/flutter
flutter pub get
flutter analyze
flutter testnpm run build generates packages, bilingual examples, downloadable archives and dist/. npm run build:packages updates packages only; npm run pack:packages packages already-built output. npm run serve serves the generated site.
npm run build:flutter compiles the actual Flutter gallery locally, with bundled open fonts and rendering resources. npm run test:browser:all checks three browser engines and writes local visual review pages. Run node tests/flutter-browser.mjs after building the gallery.
Git is authoritative. Edit canonical sources and rebuild generated outputs; do not overwrite this repository from an external artifact. source/legacy/ and older component preview folders are historical references, not package inputs.
The navbar separates documentation language, Web/Flutter and appearance. ?platform=flutter makes the platform shareable and preserves it across navigation. Preview language is independent of documentation language. Theme changes update previews. Flutter panels provide Dart source; the on-demand gallery runs actual Flutter Web widgets.
The compact menu at 1024 px and below supports keyboard traversal, Escape, outside dismissal and focus restoration on resize; navigation and language links remain usable without JavaScript. Browser checks use local servers. When a sibling brand checkout is present, they also check full-label theme switching in both languages. Set CAVE_BROWSER_PATH only for a non-default Chromium executable.
The npm packages are marked private: true; Flutter uses publish_to: none. Registry names and publisher ownership must be confirmed before a separately authorized release. Package versions remain 0.1.0-alpha.1; the website beta is versioned separately.
The checked-in CI workflow validates both platforms and has no package publication, release upload or hosting deployment steps. It is disabled at the time of this documentation review; this change does not enable it.
The Firebase project and Hosting site are cave-design-system, with dist/ as the hosted directory and design.cave.technology as the custom domain. The approved beta is deployed at the custom domain. The matching GitHub tag identifies the tested source; see the recorded Hosting version and asset verification. See release procedure and current status. Local templates and archives do not establish what revision is deployed.
