27640fee35
Export des Projekts "DataMetric360 App Design" nach design/ - 80 Dateien: die beiden .dc.html-Entwurfsdateien, support.js, die verwendeten Icons, Logos, Typenschilder und Schriften sowie das kompilierte Bündel des Design-Systems, damit der Entwurf für sich allein darstellbar ist. Bewusst ein Zwischenstand, nicht der Endstand: dieser Export zeigt noch "Audi RS 6 Avant" statt des tatsächlichen RS 4 Avant competition und enthält erst die Hauptbildschirme. Die 16 fehlenden Seiten (Fahrzeugstatus, Batterieverlauf, Service, Reifen, Versicherung/Steuer und weitere, siehe SPECIFICATION.md §3) sind im Design-Projekt bereits nachbeauftragt. Beides ist in design/README.md festgehalten, damit der Stand nachvollziehbar bleibt; der Ordner wird beim nächsten Export ersetzt. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
3.2 KiB
3.2 KiB
Usage conventions
- Always wrap the tree that uses these components in
<div className="ads-root" data-theme="nacht">(ordata-theme="tag"for the light theme). Color tokens (--fg,--canvas,--tile, etc.) are defined on:rootand work anywhere, but textcolorand pagebackgroundare only applied via the.ads-rootclass — content rendered outside it falls back to browser-default black-on-white. - Default theme is Nacht (dark) — this is what
:rootsets without anydata-themeoverride. Usedata-theme="tag"for the light variant. - No Audi brand assets (font, rings, nameplate) are included in this bundle — it uses a neutral
Helvetica, Arial, sans-seriffallback stack by design. Popuprenders via a React portal intodocument.bodyby default (position: fixed, centers or anchors relative to the viewport) — it doesn't need to sit inside.ads-rootitself since its own CSS setsbackground/colorexplicitly rather than inheriting them.SwipeRowis a controlled/uncontrolled swipe-to-reveal row: swiping (or settingswiped) slides content left to reveal a delete action on the right, clipping the row's left edge by design — this is the intended interaction, not a layout bug.
AudiDashUI (@audi-dash/ui@0.1.0)
This design system is the published @audi-dash/ui React library, bundled as a single browser global. All 20 components are the real upstream code.
Where things are
_ds_bundle.js— the whole-DS bundle at the project root; loads every component towindow.AudiDashUI. First line is a/* @ds-bundle: … */metadata header.styles.css— the single stylesheet entry: it@imports the tokens, fonts, and component styles (_ds_bundle.css). Link this one file.components/<group>/<Name>/<Name>.prompt.md(example JSX + variants),<Name>.d.ts(types),<Name>.html(variant grid).tokens/*.css— CSS custom properties, names verbatim from upstream.fonts/—@font-facefiles +fonts.css(when the package ships fonts).
For a specific component, read_file("components/<group>/<Name>/<Name>.prompt.md").
Loading
Add these two lines to your page once (React must be on the page first):
<link rel="stylesheet" href="styles.css">
<script src="_ds_bundle.js"></script>
Components are then available at window.AudiDashUI.*. Mount into a dedicated child node (e.g. <div id="ds-root">), not the host page's own React root, so the two trees don't collide:
const { Accordion } = window.AudiDashUI;
ReactDOM.createRoot(document.getElementById('ds-root')).render(<Accordion />);
Tokens
23 CSS custom properties from @audi-dash/ui. Names are
preserved verbatim from upstream. They are declared inside _ds_bundle.css (this DS ships one compiled stylesheet rather than separate token files).
- typography (1):
--font-stack - other (22):
--red,--r-tile,--r-pill, …
Components
general
AccordionActionButtonFeldFigIconButtonImagePlaceholderPillPopupPopupMenuItemProgressBarProgressRingRowListSegStatGridStatusRowSwipeRowSwitchTabBarTile
accordion
LeafRow