Skip to content

Visual playground

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.

Color roles

RoleLightDark
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

Brand and illustration

accent
sage
ink
sand
wood
highlight

AQI bands

32 Good78 Moderate128 Slightly Unhealthy172 Unhealthy240 Very Unhealthy340 Hazardous-- Unknown

Radius and shadow

sm8px
md12px
lg16px
xl20px
card24px
sheet28px

The 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.

pm25Icons.grainPm25Icon
pm1Icons.bubble_chart_outlinedPm1Icon
pm10Icons.blur_onPm10Icon
feelsLikeIcons.wb_sunny_outlinedFeelsLikeIcon
temperatureIcons.thermostat_outlinedTemperatureIcon
humidityIcons.water_drop_outlinedHumidityIcon
outdoorIcons.park_outlinedOutdoorIcon
indoorIcons.home_outlinedIndoorIcon
onlineIcons.wifiOnlineIcon
offlineIcons.wifi_offOfflineIcon
publicIcons.publicPublicIcon
privateIcons.lock_outlinePrivateIcon
updateIcons.system_updateUpdateIcon
cloudOffIcons.cloud_off_outlinedCloudOffIcon

Our 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.

Back garden

2m ago

32 AQI

Good

  • 22.4 °CTemperature
  • 5.8 µg/m³PM2.5

Kitchen

New sensor

--m ago

-- AQI

No data

  • -- °CTemperature
  • -- µg/m³PM2.5

Ridge lookout

3h ago

340 AQI

Hazardous

  • 22.4 °CTemperature
  • 61.8 µg/m³PM2.5

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

PM2.523.8 µg/m³
PM116.2 µg/m³
PM1033.8 µg/m³
22.7 °CFeels like
22.1 °CTemperature
46 %Humidity

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

23.8 µg/m³PM2.5
16.2 µg/m³PM1
33.8 µg/m³PM10
Feels like22.7 °C
22.1 °CTemperature
46 %Humidity

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

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:

  1. A round back button, or the Open AIQ wind mark on the first screen.
  2. The title, with an optional subtitle such as the monitor’s name.
  3. An optional status chip, such as an update badge.
  4. Your avatar, which opens the menu.

Nothing else goes in the bar. Page actions, like a monitor’s settings, belong on the page itself.

The avatar menu, top to bottom:

  1. Your name and email.
  2. Theme: System, Light or Dark as a small row of icons. Picking one keeps the menu open, so you can see the change.
  3. Settings in the app, or Manage account on the web. Both lead to your account page: your username, how you sign in, and deleting your account.
  4. Docs and Public map. The web also links View code and the Prototype.
  5. Sign out, which asks first.

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/.

  • Mobile app: make gallery in app/ shows these components with mock data. No sign-in needed.
  • Web dashboard: make review in frontend/, then open the Playground link in the review panel.
  • Both, hosted: the prototype is these two builds side by side, with a Screen menu for every page and app screen. make deploy in frontend/ rebuilds it from both repositories, so the mobile app needs to sit next to frontend/ with Flutter installed.