Back garden
2m ago32 AQI
Good
- 22.4 °CTemperature
- 5.8 µg/m³PM2.5
This page is the visual spec for the mobile app and the web dashboard. When you change how a monitor looks in one place, check it here first, then match the other. Switch the site theme to see the dark values.
Want to click around the real thing? The prototype runs both the web dashboard and the mobile app with mock data, no sign-in needed. The switch at the top flips between them, and the Screen menu beside it jumps to any page or app screen.
Flutter and React can’t share components, so each platform builds its own. What they do share is the design tokens: one file of colors, radii, shadows, motion and AQI bands that generates every platform’s theme.
The source is src/data/tokens.json in this repository. Edit it, then run make tokens:sync here. That rewrites the generated files in all three repositories:
| Platform | Generated file |
|---|---|
| Docs | src/styles/tokens.css |
| Web dashboard | src/styles/tokens.css and src/lib/aqi-bands.g.js |
| Mobile app | lib/tokens.g.dart |
Don’t edit the generated files by hand. make tokens:check (part of make verify) fails if they drift. Color roles use Material 3 names, which the app already uses and which map cleanly to the dashboard’s variables.
| Role | Light | Dark |
|---|---|---|
primary | #8a5d3b | #d6b88f |
primaryContainer | #f1e6d6 | #4a3826 |
secondary | #6f7f5c | #a3b18a |
secondaryContainer | #e1e7d6 | #3a4430 |
tertiary | #8a6418 | #f2c46d |
tertiaryContainer | #fbe7be | #4d3b12 |
surface | #fbf8f3 | #1b1611 |
surfaceContainerLowest | #ffffff | #15110d |
surfaceContainer | #f3ebdf | #261f18 |
surfaceContainerHighest | #eadfcd | #372d23 |
onSurface | #3b2716 | #f4e9da |
onSurfaceVariant | #6b5a49 | #cdbca5 |
outline | #b3926b | #8a6a48 |
outlineVariant | #e6d9c6 | #3f3327 |
error | #b3261e | #f2b8b5 |
accentsageinksandwoodhighlightsm8pxmd12pxlg16pxxl20pxcard24pxsheet28pxThe app draws these from Flutter’s Material icons. make icons:sync copies the same glyphs into src/data/icons.json, and make tokens:sync turns them into React components for the dashboard, so all three show identical icons.
Icons.grainPm25IconIcons.bubble_chart_outlinedPm1IconIcons.blur_onPm10IconIcons.wb_sunny_outlinedFeelsLikeIconIcons.thermostat_outlinedTemperatureIconIcons.water_drop_outlinedHumidityIconIcons.park_outlinedOutdoorIconIcons.home_outlinedIndoorIconIcons.wifiOnlineIconIcons.wifi_offOfflineIconIcons.publicPublicIconIcons.lock_outlinePrivateIconIcons.system_updateUpdateIconIcons.cloud_off_outlinedCloudOffIconOur mark is lucide’s wind glyph on a rounded sand tile with a wood outline. make brand:sync draws it from the brand colors into every favicon, the docs header, the app’s launcher icons and the GitHub organization avatar, so don’t edit those images by hand. On the web and in the app’s top bar, the same glyph sits in the round sage bubble.
Where it lives: scripts/build-brand.mjs and src/assets/brand/ here, Wind from lucide-react in the dashboard’s AppShell.jsx and PublicHeader.jsx, and WindGlyph in app/lib/widgets/wind_glyph.dart.
The card on the home screen. The AQI block always shows its band name with the color, so meaning never rides on color alone. Loading keeps the same shape, so nothing jumps when the reading arrives.
32 AQI
Good
-- AQI
No data
340 AQI
Hazardous
Where it lives: MonitorCard in app/lib/widgets/monitor_card.dart, and MonitorCard in the dashboard’s src/components/.
When you open a monitor on the web, the readings sit in two columns of the same height. On the left, the big AQI tile takes three parts and particulates one. On the right, how warm it feels and climate take two parts each. Each reading puts a small icon beside its value, so the number leads, and Feels like gets the biggest number because it has a card to itself. Below them, bubbles with one word each say whether the monitor is online, shared and indoors or out. Hover one for the details. On a narrow screen everything stacks in the same order.
78 AQI
Moderate
While it loads, each piece keeps its place as a soft placeholder:
The app keeps a single column on the phone: the AQI tile, then particulates, how it feels, and climate.
78 AQI
Moderate
Averages over the last hour
Where it lives: on the web, MonitorReadings lays out AqiTile, ParticulatesGroup, FeelsLikeGroup and ClimateGroup from the dashboard’s src/components/readings.jsx, with the DeviceFacts.jsx bubbles underneath. In the app, AqiTile and MetricGroups live in app/lib/widgets/tiles.dart.
Every screen that loads data needs these. Keep them calm: say what’s happening, why it might be, and what to try.
No readings yet
Once your monitor is online and sending data, its readings show up here.
Empty
Loading
We couldn’t load your monitors
It’s usually a brief hiccup. Give it another try in a moment.
Error
Couldn’t refresh. Showing data from 10:42.
Quiet note (stale data)
Where it lives: app/lib/widgets/states.dart and the dashboard’s src/components/states.jsx.
Every signed-in screen, on the web and in the app, shares one calm top bar. It only says where you are; everything else waits in the avatar menu.
The bar, from left to right:
Nothing else goes in the bar. Page actions, like a monitor’s settings, belong on the page itself.
The avatar menu, top to bottom:
Where it lives: AiqAppBar and AccountMenuButton in app/lib/widgets/aiq_app_bar.dart, and AppShell.jsx with AccountMenu.jsx in the dashboard’s src/components/.
make gallery in app/ shows these components with mock data. No sign-in needed.make review in frontend/, then open the Playground link in the review panel.make deploy in frontend/ rebuilds it from both repositories, so the mobile app needs to sit next to frontend/ with Flutter installed.