Design
A view is the HTML an agent writes to show a cell: a weekly review, a meeting debrief, one shift's numbers from a production line. A view cell comes in the house style: Daslab applies one stylesheet, /widget/house.css, and the agent writes plain HTML against it. The agent decides what goes on the page and in what order; the stylesheet decides how it looks, in light and in dark, on a phone and on a desktop. Here is one, rendering live:
The numbers are invented. The frame renders with the stylesheet Daslab applies to views, and when the stylesheet improves, every view in the house style improves the next time it opens.
Views are plain HTML with a few named patterns
Headings, paragraphs, sections, lists and tables need no classes. For the handful of things HTML has no element for, the stylesheet has a name:
| Pattern | What it says |
|---|---|
p.kicker | one short mono line above the h1: what kind of page, and when |
p.dek | the sentence under the h1 that says what the page is for |
dl.stats | headline figures, ONLY when the view is genuinely about numeric KPIs or telemetry (do not force or invent 4 numbers for architectural, research or conceptual views): the number in ink, its label, one line of context. A figure is a number, with at most a short unit in a small; the noun goes in the dt, an id in the kicker, a judgement in a .state on the context line, and two values are two figures |
dl-spark | a figure's history under its number, in its own dd: a line in ink ending on a dot in the accent, or kind="bars" for counts. Give every figure that has a history one, from a cell (cell=, field=, y= for the number in each row) or values= |
figure, video | a photo or video (with poster= for static previews) and an optional figcaption; spans the column and fits the tile automatically |
a.def | beside a figure's label, links to the rule that works it out, an li with that id in a Definitions section at the end. Write the letter i; the house draws the circle |
ul.items | things that each carry a few sentences, like people, sites or cases. A table whose cells are sentences is ul.items |
.state | a status word with a colored dot (.ok .info .warn .alert) — strictly for genuine operational state or health, never as a decorative bullet under every metric or citation |
ol.steps | a numbered sequence |
div.split | two columns side by side that stack on a phone, like a dashboard's two sections; the page widens to hold them |
.wide | a block of your own laid out across, like a board, a grid of cards or a chart: the page widens to hold it, while text keeps its reading measure |
table, td.num | tables are for numbers; td.num right-aligns a figure. A table too wide for a phone stacks by itself, so give it a <thead> and put what names the row first |
.bar | a bar for one value from 0 to 1, usually inside a table cell |
button.primary | the one main action |
form.fields | a form: each field a label holding its input or select; fields wrap into columns, labels above; a p for the hint, label.check for a checkbox, div.actions for the buttons. Style no controls yourself |
h1[data-short] | the headline in a few words, which small and row tiles show instead |
.glance | the block a grid tile starts from, when it should not be the top, like a chart further down; what follows it fills the rest of the tile |
.skeleton | where a value or a block will be until it arrives, so the page opens in its own shape and never on a "Loading…" line: inline a line of text --w wide, .skeleton.block an area --h tall for a chart or a list. Write the page's layout with skeletons in it and replace them as values arrive; on a refetch, keep what is shown |
The weekly review above is a p.kicker and an h1, a p.dek, a dl.stats with three figures, a table of sites using td.num and .bar, a ul.items of open issues with a .state on each, and a footer that says where the numbers came from. Its HTML has no style of its own. It leads with figures because a weekly review is about numbers. A page about a plan, a process or a change has no dl.stats and leads with a drawing of it instead.
A form is a form.fields: each label holds its input or select, every control has the same height, and the fields wrap into columns instead of running off the edge.
Paragraphs, lists and forms keep a reading measure of 48rem. Two sections side by side go in a div.split, which stacks on a phone, and a board or a grid of the view's own is marked .wide. A page with either one, or a table of five columns or more, widens on a desktop to 80rem to hold it.
Type, color and spacing follow the same rules in every view in the house style
- Hierarchy comes from size and weight, in sentence case; nothing is set in capitals.
- Space separates sections, and one hairline marks where a new one starts. No box around every block, no shadows, no gradients.
- Color marks state, as a dot beside a word. Figures stay in the text color.
- The accent is for links, the one main action and a single data series.
- Mono is for ids, code and times, and for the line saying where the data is from, which goes last.
- A view reads on a phone and on a desktop, in light and in dark, without setting its own width and without scrolling sideways. Text keeps a reading measure either way. A <main> is something to work in and takes the desktop's width; an <article> is something to read (a brief, a memo, a report in prose) and stays one centred column, widening only for a split, a wide table or a .wide block. On a phone a table too wide for the screen stacks into one block per row.
- On the scene grid a view is a tile that never scrolls: it shows the whole blocks that fit from the top, or from the ones marked .glance, and opened it scrolls in full. So the answer comes first, and text is never cut short with an ellipsis.
- A page shows what it is about when that can be seen: a place or a route on a map, a series as a chart, a venue, a product or a person in a photo. It comes right after the figures, so the tile ends on it, running to the tile's edges.
Each one answers something agents did when they designed views on their own: capitals on every label, a box around every number, a different color for each figure, and a page that stayed dark when the viewer had chosen light.
On the grid, a view shows its face
A cell on the scene grid is a tile, 358 by 408 pixels at its largest on a phone and 550 by 408 on a desktop, and a tile never scrolls. So the top of the page is its face, and the agent designs it to show what this cell is about: a change to a rota as the rota drawn, a route on a map, a series as a chart, a venue in a photo, a weekly review as its figures. A short title and then the picture, so most of the tile is the picture. A grid where every tile is a title over four numbers and green dots says nothing until you open each one.
The house fits the face to the tile. It keeps whole blocks from the top and hides the rest, so a line is never cut in half and nothing ends in an ellipsis. Figures, a list or a table that only partly fit keep the items that do. A drawing, a chart, a map, a photo or a video takes the room that is left, and the dek and then the kicker give way to it. A photo, a video or a map runs to the tile's edges; a chart keeps its margins for the axes. A small tile shows one figure, or the title when there are none. Open the cell and the whole page scrolls.
A phone's scene grid in one invented brand. The large tile is a page about a change to a rota, so its face is the rota drawn; the medium one is a weekly review, so its face is the figures. The small tiles and the row show one figure, one line and a title.
The agent writes one page for both places. It gives the headline a short version in data-short for small tiles and rows. When the block the tile should show sits further down, it marks that block .glance and the face starts there. When the face needs a layout of its own, the page takes <main data-tile="own"> and styles the tile itself: the house steps aside, and the page decides what shows. A snapshot of the view shows the agent the face on a phone and on a desktop. Every tile's title starts on the same line, so a row of views lines up, and a link to the cell unfurls to the same face.
A view prints like a report
Print a view, or save it as a PDF, and it comes out on light paper whatever the reader works in, with page margins, the page number at the bottom of each page and, when the brand has a name, that name at the top. Headings stay with what follows, a table's rows never split across pages, and its header repeats on each one. Buttons and forms stay on the screen.
Download PDF, in any cell's ⋯ menu, prints it the same way, with nothing to learn beyond standard print CSS. The page knows from its first script that it is being printed, from matchMedia('print'), so a dashboard that shows one tab on screen can lay out every tab on paper. While it is still drawing, it says so with aria-busy="true", and the printing waits.
A brand sets the colors, the faces and the corners
The rules stay; the brand fills in the rest. Set on the workspace, a brand covers every scene in it; set on a scene, that scene's own wins. In Settings, Design starts from what you already have: your website, socials and other links, and any logos, brand guide or screenshots you add. A model reads all of it and drafts the brand, and nothing changes until you save. While you edit, the preview shows the brand on a scene's grid of example cells, on one cell opened, and on the link someone gets when you share it. You can also tell the agent your colors and fonts. The fields:
| Field | What it sets |
|---|---|
nametext | the name it goes by |
taglinetext | one line under the name |
voicetext | how its copy sounds, in a few words |
websiteURL | its website |
linksURLs | socials and other pages that speak for it |
logo{ light, dark, mark } URLs | the logo on light and dark grounds, and a square mark |
logoOnSharetrue or false | the logo on share pages, PDFs and link previews, in place of Daslab's (paid plans) |
preview{ cell: closer|signature, scene: board|fan, view } | how a link to a cell or a scene previews in chat apps; view names a view in the world that draws previews instead, at 1200×630 |
basepaper, white, stone or dark | the ground every color is read against; dark keeps views dark for every viewer |
accent#hex | links, the main action and one data series; its dark variant is derived |
displayface or font list | the face for titles and headline figures: Inter, Archivo, Fraunces, IBM Plex Sans, Cormorant Garamond, Space Grotesk or Instrument Serif |
textface or font list | the face for everything else: Inter, IBM Plex Sans, DM Sans or Source Sans 3 |
radius0 to 24 | corner radius in px: 0 square, 8 soft, 14 round |
fontsURL | a fonts.googleapis.com/css2 link for a face outside the list |
The grays, hairlines and panel colors are mixed from the ground and the ink, so any pair you pick holds together in light and in dark. Unless a brand says otherwise, a view in dark sits on the same ground as the app's own cells. The dark accent is derived from yours, and an accent that is hard to read on its ground is flagged with the nearest shade that reads. Exact colors and type settings are there for anyone who needs them. The same view in four invented brands:
Northside Clubs a wide heavy grotesk, cool white, ember, soft corners.
Halden Clinics soft serif titles, mint-white, deep teal, rounded.
Kessler Werk IBM Plex throughout, concrete grey, cobalt, almost square.
Maison Arlo Garamond titles, cream and espresso, terracotta, print-flat.
Agents are told what this page says, and held to it
Every job carries a short design brief: start from the patterns, bring no palette or fonts, lead with the answer and show it. The tool that writes views lists every pattern on this page, from the same source this page is generated from.
The write holds the ground itself. A view in the house style is not written when it sets its own background, ink, font or page width on html, body, :root or main, strips the house's spacing with a * reset, gives one of the house's custom properties a value of its own, or brings a palette that holds only in light or only in dark. Neither is a page in utility classes that no stylesheet here defines, since they would style nothing. The refusal names each rule and hands the agent the whole visual language, so a model that never read it has it in the turn it draws. An edit is held only to what it adds, so a view drawn before these checks can still be edited.
Smaller drifts are written and come back with a note naming each one: labels in capitals, a font of its own on an element, more than four hex colors, form controls styled by hand, words where a figure goes, emoji used as marks. The agent fixes what was habit in the same job and keeps what it chose on purpose, like an illustration's own colors.
Every write is also rendered at a phone's width, 390 pixels, and so is every edit to a view in the house style. When something would make a reader scroll sideways, a fixed grid, a minimum width, a row that will not wrap, the result says which block and by how much.
The rules held on three models
We gave three tasks to Gemini 3.8 Flash, DeepSeek V4.1 Flash and Gemini 4 Argon: a meeting debrief from notes, a weekly review for four gyms, and one shift's numbers from a cable line. Then we rendered every view the jobs wrote.
| Brief | Views | Linked the stylesheet | Set labels in capitals | Own colors, median |
|---|---|---|---|---|
| Before the stylesheet | 13 | 0 | 13 | 19 |
| With the stylesheet | 23 | 22 | 1 | 0 |
The one view that ignored it came from a DeepSeek run, which wrote its own palette from scratch. Since then Daslab applies the stylesheet itself, so an agent no longer has to remember a link. On the next eight jobs, Gemini 3.8 Flash and DeepSeek V4.1 Flash kept all six reports in the house style, none with capitals or colors of its own, and made both party posters with a style of their own.
A cell can have a look of its own
The house keeps the ground every view stands on: the brand's colors and faces, the viewer's light or dark, the width on a phone and on a desktop, the tile on the grid. The rest is a default. The patterns are where a page starts, not a template, and the quiet look comes with its reasons, so an agent can depart from it when the design has one: a soft gradient so a title reads over a photo, the colors a chart needs to tell its series apart.
Some views should not look like a report at all: a poster for a party, an invitation, a game, a story told in photos, a page in a client's own brand. The agent makes those cells with the style own, a full canvas. Then Daslab applies nothing and checks nothing, and the page is exactly what the agent wrote. A report or a dashboard can be own too, when you want it to look like something else; ask for a look of its own and the agent takes the canvas.
A view in the house style can still bring its own CSS
The stylesheet sits in a cascade layer, so any rule a view writes wins over it. A diagram, a chart, a comparison or a board is the view's to draw in CSS of its own, with the stylesheet's colors:
var(--text) var(--text-secondary) var(--text-dim) var(--border) var(--bg-surface) var(--accent) var(--ok) var(--info) var(--warn) var(--alert)
Drawn with these, it follows the brand and the viewer's light or dark with everything else. The rota on the large tile above is one: an SVG and a dozen lines of CSS, every color a token. How wide the text and the page run is the view's to set too, and a view that sets --measure or --page for itself keeps it. The ground is the exception, as above.
Updated 2026-11-14