Brand
Downloads
Everything here is generated from the same tokens file as this site.
Install the web package
@cave-ui/core 0.1.0-alpha.1 · @cave-ui/tokens 0.1.0-alpha.1
npm install ./cave-ui-core-0.1.0-alpha.1.tgz
import '@cave-ui/core/tokens.css';
import '@cave-ui/core/styles.css';
import { createCave } from '@cave-ui/core';
const ui = createCave({
locale: 'en',
theme: 'system',
storageKey: 'my-app-appearance'
});
ui.setLocale('ar');
ui.setTheme('dark');
// Your application updates its own translated content.
document.documentElement.addEventListener('cave:change', event => {
console.log(event.detail);
});
The web core has no external runtime dependencies. Imports are server-safe; create the controller in the browser. The optional legacy.css supports cv- names during migration to cave-.
Install the Flutter package
Extract the archive into your project’s vendor directory, add the path to pubspec.yaml, then run flutter pub get.
dependencies:
cave_ui:
path: vendor/cave_ui
final controller = CaveController(locale: const Locale('en'));
CaveApp(controller: controller, home: const MyHomePage());
controller.setLocale(const Locale('ar'));
controller.setTheme(CaveThemeMode.black);
Requires Flutter 3.35 or newer. Direct dependencies are Flutter and its localization SDK, which brings transitive dependencies such as intl. No external state manager or icon library is required.
Tokens
| File | Size | |
|---|---|---|
tokens.json | The source file: every colour, type style, space, radius, shadow and motion value. | 33 KB |
tokens.css | CSS variables for Light, Dark and Black. Set data-theme="light", "dark" or "black" on the root element. | 5.0 KB |
components.css | Legacy cv- component styles for migration. New packages use cave- classes; tokens.css is required, fonts are optional. | 14 KB |
fonts.css | @font-face rules for the bundled fonts. Bundle the font files with your app; do not load them from a CDN. | 1.2 KB |
cave_tokens.dart | The palette and one colour class per theme for Flutter. | 8.1 KB |
Open fonts
Optional open fonts with their SIL OFL licence notices. Packages use system fallbacks until you bundle fonts.
| File | Size | |
|---|---|---|
cave-ui-latin-400.woff2 | Cave UI Latin 400 | 30 KB |
cave-ui-latin-500.woff2 | Cave UI Latin 500 | 31 KB |
cave-ui-latin-600.woff2 | Cave UI Latin 600 | 32 KB |
cave-ui-latin-700.woff2 | Cave UI Latin 700 | 30 KB |
cave-ui-arabic-400.woff2 | Cave UI Arabic 400 | 60 KB |
cave-ui-arabic-500.woff2 | Cave UI Arabic 500 | 63 KB |
cave-ui-arabic-600.woff2 | Cave UI Arabic 600 | 64 KB |
cave-ui-arabic-700.woff2 | Cave UI Arabic 700 | 61 KB |
Logos and brand assets
The Cave logo, symbol, icons and patterns are not open source. They are on the brand site, with the rules for using them.
Open the brand site