Golden Examples

Device-approved reference layouts from packages/sdk/goldens/. Each example includes a live preview plus layout file JSON and sample content JSON — both are always in the HTML source for agents and crawlers.

Previews use the same React renderer as the layout editor. Layout and content JSON below are server-rendered in this page — no JavaScript required to read them. Adapt these patterns to your data; do not copy bindings verbatim unless they match your integration fields. Sample content may reference integrations not yet available on iOS (e.g. Meta Ads) — use those examples as layout references only. S1–L2 are composition. v2-* teach mapping, calendar, chart, grid, table, views, and in-place reveal. The Mission Control live preview can tap the bottom nav; the vocab card preview can tap to reveal. Discover tiles stay on home.

Composition

s1-glance-kpi

small

Golden S1 — Glance KPI

Instagram-style gradient + username + two stacked KPI metrics + brand icon footer.

Adapt when: Social/account KPIs, branded small metrics

Live preview

Loading preview…

small · 170×170 pt · same renderer as the web console layout editor

Layout file JSONMatches packages/sdk/goldens/{id}.json — paste the tree into the Glance layout editor or give this file to your coding agent.
{
  "name": "Golden S1 — Glance KPI",
  "widgetSize": "small",
  "description": "Instagram-style gradient + username + two stacked KPI metrics + brand icon footer.",
  "tree": {
    "id": "root",
    "type": "gradient",
    "style": {
      "type": "linear",
      "startColor": "#833AB4",
      "endColor": "#F77737",
      "angle": 135,
      "padding": 12
    },
    "children": [
      {
        "id": "main",
        "type": "container",
        "layout": "vertical",
        "style": {
          "spacing": 2,
          "alignment": "leading"
        },
        "children": [
          {
            "id": "username",
            "type": "text",
            "binding": "{{username}}",
            "style": {
              "fontSize": 12,
              "fontWeight": "semibold",
              "color": "#FFFFFF",
              "maxLines": 1
            }
          },
          {
            "id": "username_gap",
            "type": "spacer",
            "style": {
              "minLength": 3
            }
          },
          {
            "id": "metrics_group",
            "type": "container",
            "layout": "vertical",
            "style": {
              "spacing": 2
            },
            "children": [
              {
                "id": "profile_block",
                "type": "container",
                "layout": "vertical",
                "style": {
                  "spacing": 2
                },
                "children": [
                  {
                    "id": "profile_caption",
                    "type": "text",
                    "binding": "Profile views today",
                    "style": {
                      "fontSize": 11,
                      "fontWeight": "medium",
                      "color": "#FFE8F5",
                      "maxLines": 1
                    }
                  },
                  {
                    "id": "profile_value",
                    "type": "stat",
                    "value": "{{profile_views_value}}",
                    "style": {
                      "valueFontSize": 25,
                      "color": "#FFFFFF",
                      "alignment": "leading"
                    }
                  }
                ]
              },
              {
                "id": "post_block",
                "type": "container",
                "layout": "vertical",
                "style": {
                  "spacing": 2
                },
                "children": [
                  {
                    "id": "post_caption",
                    "type": "text",
                    "binding": "Post views today",
                    "style": {
                      "fontSize": 11,
                      "fontWeight": "medium",
                      "color": "#FFE8F5",
                      "maxLines": 1
                    }
                  },
                  {
                    "id": "post_value",
                    "type": "stat",
                    "value": "{{post_views_value}}",
                    "style": {
                      "valueFontSize": 25,
                      "color": "#FFFFFF",
                      "alignment": "leading"
                    }
                  }
                ]
              }
            ]
          },
          {
            "id": "footer_push",
            "type": "spacer",
            "style": {
              "flex": 1
            }
          },
          {
            "id": "footer",
            "type": "container",
            "layout": "horizontal",
            "style": {
              "alignment": "trailing"
            },
            "children": [
              {
                "id": "footer_spacer",
                "type": "spacer",
                "style": {
                  "flex": 1
                }
              },
              {
                "id": "brand_icon",
                "type": "image",
                "binding": "/brand-icons/instagram.png",
                "style": {
                  "width": 18,
                  "height": 18,
                  "contentMode": "fit"
                }
              }
            ]
          }
        ]
      }
    ]
  }
}
Sample content JSONMatches packages/sdk/goldens/{id}-content.json — example values for every dynamic {{binding}} in the layout.
{
  "username": "@glance.cool",
  "profile_views_value": 57,
  "post_views_value": 23
}

s2-glance-media

small

Golden S2 — Media Glance

White card with section label, title, centered thumbnail, and caption preview. Reference for small media widgets.

Adapt when: Latest post, video, or article thumbnails

Live preview

Loading preview…

small · 170×170 pt · same renderer as the web console layout editor

Layout file JSONMatches packages/sdk/goldens/{id}.json — paste the tree into the Glance layout editor or give this file to your coding agent.
{
  "name": "Golden S2 — Media Glance",
  "widgetSize": "small",
  "description": "White card with section label, title, centered thumbnail, and caption preview. Reference for small media widgets.",
  "tree": {
    "id": "root",
    "type": "container",
    "layout": "vertical",
    "style": {
      "padding": 12,
      "spacing": 2,
      "alignment": "leading",
      "background": "#FFFFFF"
    },
    "children": [
      {
        "id": "section_label",
        "type": "text",
        "binding": "Latest video",
        "style": {
          "fontSize": 12,
          "fontWeight": "medium",
          "color": "#8E8E93",
          "maxLines": 1
        }
      },
      {
        "id": "title",
        "type": "text",
        "binding": "{{title}}",
        "style": {
          "fontSize": 14,
          "fontWeight": "semibold",
          "maxLines": 1
        }
      },
      {
        "id": "title_image_gap",
        "type": "spacer",
        "style": {
          "minLength": 5
        }
      },
      {
        "id": "image_frame",
        "type": "container",
        "layout": "horizontal",
        "style": {
          "alignment": "center"
        },
        "children": [
          {
            "id": "thumbnail",
            "type": "image",
            "binding": "{{thumbnail_url}}",
            "style": {
              "width": 60,
              "height": 60,
              "cornerRadius": 12,
              "contentMode": "fill"
            }
          }
        ]
      },
      {
        "id": "image_caption_gap",
        "type": "spacer",
        "style": {
          "minLength": 7
        }
      },
      {
        "id": "caption",
        "type": "text",
        "binding": "{{caption}}",
        "style": {
          "fontSize": 11,
          "color": "#8E8E93",
          "maxLines": 2
        }
      }
    ]
  }
}
Sample content JSONMatches packages/sdk/goldens/{id}-content.json — example values for every dynamic {{binding}} in the layout.
{
  "thumbnail_url": "/samples/media-thumbnail.jpg",
  "title": "How we built Glance widgets",
  "caption": "Design system walkthrough and live preview workflow."
}

m1-split-strip

medium

Golden M1 — Split Strip

Horizontal split: title + subtitle column on the left, hero stat on the right. Reference for medium dashboard strips.

Adapt when: Single headline metric strips (monitoring, uptime)

Live preview

Loading preview…

medium · 364×170 pt · same renderer as the web console layout editor

Layout file JSONMatches packages/sdk/goldens/{id}.json — paste the tree into the Glance layout editor or give this file to your coding agent.
{
  "name": "Golden M1 — Split Strip",
  "widgetSize": "medium",
  "description": "Horizontal split: title + subtitle column on the left, hero stat on the right. Reference for medium dashboard strips.",
  "tree": {
    "id": "root",
    "type": "container",
    "layout": "vertical",
    "style": {
      "padding": 12,
      "alignment": "leading",
      "background": "#FFFFFF"
    },
    "children": [
      {
        "id": "main_row",
        "type": "container",
        "layout": "horizontal",
        "style": {
          "spacing": 12,
          "alignment": "center",
          "flex": 1
        },
        "children": [
          {
            "id": "text_column",
            "type": "container",
            "layout": "vertical",
            "style": {
              "spacing": 4,
              "flex": 1
            },
            "children": [
              {
                "id": "section_label",
                "type": "text",
                "binding": "Widget monitor",
                "style": {
                  "fontSize": 12,
                  "fontWeight": "medium",
                  "color": "#8E8E93",
                  "maxLines": 1
                }
              },
              {
                "id": "title",
                "type": "text",
                "binding": "Successful updates",
                "style": {
                  "fontSize": 16,
                  "fontWeight": "semibold",
                  "maxLines": 1
                }
              },
              {
                "id": "subtitle",
                "type": "text",
                "binding": "Glance backend · rolling 24h window",
                "style": {
                  "fontSize": 13,
                  "color": "#8E8E93",
                  "maxLines": 2
                }
              }
            ]
          },
          {
            "id": "hero_block",
            "type": "container",
            "layout": "vertical",
            "style": {
              "alignment": "trailing",
              "spacing": 2
            },
            "children": [
              {
                "id": "hero_stat",
                "type": "stat",
                "value": "{{hero_value}}",
                "style": {
                  "valueFontSize": 40,
                  "color": "#007AFF",
                  "alignment": "trailing"
                }
              }
            ]
          }
        ]
      }
    ]
  }
}
Sample content JSONMatches packages/sdk/goldens/{id}-content.json — example values for every dynamic {{binding}} in the layout.
{
  "hero_value": 554
}

m2-multi-source

medium

Golden M2 — Multi-Source Dashboard

Multi-source medium layout: CoreMotion steps/distance (left), Meta Ads spend (top-right), Google Calendar next 2 events (bottom-right). Reference for combining device + cloud + Meta sources.

Adapt when: Multi-integration dashboards (device + cloud)

Live preview

Loading preview…

medium · 364×170 pt · same renderer as the web console layout editor

Layout file JSONMatches packages/sdk/goldens/{id}.json — paste the tree into the Glance layout editor or give this file to your coding agent.
{
  "name": "Golden M2 — Multi-Source Dashboard",
  "widgetSize": "medium",
  "description": "Multi-source medium layout: CoreMotion steps/distance (left), Meta Ads spend (top-right), Google Calendar next 2 events (bottom-right). Reference for combining device + cloud + Meta sources.",
  "tree": {
    "id": "root",
    "type": "container",
    "layout": "horizontal",
    "style": {
      "padding": 12,
      "spacing": 10,
      "alignment": "stretch",
      "background": "#FFFFFF"
    },
    "children": [
      {
        "id": "motion_panel",
        "type": "container",
        "layout": "vertical",
        "style": {
          "width": 88,
          "background": "#F2F2F7",
          "cornerRadius": 10,
          "padding": 8,
          "spacing": 4,
          "alignment": "leading"
        },
        "children": [
          {
            "id": "motion_label",
            "type": "text",
            "binding": "Activity",
            "style": {
              "fontSize": 10,
              "fontWeight": "semibold",
              "color": "#8E8E93",
              "maxLines": 1
            }
          },
          {
            "id": "steps_value",
            "type": "text",
            "binding": "{{steps_today_fmt}}",
            "style": {
              "fontSize": 22,
              "fontWeight": "bold",
              "color": "#FF9500",
              "maxLines": 1
            }
          },
          {
            "id": "steps_caption",
            "type": "text",
            "binding": "Steps",
            "style": {
              "fontSize": 10,
              "color": "#8E8E93",
              "maxLines": 1
            }
          },
          {
            "id": "motion_divider",
            "type": "divider",
            "style": {
              "color": "#E5E5EA",
              "thickness": 1
            }
          },
          {
            "id": "distance_value",
            "type": "text",
            "binding": "{{distance_today}}",
            "style": {
              "fontSize": 13,
              "fontWeight": "semibold",
              "maxLines": 1
            }
          },
          {
            "id": "distance_caption",
            "type": "text",
            "binding": "Distance",
            "style": {
              "fontSize": 10,
              "color": "#8E8E93",
              "maxLines": 1
            }
          }
        ]
      },
      {
        "id": "insights_panel",
        "type": "container",
        "layout": "vertical",
        "style": {
          "spacing": 4,
          "flex": 1
        },
        "children": [
          {
            "id": "spend_card",
            "type": "container",
            "layout": "horizontal",
            "style": {
              "background": "#F2F2F7",
              "cornerRadius": 10,
              "padding": 6,
              "spacing": 8,
              "alignment": "leading"
            },
            "children": [
              {
                "id": "spend_labels",
                "type": "container",
                "layout": "vertical",
                "style": {
                  "spacing": 2
                },
                "children": [
                  {
                    "id": "spend_title",
                    "type": "text",
                    "binding": "Spend today",
                    "style": {
                      "fontSize": 11,
                      "fontWeight": "semibold",
                      "color": "#8E8E93",
                      "maxLines": 1
                    }
                  },
                  {
                    "id": "spend_source",
                    "type": "text",
                    "binding": "Meta Ads",
                    "style": {
                      "fontSize": 10,
                      "color": "#AEAEB2",
                      "maxLines": 1
                    }
                  }
                ]
              },
              {
                "id": "spend_value",
                "type": "text",
                "binding": "{{ads_spend_today_fmt}}",
                "style": {
                  "fontSize": 20,
                  "fontWeight": "bold",
                  "color": "#1877F2",
                  "maxLines": 1
                }
              }
            ]
          },
          {
            "id": "events_card",
            "type": "container",
            "layout": "vertical",
            "style": {
              "flex": 1,
              "background": "#F8F9FA",
              "cornerRadius": 10,
              "padding": 6,
              "spacing": 3
            },
            "children": [
              {
                "id": "events_header",
                "type": "text",
                "binding": "Up next",
                "style": {
                  "fontSize": 11,
                  "fontWeight": "semibold",
                  "color": "#8E8E93",
                  "maxLines": 1
                }
              },
              {
                "id": "event_1_row",
                "type": "container",
                "layout": "horizontal",
                "style": {
                  "spacing": 8,
                  "alignment": "center"
                },
                "children": [
                  {
                    "id": "event_1_bar",
                    "type": "container",
                    "layout": "vertical",
                    "style": {
                      "width": 4,
                      "height": 26,
                      "background": "#4285F4",
                      "cornerRadius": 2
                    },
                    "children": []
                  },
                  {
                    "id": "event_1_text",
                    "type": "container",
                    "layout": "vertical",
                    "style": {
                      "spacing": 1,
                      "flex": 1
                    },
                    "children": [
                      {
                        "id": "event_1_title",
                        "type": "text",
                        "binding": "{{event_1_title}}",
                        "style": {
                          "fontSize": 13,
                          "fontWeight": "semibold",
                          "maxLines": 1
                        }
                      },
                      {
                        "id": "event_1_meta",
                        "type": "text",
                        "binding": "{{event_1_time}}",
                        "style": {
                          "fontSize": 11,
                          "color": "#8E8E93",
                          "maxLines": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "event_1_calendar",
                    "type": "badge",
                    "binding": "{{event_1_calendar}}",
                    "style": {
                      "backgroundColor": "#E8F0FE",
                      "color": "#1967D2",
                      "fontSize": 9,
                      "cornerRadius": 4,
                      "padding": 3
                    }
                  }
                ]
              },
              {
                "id": "event_2_row",
                "type": "container",
                "layout": "horizontal",
                "style": {
                  "spacing": 8,
                  "alignment": "center"
                },
                "children": [
                  {
                    "id": "event_2_bar",
                    "type": "container",
                    "layout": "vertical",
                    "style": {
                      "width": 4,
                      "height": 26,
                      "background": "#34A853",
                      "cornerRadius": 2
                    },
                    "children": []
                  },
                  {
                    "id": "event_2_text",
                    "type": "container",
                    "layout": "vertical",
                    "style": {
                      "spacing": 1,
                      "flex": 1
                    },
                    "children": [
                      {
                        "id": "event_2_title",
                        "type": "text",
                        "binding": "{{event_2_title}}",
                        "style": {
                          "fontSize": 13,
                          "fontWeight": "semibold",
                          "maxLines": 1
                        }
                      },
                      {
                        "id": "event_2_meta",
                        "type": "text",
                        "binding": "{{event_2_time}}",
                        "style": {
                          "fontSize": 11,
                          "color": "#8E8E93",
                          "maxLines": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "event_2_calendar",
                    "type": "badge",
                    "binding": "{{event_2_calendar}}",
                    "style": {
                      "backgroundColor": "#E6F4EA",
                      "color": "#137333",
                      "fontSize": 9,
                      "cornerRadius": 4,
                      "padding": 3
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}
Sample content JSONMatches packages/sdk/goldens/{id}-content.json — example values for every dynamic {{binding}} in the layout.
{
  "steps_today_fmt": "8,432",
  "distance_today": "4.2 mi",
  "ads_spend_today_fmt": "$127.40",
  "event_1_title": "Team standup",
  "event_1_time": "2:00 PM",
  "event_1_calendar": "Work",
  "event_2_title": "Design review",
  "event_2_time": "4:30 PM",
  "event_2_calendar": "Glance"
}

l1-app-performance

large

Golden L1 — App Performance Board

Dark-themed custom automation dashboard: four KPI rings (revenue, leads, churn, new users) each with its own vibrant goal-progress color, plus an overall quarterly target bar. Shows that users can build business widgets from their own data tree — no built-in connector branding.

Adapt when: Business metrics with goal progress

Live preview

Loading preview…

large · 364×382 pt · same renderer as the web console layout editor

Layout file JSONMatches packages/sdk/goldens/{id}.json — paste the tree into the Glance layout editor or give this file to your coding agent.
{
  "name": "Golden L1 — App Performance Board",
  "widgetSize": "large",
  "description": "Dark-themed custom automation dashboard: four KPI rings (revenue, leads, churn, new users) each with its own vibrant goal-progress color, plus an overall quarterly target bar. Shows that users can build business widgets from their own data tree — no built-in connector branding.",
  "tree": {
    "id": "root",
    "type": "container",
    "layout": "vertical",
    "style": {
      "padding": 12,
      "spacing": 8,
      "alignment": "leading",
      "background": "#1C1C1E"
    },
    "children": [
      {
        "id": "header",
        "type": "container",
        "layout": "vertical",
        "style": {
          "spacing": 2
        },
        "children": [
          {
            "id": "title",
            "type": "text",
            "binding": "App Performance Today",
            "style": {
              "fontSize": 17,
              "fontWeight": "semibold",
              "color": "#FFFFFF",
              "maxLines": 1
            }
          },
          {
            "id": "subtitle",
            "type": "text",
            "binding": "Custom pipeline · Today",
            "style": {
              "fontSize": 11,
              "color": "#98989D",
              "maxLines": 1
            }
          }
        ]
      },
      {
        "id": "metrics_row_1",
        "type": "container",
        "layout": "horizontal",
        "style": {
          "spacing": 12,
          "alignment": "center"
        },
        "children": [
          {
            "id": "revenue_metric",
            "type": "container",
            "layout": "vertical",
            "style": {
              "spacing": 6,
              "alignment": "center",
              "width": 152
            },
            "children": [
              {
                "id": "revenue_ring",
                "type": "container",
                "layout": "z-stack",
                "style": {
                  "width": 82,
                  "height": 82,
                  "alignment": "center"
                },
                "children": [
                  {
                    "id": "revenue_progress_ring",
                    "type": "circular_progress",
                    "binding": "{{revenue_progress}}",
                    "style": {
                      "size": 70,
                      "lineWidth": 5,
                      "trackColor": "#3A3A3C",
                      "fillColor": "#FFD60A"
                    }
                  },
                  {
                    "id": "revenue_value_layer",
                    "type": "container",
                    "layout": "vertical",
                    "style": {
                      "alignment": "center"
                    },
                    "children": [
                      {
                        "id": "revenue_value",
                        "type": "text",
                        "binding": "{{revenue_fmt}}",
                        "style": {
                          "fontSize": 13,
                          "fontWeight": "bold",
                          "color": "#FFFFFF",
                          "maxLines": 1,
                          "alignment": "center"
                        }
                      }
                    ]
                  }
                ]
              },
              {
                "id": "revenue_label",
                "type": "text",
                "binding": "Revenue",
                "style": {
                  "fontSize": 11,
                  "color": "#FFD60A",
                  "maxLines": 1,
                  "alignment": "center"
                }
              }
            ]
          },
          {
            "id": "leads_metric",
            "type": "container",
            "layout": "vertical",
            "style": {
              "spacing": 6,
              "alignment": "center",
              "width": 152
            },
            "children": [
              {
                "id": "leads_ring",
                "type": "container",
                "layout": "z-stack",
                "style": {
                  "width": 82,
                  "height": 82,
                  "alignment": "center"
                },
                "children": [
                  {
                    "id": "leads_progress_ring",
                    "type": "circular_progress",
                    "binding": "{{leads_progress}}",
                    "style": {
                      "size": 70,
                      "lineWidth": 5,
                      "trackColor": "#3A3A3C",
                      "fillColor": "#FF6482"
                    }
                  },
                  {
                    "id": "leads_value_layer",
                    "type": "container",
                    "layout": "vertical",
                    "style": {
                      "alignment": "center"
                    },
                    "children": [
                      {
                        "id": "leads_value",
                        "type": "text",
                        "binding": "{{leads_fmt}}",
                        "style": {
                          "fontSize": 13,
                          "fontWeight": "bold",
                          "color": "#FFFFFF",
                          "maxLines": 1,
                          "alignment": "center"
                        }
                      }
                    ]
                  }
                ]
              },
              {
                "id": "leads_label",
                "type": "text",
                "binding": "Leads",
                "style": {
                  "fontSize": 11,
                  "color": "#FF6482",
                  "maxLines": 1,
                  "alignment": "center"
                }
              }
            ]
          }
        ]
      },
      {
        "id": "metrics_row_2",
        "type": "container",
        "layout": "horizontal",
        "style": {
          "spacing": 12,
          "alignment": "center"
        },
        "children": [
          {
            "id": "churn_metric",
            "type": "container",
            "layout": "vertical",
            "style": {
              "spacing": 6,
              "alignment": "center",
              "width": 152
            },
            "children": [
              {
                "id": "churn_ring",
                "type": "container",
                "layout": "z-stack",
                "style": {
                  "width": 82,
                  "height": 82,
                  "alignment": "center"
                },
                "children": [
                  {
                    "id": "churn_progress_ring",
                    "type": "circular_progress",
                    "binding": "{{churn_progress}}",
                    "style": {
                      "size": 70,
                      "lineWidth": 5,
                      "trackColor": "#3A3A3C",
                      "fillColor": "#30D158"
                    }
                  },
                  {
                    "id": "churn_value_layer",
                    "type": "container",
                    "layout": "vertical",
                    "style": {
                      "alignment": "center"
                    },
                    "children": [
                      {
                        "id": "churn_value",
                        "type": "text",
                        "binding": "{{churn_fmt}}",
                        "style": {
                          "fontSize": 13,
                          "fontWeight": "bold",
                          "color": "#FFFFFF",
                          "maxLines": 1,
                          "alignment": "center"
                        }
                      }
                    ]
                  }
                ]
              },
              {
                "id": "churn_label",
                "type": "text",
                "binding": "Churn",
                "style": {
                  "fontSize": 11,
                  "color": "#30D158",
                  "maxLines": 1,
                  "alignment": "center"
                }
              }
            ]
          },
          {
            "id": "new_users_metric",
            "type": "container",
            "layout": "vertical",
            "style": {
              "spacing": 6,
              "alignment": "center",
              "width": 152
            },
            "children": [
              {
                "id": "new_users_ring",
                "type": "container",
                "layout": "z-stack",
                "style": {
                  "width": 82,
                  "height": 82,
                  "alignment": "center"
                },
                "children": [
                  {
                    "id": "new_users_progress_ring",
                    "type": "circular_progress",
                    "binding": "{{new_users_progress}}",
                    "style": {
                      "size": 70,
                      "lineWidth": 5,
                      "trackColor": "#3A3A3C",
                      "fillColor": "#5E5CE6"
                    }
                  },
                  {
                    "id": "new_users_value_layer",
                    "type": "container",
                    "layout": "vertical",
                    "style": {
                      "alignment": "center"
                    },
                    "children": [
                      {
                        "id": "new_users_value",
                        "type": "text",
                        "binding": "{{new_users_fmt}}",
                        "style": {
                          "fontSize": 13,
                          "fontWeight": "bold",
                          "color": "#FFFFFF",
                          "maxLines": 1,
                          "alignment": "center"
                        }
                      }
                    ]
                  }
                ]
              },
              {
                "id": "new_users_label",
                "type": "text",
                "binding": "New users",
                "style": {
                  "fontSize": 11,
                  "color": "#5E5CE6",
                  "maxLines": 1,
                  "alignment": "center"
                }
              }
            ]
          }
        ]
      },
      {
        "id": "overall_goal_section",
        "type": "container",
        "layout": "vertical",
        "style": {
          "spacing": 4,
          "background": "#2C2C2E",
          "cornerRadius": 10,
          "padding": 8
        },
        "children": [
          {
            "id": "overall_goal_header",
            "type": "text",
            "binding": "Quarterly target",
            "style": {
              "fontSize": 12,
              "fontWeight": "semibold",
              "color": "#FFFFFF",
              "maxLines": 1
            }
          },
          {
            "id": "overall_progress",
            "type": "progress_bar",
            "binding": "{{overall_progress}}",
            "style": {
              "height": 8,
              "trackColor": "#3A3A3C",
              "fillColor": "#00D4FF",
              "cornerRadius": 4
            }
          },
          {
            "id": "overall_goal_caption",
            "type": "text",
            "binding": "{{overall_goal_caption}}",
            "style": {
              "fontSize": 10,
              "color": "#98989D",
              "maxLines": 1
            }
          },
          {
            "id": "updated_at",
            "type": "relative_time",
            "binding": "{{updated_at}}",
            "style": {
              "fontSize": 10,
              "color": "#636366"
            }
          }
        ]
      }
    ]
  }
}
Sample content JSONMatches packages/sdk/goldens/{id}-content.json — example values for every dynamic {{binding}} in the layout.
{
  "revenue_fmt": "$4.2K",
  "revenue_progress": 0.84,
  "leads_fmt": "47",
  "leads_progress": 0.78,
  "churn_fmt": "2.1%",
  "churn_progress": 0.92,
  "new_users_fmt": "128",
  "new_users_progress": 0.64,
  "overall_progress": 0.68,
  "overall_goal_caption": "On track for Q3 goal",
  "updated_at": "2026-07-09T11:28:00Z"
}

l2-outfit-of-the-day

large

Golden L2 — Outfit of the Day

Playful creator commerce layout: hero outfit photo (left) + four shoppable item rows (right) with bag icon tap targets. Teaches image + list + href containers and colorful branded widgets beyond connector defaults.

Adapt when: Creator commerce, product lists, playful layouts

Live preview

Loading preview…

large · 364×382 pt · same renderer as the web console layout editor

Layout file JSONMatches packages/sdk/goldens/{id}.json — paste the tree into the Glance layout editor or give this file to your coding agent.
{
  "name": "Golden L2 — Outfit of the Day",
  "widgetSize": "large",
  "description": "Playful creator commerce layout: hero outfit photo (left) + four shoppable item rows (right) with bag icon tap targets. Teaches image + list + href containers and colorful branded widgets beyond connector defaults.",
  "tree": {
    "id": "root",
    "type": "gradient",
    "style": {
      "type": "linear",
      "startColor": "#FF6B9D",
      "endColor": "#845EF7",
      "angle": 145,
      "padding": 12,
      "spacing": 6
    },
    "children": [
      {
        "id": "header",
        "type": "container",
        "layout": "vertical",
        "style": {
          "spacing": 2
        },
        "children": [
          {
            "id": "title",
            "type": "text",
            "binding": "Outfit of the Day",
            "style": {
              "fontSize": 18,
              "fontWeight": "bold",
              "fontFamily": "sf-rounded",
              "color": "#FFFFFF",
              "maxLines": 1
            }
          },
          {
            "id": "vibe_badge",
            "type": "badge",
            "binding": "✨ Spring vibes",
            "style": {
              "backgroundColor": "#C76BA8",
              "color": "#FFFFFF",
              "fontSize": 10,
              "cornerRadius": 10,
              "padding": 5
            }
          },
          {
            "id": "creator_handle",
            "type": "text",
            "binding": "{{creator_handle}}",
            "style": {
              "fontSize": 11,
              "fontWeight": "medium",
              "color": "#FFE8F5",
              "maxLines": 1
            }
          }
        ]
      },
      {
        "id": "main_row",
        "type": "container",
        "layout": "horizontal",
        "style": {
          "spacing": 8,
          "alignment": "stretch",
          "flex": 1
        },
        "children": [
          {
            "id": "photo_frame",
            "type": "container",
            "layout": "vertical",
            "style": {
              "width": 136,
              "background": "#FFFFFF",
              "cornerRadius": 16,
              "padding": 4
            },
            "children": [
              {
                "id": "outfit_photo",
                "type": "image",
                "binding": "{{outfit_image_url}}",
                "style": {
                  "cornerRadius": 12,
                  "contentMode": "fill",
                  "fillContainer": true,
                  "flex": 1
                }
              }
            ]
          },
          {
            "id": "items_panel",
            "type": "container",
            "layout": "vertical",
            "style": {
              "spacing": 8,
              "flex": 1
            },
            "children": [
              {
                "id": "item_1_row",
                "type": "container",
                "layout": "horizontal",
                "style": {
                  "spacing": 6,
                  "alignment": "center",
                  "background": "#FFF5FA",
                  "cornerRadius": 14,
                  "padding": 8,
                  "flex": 1
                },
                "children": [
                  {
                    "id": "item_1_dot",
                    "type": "container",
                    "layout": "vertical",
                    "style": {
                      "width": 10,
                      "height": 10,
                      "background": "#FF6B9D",
                      "cornerRadius": 5
                    },
                    "children": []
                  },
                  {
                    "id": "item_1_name",
                    "type": "text",
                    "binding": "{{item_1_name}}",
                    "style": {
                      "fontSize": 12,
                      "fontWeight": "semibold",
                      "color": "#2D1B4E",
                      "maxLines": 1,
                      "flex": 1
                    }
                  },
                  {
                    "id": "item_1_shop",
                    "type": "container",
                    "layout": "horizontal",
                    "href": "{{item_1_shop_url}}",
                    "style": {
                      "width": 28,
                      "height": 28,
                      "background": "#FFE4EC",
                      "cornerRadius": 14,
                      "alignment": "center"
                    },
                    "children": [
                      {
                        "id": "item_1_bag",
                        "type": "icon",
                        "binding": "bag.fill",
                        "style": {
                          "fontSize": 13,
                          "color": "#FF6B9D",
                          "weight": "semibold"
                        }
                      }
                    ]
                  }
                ]
              },
              {
                "id": "item_2_row",
                "type": "container",
                "layout": "horizontal",
                "style": {
                  "spacing": 6,
                  "alignment": "center",
                  "background": "#FFF5FA",
                  "cornerRadius": 14,
                  "padding": 8,
                  "flex": 1
                },
                "children": [
                  {
                    "id": "item_2_dot",
                    "type": "container",
                    "layout": "vertical",
                    "style": {
                      "width": 10,
                      "height": 10,
                      "background": "#FFB347",
                      "cornerRadius": 5
                    },
                    "children": []
                  },
                  {
                    "id": "item_2_name",
                    "type": "text",
                    "binding": "{{item_2_name}}",
                    "style": {
                      "fontSize": 12,
                      "fontWeight": "semibold",
                      "color": "#2D1B4E",
                      "maxLines": 1,
                      "flex": 1
                    }
                  },
                  {
                    "id": "item_2_shop",
                    "type": "container",
                    "layout": "horizontal",
                    "href": "{{item_2_shop_url}}",
                    "style": {
                      "width": 28,
                      "height": 28,
                      "background": "#FFF4E0",
                      "cornerRadius": 14,
                      "alignment": "center"
                    },
                    "children": [
                      {
                        "id": "item_2_bag",
                        "type": "icon",
                        "binding": "bag.fill",
                        "style": {
                          "fontSize": 13,
                          "color": "#FF9500",
                          "weight": "semibold"
                        }
                      }
                    ]
                  }
                ]
              },
              {
                "id": "item_3_row",
                "type": "container",
                "layout": "horizontal",
                "style": {
                  "spacing": 6,
                  "alignment": "center",
                  "background": "#FFF5FA",
                  "cornerRadius": 14,
                  "padding": 8,
                  "flex": 1
                },
                "children": [
                  {
                    "id": "item_3_dot",
                    "type": "container",
                    "layout": "vertical",
                    "style": {
                      "width": 10,
                      "height": 10,
                      "background": "#B983FF",
                      "cornerRadius": 5
                    },
                    "children": []
                  },
                  {
                    "id": "item_3_name",
                    "type": "text",
                    "binding": "{{item_3_name}}",
                    "style": {
                      "fontSize": 12,
                      "fontWeight": "semibold",
                      "color": "#2D1B4E",
                      "maxLines": 1,
                      "flex": 1
                    }
                  },
                  {
                    "id": "item_3_shop",
                    "type": "container",
                    "layout": "horizontal",
                    "href": "{{item_3_shop_url}}",
                    "style": {
                      "width": 28,
                      "height": 28,
                      "background": "#F3E8FF",
                      "cornerRadius": 14,
                      "alignment": "center"
                    },
                    "children": [
                      {
                        "id": "item_3_bag",
                        "type": "icon",
                        "binding": "bag.fill",
                        "style": {
                          "fontSize": 13,
                          "color": "#9B59B6",
                          "weight": "semibold"
                        }
                      }
                    ]
                  }
                ]
              },
              {
                "id": "item_4_row",
                "type": "container",
                "layout": "horizontal",
                "style": {
                  "spacing": 6,
                  "alignment": "center",
                  "background": "#FFF5FA",
                  "cornerRadius": 14,
                  "padding": 8,
                  "flex": 1
                },
                "children": [
                  {
                    "id": "item_4_dot",
                    "type": "container",
                    "layout": "vertical",
                    "style": {
                      "width": 10,
                      "height": 10,
                      "background": "#5DADE2",
                      "cornerRadius": 5
                    },
                    "children": []
                  },
                  {
                    "id": "item_4_name",
                    "type": "text",
                    "binding": "{{item_4_name}}",
                    "style": {
                      "fontSize": 12,
                      "fontWeight": "semibold",
                      "color": "#2D1B4E",
                      "maxLines": 1,
                      "flex": 1
                    }
                  },
                  {
                    "id": "item_4_shop",
                    "type": "container",
                    "layout": "horizontal",
                    "href": "{{item_4_shop_url}}",
                    "style": {
                      "width": 28,
                      "height": 28,
                      "background": "#E3F2FD",
                      "cornerRadius": 14,
                      "alignment": "center"
                    },
                    "children": [
                      {
                        "id": "item_4_bag",
                        "type": "icon",
                        "binding": "bag.fill",
                        "style": {
                          "fontSize": 13,
                          "color": "#3498DB",
                          "weight": "semibold"
                        }
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id": "footer_hint",
        "type": "text",
        "binding": "Tap 🛍 on any piece to shop",
        "style": {
          "fontSize": 10,
          "fontWeight": "medium",
          "color": "#FFD6EC",
          "maxLines": 1,
          "alignment": "center"
        }
      }
    ]
  }
}
Sample content JSONMatches packages/sdk/goldens/{id}-content.json — example values for every dynamic {{binding}} in the layout.
{
  "creator_handle": "@stylebyjade",
  "outfit_image_url": "/samples/outfit-ootd.jpg",
  "item_1_name": "Linen blazer",
  "item_1_shop_url": "https://example.com/shop/linen-blazer",
  "item_2_name": "Wide-leg jeans",
  "item_2_shop_url": "https://example.com/shop/wide-leg-jeans",
  "item_3_name": "Platform loafers",
  "item_3_shop_url": "https://example.com/shop/platform-loafers",
  "item_4_name": "Mini tote bag",
  "item_4_shop_url": "https://example.com/shop/mini-tote"
}

Language v2

Agenda is Free. Vocab reveal, charts, grid, table, and Mission Control need Pro or Power at author time.

v2-vocab-flip

small

Vocab card

In-place reveal on one screen. Whole-card toggle_flag + visibleFlag. Prompt stays; answer and example appear on tap. No views map. Reload clears the flag. Pro+ family_views. Discover stays on the prompt. For another screen, see v2-mission-control.

Adapt when: Tap to reveal a translation on the same screen (toggle_flag + visibleFlag). Not a second view.

Live preview

Loading preview…

small · 170×170 pt · same renderer as the web console layout editor

Layout file JSONMatches packages/sdk/goldens/{id}.json — paste the tree into the Glance layout editor or give this file to your coding agent.
{
  "name": "Vocab card",
  "widgetSize": "small",
  "description": "In-place reveal on one screen. Whole-card toggle_flag + visibleFlag. Prompt stays; answer and example appear on tap. No views map. Reload clears the flag. Pro+ family_views. Discover stays on the prompt. For another screen, see v2-mission-control.",
  "tree": {
    "id": "root",
    "type": "container",
    "layout": "vertical",
    "action": {
      "type": "toggle_flag",
      "flag": "show_answer"
    },
    "style": {
      "padding": 16,
      "spacing": 8,
      "alignment": "center",
      "background": "#F3EDE4"
    },
    "children": [
      {
        "id": "home_deck",
        "type": "text",
        "binding": "{{deck}}",
        "style": {
          "fontSize": 12,
          "fontWeight": "semibold",
          "color": "#C45C26",
          "alignment": "center",
          "maxLines": 1
        }
      },
      {
        "id": "home_top_space",
        "type": "spacer",
        "style": {
          "flex": 1
        }
      },
      {
        "id": "prompt",
        "type": "text",
        "binding": "{{prompt}}",
        "style": {
          "fontSize": 30,
          "fontWeight": "bold",
          "fontFamily": "sf-rounded",
          "color": "#1A1714",
          "alignment": "center",
          "maxLines": 2
        }
      },
      {
        "id": "reveal",
        "type": "container",
        "layout": "vertical",
        "visibleFlag": "show_answer",
        "style": {
          "spacing": 4,
          "alignment": "center"
        },
        "children": [
          {
            "id": "answer",
            "type": "text",
            "binding": "{{answer}}",
            "style": {
              "fontSize": 18,
              "fontWeight": "semibold",
              "fontFamily": "sf-rounded",
              "color": "#1A1714",
              "alignment": "center",
              "maxLines": 2
            }
          },
          {
            "id": "example",
            "type": "text",
            "binding": "{{example}}",
            "style": {
              "fontSize": 11,
              "color": "#8A8178",
              "alignment": "center",
              "maxLines": 2
            }
          }
        ]
      },
      {
        "id": "home_bottom_space",
        "type": "spacer",
        "style": {
          "flex": 1
        }
      },
      {
        "id": "home_hint",
        "type": "text",
        "binding": "Tap to reveal",
        "style": {
          "fontSize": 11,
          "color": "#8A8178",
          "alignment": "center",
          "maxLines": 1
        }
      }
    ]
  }
}
Sample content JSONMatches packages/sdk/goldens/{id}-content.json — example values for every dynamic {{binding}} in the layout.
{
  "deck": "Spanish",
  "prompt": "ventana",
  "answer": "window",
  "example": "Abre la ventana."
}

v2-today-agenda

small

Today agenda

Dark small agenda. events is event[]. Bind from ingest or eventkit_calendar {{events}}. Free calendar.

Adapt when: Next few events as a real calendar node

Live preview

Loading preview…

small · 170×170 pt · same renderer as the web console layout editor

Layout file JSONMatches packages/sdk/goldens/{id}.json — paste the tree into the Glance layout editor or give this file to your coding agent.
{
  "name": "Today agenda",
  "widgetSize": "small",
  "description": "Dark small agenda. events is event[]. Bind from ingest or eventkit_calendar {{events}}. Free calendar.",
  "tree": {
    "id": "root",
    "type": "container",
    "layout": "vertical",
    "style": {
      "padding": 12,
      "spacing": 8,
      "background": "#111111"
    },
    "children": [
      {
        "id": "cal",
        "type": "calendar",
        "variant": "agenda",
        "events": "{{events}}",
        "style": {
          "headerColor": "#FFFFFF",
          "eventColor": "#F5F5F5",
          "headerFontSize": 13,
          "eventFontSize": 11,
          "maxEvents": 3
        }
      }
    ]
  }
}
Sample content JSONMatches packages/sdk/goldens/{id}-content.json — example values for every dynamic {{binding}} in the layout.
{
  "events": [
    {
      "start": "2026-08-30T09:00:00",
      "title": "Standup",
      "color": "#7B61FF"
    },
    {
      "start": "2026-08-30",
      "title": "Ship layout language"
    },
    {
      "start": "2026-08-30T14:30:00",
      "title": "Design review",
      "color": "#34C759"
    }
  ]
}

v2-revenue-line

medium

Revenue line

Medium dark split: copy + insight + updated on the left, full-height cumulative hourly line on the right. Pro+ family_charts.

Adapt when: Today's total beside a full-height cumulative hourly trend

Live preview

Loading preview…

medium · 364×170 pt · same renderer as the web console layout editor

Layout file JSONMatches packages/sdk/goldens/{id}.json — paste the tree into the Glance layout editor or give this file to your coding agent.
{
  "name": "Revenue line",
  "widgetSize": "medium",
  "description": "Medium dark split: copy + insight + updated on the left, full-height cumulative hourly line on the right. Pro+ family_charts.",
  "tree": {
    "id": "root",
    "type": "container",
    "layout": "vertical",
    "style": {
      "padding": 12,
      "background": "#1C1C1E"
    },
    "children": [
      {
        "id": "main_row",
        "type": "container",
        "layout": "horizontal",
        "style": {
          "spacing": 12,
          "alignment": "stretch",
          "flex": 1
        },
        "children": [
          {
            "id": "copy",
            "type": "container",
            "layout": "vertical",
            "style": {
              "spacing": 4,
              "alignment": "leading",
              "flex": 1
            },
            "children": [
              {
                "id": "caption",
                "type": "text",
                "binding": "Revenue today",
                "style": {
                  "fontSize": 11,
                  "fontWeight": "medium",
                  "color": "#8E8E93",
                  "maxLines": 1
                }
              },
              {
                "id": "total",
                "type": "text",
                "binding": "{{revenue_fmt}}",
                "style": {
                  "fontSize": 26,
                  "fontWeight": "bold",
                  "color": "#FFFFFF",
                  "maxLines": 1
                }
              },
              {
                "id": "insight",
                "type": "text",
                "binding": "{{insight}}",
                "style": {
                  "fontSize": 12,
                  "fontWeight": "medium",
                  "color": "#30D158",
                  "maxLines": 1
                }
              },
              {
                "id": "copy_space",
                "type": "spacer",
                "style": {
                  "flex": 1
                }
              },
              {
                "id": "footer",
                "type": "container",
                "layout": "horizontal",
                "style": {
                  "spacing": 4,
                  "alignment": "center"
                },
                "children": [
                  {
                    "id": "updated_label",
                    "type": "text",
                    "binding": "Updated",
                    "style": {
                      "fontSize": 11,
                      "color": "#8E8E93",
                      "maxLines": 1
                    }
                  },
                  {
                    "id": "updated_at",
                    "type": "relative_time",
                    "binding": "{{updated_at}}",
                    "style": {
                      "fontSize": 11,
                      "color": "#8E8E93"
                    }
                  }
                ]
              }
            ]
          },
          {
            "id": "line",
            "type": "chart",
            "variant": "line",
            "x": "{{hours}}",
            "y": "{{revenue}}",
            "style": {
              "flex": 1,
              "height": 146,
              "strokeColor": "#30D158",
              "fillColor": "#30D158",
              "strokeWidth": 2,
              "showAxes": true,
              "curve": "smooth",
              "axisColor": "#3A3A3C",
              "labelColor": "#8E8E93",
              "labelFontSize": 9
            }
          }
        ]
      }
    ]
  }
}
Sample content JSONMatches packages/sdk/goldens/{id}-content.json — example values for every dynamic {{binding}} in the layout.
{
  "revenue_fmt": "$2,840",
  "insight": "Revenue growing steadily",
  "hours": [
    8,
    9,
    10,
    11,
    12,
    13,
    14,
    15
  ],
  "revenue": [
    180,
    390,
    730,
    1020,
    1430,
    1810,
    2330,
    2840
  ],
  "updated_at": "2026-09-04T13:40:00Z"
}

v2-weekday-bar

medium

New users

Medium light new-users card. Copy + 7-day average on the left; full-height bar chart with axes, a dashed showAverage line, and per-bar colorScale (red < 10, yellow < 20, green 20+). Pro+ family_charts.

Adapt when: New users over the past 7 days, color-scaled bars

Live preview

Loading preview…

medium · 364×170 pt · same renderer as the web console layout editor

Layout file JSONMatches packages/sdk/goldens/{id}.json — paste the tree into the Glance layout editor or give this file to your coding agent.
{
  "name": "New users",
  "widgetSize": "medium",
  "description": "Medium light new-users card. Copy + 7-day average on the left; full-height bar chart with axes, a dashed showAverage line, and per-bar colorScale (red < 10, yellow < 20, green 20+). Pro+ family_charts.",
  "tree": {
    "id": "root",
    "type": "container",
    "layout": "vertical",
    "style": {
      "padding": 12,
      "background": "#F2F2F7"
    },
    "children": [
      {
        "id": "main_row",
        "type": "container",
        "layout": "horizontal",
        "style": {
          "spacing": 12,
          "alignment": "stretch",
          "flex": 1
        },
        "children": [
          {
            "id": "copy",
            "type": "container",
            "layout": "vertical",
            "style": {
              "spacing": 4,
              "alignment": "leading",
              "flex": 1
            },
            "children": [
              {
                "id": "caption",
                "type": "text",
                "binding": "New users",
                "style": {
                  "fontSize": 11,
                  "fontWeight": "medium",
                  "color": "#8E8E93",
                  "maxLines": 1
                }
              },
              {
                "id": "total",
                "type": "text",
                "binding": "{{users_fmt}}",
                "style": {
                  "fontSize": 26,
                  "fontWeight": "bold",
                  "color": "#1C1C1E",
                  "maxLines": 1
                }
              },
              {
                "id": "period",
                "type": "text",
                "binding": "Past 7 days",
                "style": {
                  "fontSize": 12,
                  "fontWeight": "medium",
                  "color": "#8E8E93",
                  "maxLines": 1
                }
              },
              {
                "id": "average",
                "type": "text",
                "binding": "{{avg_label}}",
                "style": {
                  "fontSize": 12,
                  "fontWeight": "medium",
                  "color": "#1C1C1E",
                  "maxLines": 1
                }
              },
              {
                "id": "copy_space",
                "type": "spacer",
                "style": {
                  "flex": 1
                }
              },
              {
                "id": "footer",
                "type": "container",
                "layout": "horizontal",
                "style": {
                  "spacing": 4,
                  "alignment": "center"
                },
                "children": [
                  {
                    "id": "updated_label",
                    "type": "text",
                    "binding": "Updated",
                    "style": {
                      "fontSize": 11,
                      "color": "#8E8E93",
                      "maxLines": 1
                    }
                  },
                  {
                    "id": "updated_at",
                    "type": "relative_time",
                    "binding": "{{updated_at}}",
                    "style": {
                      "fontSize": 11,
                      "color": "#8E8E93"
                    }
                  }
                ]
              }
            ]
          },
          {
            "id": "bars",
            "type": "chart",
            "variant": "bar",
            "x": "{{days}}",
            "y": "{{counts}}",
            "style": {
              "flex": 1,
              "height": 146,
              "fillColor": "#FFCC00",
              "barGap": 3,
              "cornerRadius": 4,
              "showAxes": true,
              "axisColor": "#C7C7CC",
              "labelColor": "#8E8E93",
              "labelFontSize": 9,
              "showAverage": true,
              "averageColor": "#636366",
              "colorScale": {
                "from": "{{counts}}",
                "when": [
                  {
                    "lt": 10,
                    "value": "#FF3B30"
                  },
                  {
                    "lt": 20,
                    "value": "#FFCC00"
                  },
                  {
                    "gte": 20,
                    "value": "#34C759"
                  }
                ]
              }
            }
          }
        ]
      }
    ]
  }
}
Sample content JSONMatches packages/sdk/goldens/{id}-content.json — example values for every dynamic {{binding}} in the layout.
{
  "users_fmt": "111",
  "avg_label": "16 / day average",
  "days": [
    "M",
    "T",
    "W",
    "T",
    "F",
    "S",
    "S"
  ],
  "counts": [
    8,
    14,
    9,
    23,
    18,
    27,
    12
  ],
  "updated_at": "2026-09-04T13:40:00Z"
}

v2-share-pie

small

Share pie

Small donut. pie chart, innerRadius 0.55, default palette. Max 8 slices. Pro+ family_charts.

Adapt when: Parts of a whole, eight slices or fewer

Live preview

Loading preview…

small · 170×170 pt · same renderer as the web console layout editor

Layout file JSONMatches packages/sdk/goldens/{id}.json — paste the tree into the Glance layout editor or give this file to your coding agent.
{
  "name": "Share pie",
  "widgetSize": "small",
  "description": "Small donut. pie chart, innerRadius 0.55, default palette. Max 8 slices. Pro+ family_charts.",
  "tree": {
    "id": "root",
    "type": "container",
    "layout": "vertical",
    "style": {
      "padding": 14,
      "spacing": 8,
      "alignment": "center",
      "background": "#111111"
    },
    "children": [
      {
        "id": "pie",
        "type": "chart",
        "variant": "pie",
        "y": "{{shares}}",
        "labels": "{{names}}",
        "style": {
          "size": 75,
          "innerRadius": 0.55,
          "strokeWidth": 2
        }
      },
      {
        "id": "label",
        "type": "text",
        "binding": "{{title}}",
        "style": {
          "fontSize": 12,
          "fontWeight": "semibold",
          "color": "#FFFFFF",
          "alignment": "center",
          "maxLines": 1
        }
      }
    ]
  }
}
Sample content JSONMatches packages/sdk/goldens/{id}-content.json — example values for every dynamic {{binding}} in the layout.
{
  "title": "Sources",
  "shares": [
    40,
    35,
    25
  ],
  "names": [
    "Direct",
    "Referral",
    "Ads"
  ]
}

v2-activity-grid

medium

Activity grid

Medium 7×20 activity grid. rows/columns are ints. colorScale per cell; 0 uses emptyColor. Pro+ family_grid.

Adapt when: Heat over days or weeks from a number[]

Live preview

Loading preview…

medium · 364×170 pt · same renderer as the web console layout editor

Layout file JSONMatches packages/sdk/goldens/{id}.json — paste the tree into the Glance layout editor or give this file to your coding agent.
{
  "name": "Activity grid",
  "widgetSize": "medium",
  "description": "Medium 7×20 activity grid. rows/columns are ints. colorScale per cell; 0 uses emptyColor. Pro+ family_grid.",
  "tree": {
    "id": "root",
    "type": "container",
    "layout": "vertical",
    "style": {
      "padding": 16,
      "spacing": 10,
      "background": "#0D1117"
    },
    "children": [
      {
        "id": "label",
        "type": "text",
        "binding": "{{title}}",
        "style": {
          "fontSize": 13,
          "fontWeight": "semibold",
          "color": "#E6EDF3"
        }
      },
      {
        "id": "grid",
        "type": "grid",
        "variant": "activity",
        "rows": 7,
        "columns": 20,
        "binding": "{{activity}}",
        "style": {
          "height": 88,
          "cellGap": 2,
          "cellShape": "square",
          "cellCornerRadius": 2,
          "emptyColor": "#161B22",
          "colorScale": {
            "from": "{{activity}}",
            "stops": [
              {
                "at": 0,
                "value": "#161B22"
              },
              {
                "at": 1,
                "value": "#0E4429"
              },
              {
                "at": 2,
                "value": "#006D32"
              },
              {
                "at": 4,
                "value": "#26A641"
              },
              {
                "at": 6,
                "value": "#39D353"
              }
            ]
          }
        }
      }
    ]
  }
}
Sample content JSONMatches packages/sdk/goldens/{id}-content.json — example values for every dynamic {{binding}} in the layout.
{
  "title": "20 weeks",
  "activity": [
    0,
    1,
    0,
    2,
    0,
    0,
    3,
    1,
    4,
    2,
    0,
    1,
    0,
    2,
    0,
    0,
    3,
    5,
    1,
    0,
    0,
    2,
    1,
    0,
    4,
    6,
    2,
    1,
    0,
    0,
    1,
    2,
    0,
    3,
    1,
    4,
    2,
    0,
    0,
    1,
    5,
    2,
    0,
    1,
    0,
    2,
    3,
    0,
    1,
    2,
    0,
    4,
    1,
    0,
    0,
    2,
    1,
    3,
    0,
    0,
    5,
    1,
    0,
    0,
    2,
    1,
    4,
    0,
    0,
    3,
    1,
    0,
    0,
    2,
    1,
    6,
    0,
    0,
    1,
    3,
    0,
    2,
    0,
    1,
    4,
    0,
    1,
    0,
    2,
    3,
    0,
    0,
    5,
    1,
    0,
    0,
    2,
    1,
    2,
    0,
    0,
    1,
    3,
    0,
    4,
    0,
    1,
    2,
    0,
    0,
    1,
    0,
    3,
    0,
    1,
    2,
    0,
    4,
    1,
    0,
    0,
    2,
    1,
    0,
    0,
    3,
    1,
    4,
    0,
    0,
    2,
    1,
    0,
    0,
    1,
    0,
    3,
    2,
    0,
    1
  ]
}

v2-standings-table

medium

Standings table

Medium 3-column table. columns + cells string[], optional row headers. Max 4×6. Pro+ family_table.

Adapt when: Compact labeled numbers, four columns or fewer

Live preview

Loading preview…

medium · 364×170 pt · same renderer as the web console layout editor

Layout file JSONMatches packages/sdk/goldens/{id}.json — paste the tree into the Glance layout editor or give this file to your coding agent.
{
  "name": "Standings table",
  "widgetSize": "medium",
  "description": "Medium 3-column table. columns + cells string[], optional row headers. Max 4×6. Pro+ family_table.",
  "tree": {
    "id": "root",
    "type": "container",
    "layout": "vertical",
    "style": {
      "padding": 14,
      "spacing": 8,
      "background": "#111111"
    },
    "children": [
      {
        "id": "title",
        "type": "text",
        "binding": "{{title}}",
        "style": {
          "fontSize": 13,
          "fontWeight": "semibold",
          "color": "#FFFFFF"
        }
      },
      {
        "id": "table",
        "type": "table",
        "columns": "{{headers}}",
        "rows": "{{teams}}",
        "cells": "{{stats}}",
        "style": {
          "cellFontSize": 11,
          "cellPadding": 4,
          "headerBackground": "#1F2937",
          "headerColor": "#F9FAFB",
          "cellColor": "#E5E7EB",
          "gridColor": "#374151"
        }
      }
    ]
  }
}
Sample content JSONMatches packages/sdk/goldens/{id}-content.json — example values for every dynamic {{binding}} in the layout.
{
  "title": "East",
  "headers": [
    "W",
    "L",
    "Pct"
  ],
  "teams": [
    "NY",
    "BOS",
    "CHI"
  ],
  "stats": [
    "12",
    "4",
    ".750",
    "11",
    "5",
    ".688",
    "9",
    "7",
    ".563"
  ]
}

v2-mission-control

large

Mission Control

Large Notion-monochrome hub. Home is greeting + KPIs + unread mail + today's agenda. Bottom nav Home | Dashboard | Mail | Calendar on every view; selected tab is ink. Dashboard is today's revenue: full-width cumulative line, hourly bars beside App / Webapp / B2B mix. Mail is three summaries. Calendar is columns days: 3. Pro+ family_views + family_charts.

Adapt when: Home summary plus a revenue dashboard, mail, and calendar behind a bottom nav

Live preview

Loading preview…

large · 364×382 pt · same renderer as the web console layout editor

Layout file JSONMatches packages/sdk/goldens/{id}.json — paste the tree into the Glance layout editor or give this file to your coding agent.
{
  "name": "Mission Control",
  "widgetSize": "large",
  "description": "Large Notion-monochrome hub. Home is greeting + KPIs + unread mail + today's agenda. Bottom nav Home | Dashboard | Mail | Calendar on every view; selected tab is ink. Dashboard is today's revenue: full-width cumulative line, hourly bars beside App / Webapp / B2B mix. Mail is three summaries. Calendar is columns days: 3. Pro+ family_views + family_charts.",
  "tree": {
    "id": "root",
    "type": "container",
    "layout": "vertical",
    "style": {
      "padding": 12,
      "spacing": 10,
      "background": "#FFFFFF"
    },
    "children": [
      {
        "id": "greeting",
        "type": "text",
        "binding": "{{greeting}}",
        "style": {
          "fontSize": 20,
          "fontWeight": "semibold",
          "color": "#37352F",
          "maxLines": 1
        }
      },
      {
        "id": "today",
        "type": "date",
        "binding": "{{today}}",
        "style": {
          "fontSize": 11,
          "fontWeight": "medium",
          "color": "#9B9A97",
          "format": "medium"
        }
      },
      {
        "id": "kpis",
        "type": "container",
        "layout": "horizontal",
        "style": {
          "spacing": 8
        },
        "children": [
          {
            "id": "kpi_rev",
            "type": "container",
            "layout": "vertical",
            "action": {
              "type": "set_view",
              "view": "dashboard"
            },
            "style": {
              "flex": 1,
              "padding": 8,
              "spacing": 2,
              "background": "#F7F6F3",
              "cornerRadius": 8,
              "alignment": "leading"
            },
            "children": [
              {
                "id": "kpi_rev_label",
                "type": "text",
                "binding": "{{kpi_rev_label}}",
                "style": {
                  "fontSize": 11,
                  "fontWeight": "medium",
                  "color": "#9B9A97",
                  "maxLines": 1
                }
              },
              {
                "id": "kpi_rev_value",
                "type": "text",
                "binding": "{{kpi_rev}}",
                "style": {
                  "fontSize": 16,
                  "fontWeight": "semibold",
                  "color": "#37352F",
                  "maxLines": 1
                }
              }
            ]
          },
          {
            "id": "kpi_users",
            "type": "container",
            "layout": "vertical",
            "action": {
              "type": "set_view",
              "view": "dashboard"
            },
            "style": {
              "flex": 1,
              "padding": 8,
              "spacing": 2,
              "background": "#F7F6F3",
              "cornerRadius": 8,
              "alignment": "leading"
            },
            "children": [
              {
                "id": "kpi_users_label",
                "type": "text",
                "binding": "{{kpi_users_label}}",
                "style": {
                  "fontSize": 11,
                  "fontWeight": "medium",
                  "color": "#9B9A97",
                  "maxLines": 1
                }
              },
              {
                "id": "kpi_users_value",
                "type": "text",
                "binding": "{{kpi_users}}",
                "style": {
                  "fontSize": 16,
                  "fontWeight": "semibold",
                  "color": "#37352F",
                  "maxLines": 1
                }
              }
            ]
          },
          {
            "id": "kpi_goal",
            "type": "container",
            "layout": "vertical",
            "action": {
              "type": "set_view",
              "view": "dashboard"
            },
            "style": {
              "flex": 1,
              "padding": 8,
              "spacing": 2,
              "background": "#F7F6F3",
              "cornerRadius": 8,
              "alignment": "leading"
            },
            "children": [
              {
                "id": "kpi_goal_label",
                "type": "text",
                "binding": "{{kpi_goal_label}}",
                "style": {
                  "fontSize": 11,
                  "fontWeight": "medium",
                  "color": "#9B9A97",
                  "maxLines": 1
                }
              },
              {
                "id": "kpi_goal_value",
                "type": "text",
                "binding": "{{kpi_goal}}",
                "style": {
                  "fontSize": 16,
                  "fontWeight": "semibold",
                  "color": "#37352F",
                  "maxLines": 1
                }
              }
            ]
          }
        ]
      },
      {
        "id": "mail_card",
        "type": "container",
        "layout": "vertical",
        "action": {
          "type": "set_view",
          "view": "mail"
        },
        "style": {
          "padding": 10,
          "spacing": 4,
          "background": "#F7F6F3",
          "cornerRadius": 8
        },
        "children": [
          {
            "id": "mail_head",
            "type": "container",
            "layout": "horizontal",
            "style": {
              "spacing": 6,
              "alignment": "center"
            },
            "children": [
              {
                "id": "mail_head_label",
                "type": "text",
                "binding": "Mail",
                "style": {
                  "fontSize": 11,
                  "fontWeight": "medium",
                  "color": "#9B9A97",
                  "maxLines": 1
                }
              },
              {
                "id": "mail_head_count",
                "type": "text",
                "binding": "{{unread_count}}",
                "style": {
                  "fontSize": 11,
                  "fontWeight": "semibold",
                  "color": "#37352F",
                  "maxLines": 1
                }
              }
            ]
          },
          {
            "id": "mail_head_subject",
            "type": "text",
            "binding": "{{mail_subject_1}}",
            "style": {
              "fontSize": 13,
              "fontWeight": "medium",
              "color": "#37352F",
              "maxLines": 1
            }
          },
          {
            "id": "mail_head_from",
            "type": "text",
            "binding": "{{mail_from_1}}",
            "style": {
              "fontSize": 11,
              "fontWeight": "medium",
              "color": "#9B9A97",
              "maxLines": 1
            }
          }
        ]
      },
      {
        "id": "agenda_card",
        "type": "container",
        "layout": "vertical",
        "action": {
          "type": "set_view",
          "view": "calendar"
        },
        "style": {
          "padding": 10,
          "spacing": 6,
          "background": "#F7F6F3",
          "cornerRadius": 8,
          "flex": 1
        },
        "children": [
          {
            "id": "agenda_label",
            "type": "text",
            "binding": "Today",
            "style": {
              "fontSize": 11,
              "fontWeight": "medium",
              "color": "#9B9A97",
              "maxLines": 1
            }
          },
          {
            "id": "home_agenda",
            "type": "calendar",
            "variant": "agenda",
            "events": "{{events}}",
            "day": "{{cal_day}}",
            "style": {
              "height": 92,
              "headerFontSize": 12,
              "headerColor": "#37352F",
              "eventFontSize": 11,
              "eventColor": "#37352F",
              "dotColor": "#37352F",
              "todayColor": "#37352F",
              "maxEvents": 3
            }
          }
        ]
      },
      {
        "id": "home_nav",
        "type": "container",
        "layout": "vertical",
        "style": {
          "spacing": 8
        },
        "children": [
          {
            "id": "home_nav_rule",
            "type": "shape",
            "variant": "rectangle",
            "style": {
              "height": 1,
              "fillColor": "#E9E9E7"
            }
          },
          {
            "id": "home_nav_row",
            "type": "container",
            "layout": "horizontal",
            "style": {
              "spacing": 0,
              "alignment": "center"
            },
            "children": [
              {
                "id": "home_nav_home",
                "type": "container",
                "layout": "vertical",
                "action": {
                  "type": "set_view",
                  "view": "home"
                },
                "style": {
                  "flex": 1,
                  "alignment": "center",
                  "padding": 6
                },
                "children": [
                  {
                    "id": "home_nav_home_label",
                    "type": "text",
                    "binding": "Home",
                    "style": {
                      "fontSize": 11,
                      "fontWeight": "semibold",
                      "color": "#37352F",
                      "maxLines": 1,
                      "alignment": "center"
                    }
                  }
                ]
              },
              {
                "id": "home_nav_dashboard",
                "type": "container",
                "layout": "vertical",
                "action": {
                  "type": "set_view",
                  "view": "dashboard"
                },
                "style": {
                  "flex": 1,
                  "alignment": "center",
                  "padding": 6
                },
                "children": [
                  {
                    "id": "home_nav_dashboard_label",
                    "type": "text",
                    "binding": "Dashboard",
                    "style": {
                      "fontSize": 11,
                      "fontWeight": "medium",
                      "color": "#9B9A97",
                      "maxLines": 1,
                      "alignment": "center"
                    }
                  }
                ]
              },
              {
                "id": "home_nav_mail",
                "type": "container",
                "layout": "vertical",
                "action": {
                  "type": "set_view",
                  "view": "mail"
                },
                "style": {
                  "flex": 1,
                  "alignment": "center",
                  "padding": 6
                },
                "children": [
                  {
                    "id": "home_nav_mail_label",
                    "type": "text",
                    "binding": "Mail",
                    "style": {
                      "fontSize": 11,
                      "fontWeight": "medium",
                      "color": "#9B9A97",
                      "maxLines": 1,
                      "alignment": "center"
                    }
                  }
                ]
              },
              {
                "id": "home_nav_calendar",
                "type": "container",
                "layout": "vertical",
                "action": {
                  "type": "set_view",
                  "view": "calendar"
                },
                "style": {
                  "flex": 1,
                  "alignment": "center",
                  "padding": 6
                },
                "children": [
                  {
                    "id": "home_nav_calendar_label",
                    "type": "text",
                    "binding": "Calendar",
                    "style": {
                      "fontSize": 11,
                      "fontWeight": "medium",
                      "color": "#9B9A97",
                      "maxLines": 1,
                      "alignment": "center"
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  },
  "views": {
    "dashboard": {
      "id": "dash_root",
      "type": "container",
      "layout": "vertical",
      "style": {
        "padding": 12,
        "spacing": 8,
        "background": "#FFFFFF"
      },
      "children": [
        {
          "id": "dash_title_row",
          "type": "container",
          "layout": "horizontal",
          "style": {
            "spacing": 8,
            "alignment": "center"
          },
          "children": [
            {
              "id": "dash_title",
              "type": "text",
              "binding": "Dashboard",
              "style": {
                "fontSize": 15,
                "fontWeight": "semibold",
                "color": "#37352F",
                "maxLines": 1
              }
            },
            {
              "id": "dash_total",
              "type": "text",
              "binding": "{{kpi_rev}}",
              "style": {
                "fontSize": 13,
                "fontWeight": "semibold",
                "color": "#37352F",
                "maxLines": 1
              }
            }
          ]
        },
        {
          "id": "dash_rev_caption",
          "type": "text",
          "binding": "Revenue today",
          "style": {
            "fontSize": 11,
            "fontWeight": "medium",
            "color": "#9B9A97",
            "maxLines": 1
          }
        },
        {
          "id": "dash_line",
          "type": "chart",
          "variant": "line",
          "x": "{{rev_hours}}",
          "y": "{{rev_cumulative}}",
          "style": {
            "height": 108,
            "strokeColor": "#37352F",
            "fillColor": "#37352F",
            "strokeWidth": 2,
            "showAxes": true,
            "curve": "smooth",
            "axisColor": "#E9E9E7",
            "labelColor": "#9B9A97",
            "labelFontSize": 9
          }
        },
        {
          "id": "dash_row",
          "type": "container",
          "layout": "horizontal",
          "style": {
            "spacing": 10,
            "alignment": "stretch",
            "flex": 1
          },
          "children": [
            {
              "id": "dash_bar_col",
              "type": "container",
              "layout": "vertical",
              "style": {
                "spacing": 4,
                "flex": 1
              },
              "children": [
                {
                  "id": "dash_bar_caption",
                  "type": "text",
                  "binding": "Hourly",
                  "style": {
                    "fontSize": 11,
                    "fontWeight": "medium",
                    "color": "#9B9A97",
                    "maxLines": 1
                  }
                },
                {
                  "id": "dash_bar",
                  "type": "chart",
                  "variant": "bar",
                  "x": "{{hour_labels}}",
                  "y": "{{hourly_rev}}",
                  "style": {
                    "flex": 1,
                    "height": 110,
                    "fillColor": "#37352F",
                    "barGap": 3,
                    "cornerRadius": 3,
                    "showAxes": true,
                    "axisColor": "#E9E9E7",
                    "labelColor": "#9B9A97",
                    "labelFontSize": 8
                  }
                }
              ]
            },
            {
              "id": "dash_pie_col",
              "type": "container",
              "layout": "vertical",
              "style": {
                "spacing": 4,
                "flex": 1
              },
              "children": [
                {
                  "id": "dash_pie_caption",
                  "type": "text",
                  "binding": "By channel",
                  "style": {
                    "fontSize": 11,
                    "fontWeight": "medium",
                    "color": "#9B9A97",
                    "maxLines": 1
                  }
                },
                {
                  "id": "dash_pie_body",
                  "type": "container",
                  "layout": "horizontal",
                  "style": {
                    "spacing": 8,
                    "alignment": "center",
                    "flex": 1
                  },
                  "children": [
                    {
                      "id": "dash_pie",
                      "type": "chart",
                      "variant": "pie",
                      "y": "{{channel_shares}}",
                      "labels": "{{channel_names}}",
                      "style": {
                        "size": 92,
                        "innerRadius": 0.55,
                        "colors": [
                          "#37352F",
                          "#787774",
                          "#C4C2BC"
                        ],
                        "strokeWidth": 0,
                        "showLabels": false
                      }
                    },
                    {
                      "id": "dash_legend",
                      "type": "container",
                      "layout": "vertical",
                      "style": {
                        "spacing": 6,
                        "flex": 1
                      },
                      "children": [
                        {
                          "id": "dash_leg_app",
                          "type": "container",
                          "layout": "horizontal",
                          "style": {
                            "spacing": 6,
                            "alignment": "center"
                          },
                          "children": [
                            {
                              "id": "dash_leg_app_swatch",
                              "type": "shape",
                              "variant": "rectangle",
                              "style": {
                                "width": 8,
                                "height": 8,
                                "cornerRadius": 2,
                                "fillColor": "#37352F"
                              }
                            },
                            {
                              "id": "dash_leg_app_label",
                              "type": "text",
                              "binding": "App",
                              "style": {
                                "fontSize": 11,
                                "fontWeight": "medium",
                                "color": "#37352F",
                                "maxLines": 1
                              }
                            }
                          ]
                        },
                        {
                          "id": "dash_leg_web",
                          "type": "container",
                          "layout": "horizontal",
                          "style": {
                            "spacing": 6,
                            "alignment": "center"
                          },
                          "children": [
                            {
                              "id": "dash_leg_web_swatch",
                              "type": "shape",
                              "variant": "rectangle",
                              "style": {
                                "width": 8,
                                "height": 8,
                                "cornerRadius": 2,
                                "fillColor": "#787774"
                              }
                            },
                            {
                              "id": "dash_leg_web_label",
                              "type": "text",
                              "binding": "Webapp",
                              "style": {
                                "fontSize": 11,
                                "fontWeight": "medium",
                                "color": "#37352F",
                                "maxLines": 1
                              }
                            }
                          ]
                        },
                        {
                          "id": "dash_leg_b2b",
                          "type": "container",
                          "layout": "horizontal",
                          "style": {
                            "spacing": 6,
                            "alignment": "center"
                          },
                          "children": [
                            {
                              "id": "dash_leg_b2b_swatch",
                              "type": "shape",
                              "variant": "rectangle",
                              "style": {
                                "width": 8,
                                "height": 8,
                                "cornerRadius": 2,
                                "fillColor": "#C4C2BC"
                              }
                            },
                            {
                              "id": "dash_leg_b2b_label",
                              "type": "text",
                              "binding": "B2B",
                              "style": {
                                "fontSize": 11,
                                "fontWeight": "medium",
                                "color": "#37352F",
                                "maxLines": 1
                              }
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "id": "dash_nav",
          "type": "container",
          "layout": "vertical",
          "style": {
            "spacing": 8
          },
          "children": [
            {
              "id": "dash_nav_rule",
              "type": "shape",
              "variant": "rectangle",
              "style": {
                "height": 1,
                "fillColor": "#E9E9E7"
              }
            },
            {
              "id": "dash_nav_row",
              "type": "container",
              "layout": "horizontal",
              "style": {
                "spacing": 0,
                "alignment": "center"
              },
              "children": [
                {
                  "id": "dash_nav_home",
                  "type": "container",
                  "layout": "vertical",
                  "action": {
                    "type": "set_view",
                    "view": "home"
                  },
                  "style": {
                    "flex": 1,
                    "alignment": "center",
                    "padding": 6
                  },
                  "children": [
                    {
                      "id": "dash_nav_home_label",
                      "type": "text",
                      "binding": "Home",
                      "style": {
                        "fontSize": 11,
                        "fontWeight": "medium",
                        "color": "#9B9A97",
                        "maxLines": 1,
                        "alignment": "center"
                      }
                    }
                  ]
                },
                {
                  "id": "dash_nav_dashboard",
                  "type": "container",
                  "layout": "vertical",
                  "action": {
                    "type": "set_view",
                    "view": "dashboard"
                  },
                  "style": {
                    "flex": 1,
                    "alignment": "center",
                    "padding": 6
                  },
                  "children": [
                    {
                      "id": "dash_nav_dashboard_label",
                      "type": "text",
                      "binding": "Dashboard",
                      "style": {
                        "fontSize": 11,
                        "fontWeight": "semibold",
                        "color": "#37352F",
                        "maxLines": 1,
                        "alignment": "center"
                      }
                    }
                  ]
                },
                {
                  "id": "dash_nav_mail",
                  "type": "container",
                  "layout": "vertical",
                  "action": {
                    "type": "set_view",
                    "view": "mail"
                  },
                  "style": {
                    "flex": 1,
                    "alignment": "center",
                    "padding": 6
                  },
                  "children": [
                    {
                      "id": "dash_nav_mail_label",
                      "type": "text",
                      "binding": "Mail",
                      "style": {
                        "fontSize": 11,
                        "fontWeight": "medium",
                        "color": "#9B9A97",
                        "maxLines": 1,
                        "alignment": "center"
                      }
                    }
                  ]
                },
                {
                  "id": "dash_nav_calendar",
                  "type": "container",
                  "layout": "vertical",
                  "action": {
                    "type": "set_view",
                    "view": "calendar"
                  },
                  "style": {
                    "flex": 1,
                    "alignment": "center",
                    "padding": 6
                  },
                  "children": [
                    {
                      "id": "dash_nav_calendar_label",
                      "type": "text",
                      "binding": "Calendar",
                      "style": {
                        "fontSize": 11,
                        "fontWeight": "medium",
                        "color": "#9B9A97",
                        "maxLines": 1,
                        "alignment": "center"
                      }
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    "mail": {
      "id": "mail_root",
      "type": "container",
      "layout": "vertical",
      "style": {
        "padding": 12,
        "spacing": 8,
        "background": "#FFFFFF"
      },
      "children": [
        {
          "id": "mail_title_row",
          "type": "container",
          "layout": "horizontal",
          "style": {
            "spacing": 6,
            "alignment": "center"
          },
          "children": [
            {
              "id": "mail_title",
              "type": "text",
              "binding": "Inbox",
              "style": {
                "fontSize": 15,
                "fontWeight": "semibold",
                "color": "#37352F",
                "maxLines": 1
              }
            },
            {
              "id": "mail_unread",
              "type": "text",
              "binding": "{{unread_count}}",
              "style": {
                "fontSize": 11,
                "fontWeight": "medium",
                "color": "#9B9A97",
                "maxLines": 1
              }
            }
          ]
        },
        {
          "id": "mail_row_1",
          "type": "container",
          "layout": "vertical",
          "style": {
            "spacing": 2,
            "padding": 8,
            "background": "#F7F6F3",
            "cornerRadius": 8
          },
          "children": [
            {
              "id": "mail_from_1",
              "type": "text",
              "binding": "{{mail_from_1}}",
              "style": {
                "fontSize": 11,
                "fontWeight": "medium",
                "color": "#9B9A97",
                "maxLines": 1
              }
            },
            {
              "id": "mail_subject_1",
              "type": "text",
              "binding": "{{mail_subject_1}}",
              "style": {
                "fontSize": 13,
                "fontWeight": "medium",
                "color": "#37352F",
                "maxLines": 1
              }
            },
            {
              "id": "mail_preview_1",
              "type": "text",
              "binding": "{{mail_preview_1}}",
              "style": {
                "fontSize": 11,
                "fontWeight": "medium",
                "color": "#9B9A97",
                "maxLines": 1
              }
            }
          ]
        },
        {
          "id": "mail_row_2",
          "type": "container",
          "layout": "vertical",
          "style": {
            "spacing": 2,
            "padding": 8,
            "background": "#F7F6F3",
            "cornerRadius": 8
          },
          "children": [
            {
              "id": "mail_from_2",
              "type": "text",
              "binding": "{{mail_from_2}}",
              "style": {
                "fontSize": 11,
                "fontWeight": "medium",
                "color": "#9B9A97",
                "maxLines": 1
              }
            },
            {
              "id": "mail_subject_2",
              "type": "text",
              "binding": "{{mail_subject_2}}",
              "style": {
                "fontSize": 13,
                "fontWeight": "medium",
                "color": "#37352F",
                "maxLines": 1
              }
            },
            {
              "id": "mail_preview_2",
              "type": "text",
              "binding": "{{mail_preview_2}}",
              "style": {
                "fontSize": 11,
                "fontWeight": "medium",
                "color": "#9B9A97",
                "maxLines": 1
              }
            }
          ]
        },
        {
          "id": "mail_row_3",
          "type": "container",
          "layout": "vertical",
          "style": {
            "spacing": 2,
            "padding": 8,
            "background": "#F7F6F3",
            "cornerRadius": 8
          },
          "children": [
            {
              "id": "mail_from_3",
              "type": "text",
              "binding": "{{mail_from_3}}",
              "style": {
                "fontSize": 11,
                "fontWeight": "medium",
                "color": "#9B9A97",
                "maxLines": 1
              }
            },
            {
              "id": "mail_subject_3",
              "type": "text",
              "binding": "{{mail_subject_3}}",
              "style": {
                "fontSize": 13,
                "fontWeight": "medium",
                "color": "#37352F",
                "maxLines": 1
              }
            },
            {
              "id": "mail_preview_3",
              "type": "text",
              "binding": "{{mail_preview_3}}",
              "style": {
                "fontSize": 11,
                "fontWeight": "medium",
                "color": "#9B9A97",
                "maxLines": 1
              }
            }
          ]
        },
        {
          "id": "mail_space",
          "type": "spacer",
          "style": {
            "flex": 1
          }
        },
        {
          "id": "mail_nav",
          "type": "container",
          "layout": "vertical",
          "style": {
            "spacing": 8
          },
          "children": [
            {
              "id": "mail_nav_rule",
              "type": "shape",
              "variant": "rectangle",
              "style": {
                "height": 1,
                "fillColor": "#E9E9E7"
              }
            },
            {
              "id": "mail_nav_row",
              "type": "container",
              "layout": "horizontal",
              "style": {
                "spacing": 0,
                "alignment": "center"
              },
              "children": [
                {
                  "id": "mail_nav_home",
                  "type": "container",
                  "layout": "vertical",
                  "action": {
                    "type": "set_view",
                    "view": "home"
                  },
                  "style": {
                    "flex": 1,
                    "alignment": "center",
                    "padding": 6
                  },
                  "children": [
                    {
                      "id": "mail_nav_home_label",
                      "type": "text",
                      "binding": "Home",
                      "style": {
                        "fontSize": 11,
                        "fontWeight": "medium",
                        "color": "#9B9A97",
                        "maxLines": 1,
                        "alignment": "center"
                      }
                    }
                  ]
                },
                {
                  "id": "mail_nav_dashboard",
                  "type": "container",
                  "layout": "vertical",
                  "action": {
                    "type": "set_view",
                    "view": "dashboard"
                  },
                  "style": {
                    "flex": 1,
                    "alignment": "center",
                    "padding": 6
                  },
                  "children": [
                    {
                      "id": "mail_nav_dashboard_label",
                      "type": "text",
                      "binding": "Dashboard",
                      "style": {
                        "fontSize": 11,
                        "fontWeight": "medium",
                        "color": "#9B9A97",
                        "maxLines": 1,
                        "alignment": "center"
                      }
                    }
                  ]
                },
                {
                  "id": "mail_nav_mail",
                  "type": "container",
                  "layout": "vertical",
                  "action": {
                    "type": "set_view",
                    "view": "mail"
                  },
                  "style": {
                    "flex": 1,
                    "alignment": "center",
                    "padding": 6
                  },
                  "children": [
                    {
                      "id": "mail_nav_mail_label",
                      "type": "text",
                      "binding": "Mail",
                      "style": {
                        "fontSize": 11,
                        "fontWeight": "semibold",
                        "color": "#37352F",
                        "maxLines": 1,
                        "alignment": "center"
                      }
                    }
                  ]
                },
                {
                  "id": "mail_nav_calendar",
                  "type": "container",
                  "layout": "vertical",
                  "action": {
                    "type": "set_view",
                    "view": "calendar"
                  },
                  "style": {
                    "flex": 1,
                    "alignment": "center",
                    "padding": 6
                  },
                  "children": [
                    {
                      "id": "mail_nav_calendar_label",
                      "type": "text",
                      "binding": "Calendar",
                      "style": {
                        "fontSize": 11,
                        "fontWeight": "medium",
                        "color": "#9B9A97",
                        "maxLines": 1,
                        "alignment": "center"
                      }
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    "calendar": {
      "id": "cal_root",
      "type": "container",
      "layout": "vertical",
      "style": {
        "padding": 12,
        "spacing": 8,
        "background": "#FFFFFF"
      },
      "children": [
        {
          "id": "cal_title",
          "type": "text",
          "binding": "Calendar",
          "style": {
            "fontSize": 15,
            "fontWeight": "semibold",
            "color": "#37352F",
            "maxLines": 1
          }
        },
        {
          "id": "cal_columns",
          "type": "calendar",
          "variant": "columns",
          "days": 3,
          "events": "{{events}}",
          "day": "{{cal_day}}",
          "style": {
            "flex": 1,
            "height": 260,
            "headerFontSize": 12,
            "headerColor": "#37352F",
            "eventFontSize": 11,
            "eventColor": "#37352F",
            "dotColor": "#37352F",
            "todayColor": "#37352F",
            "gridColor": "#E9E9E7",
            "maxEvents": 4
          }
        },
        {
          "id": "cal_nav",
          "type": "container",
          "layout": "vertical",
          "style": {
            "spacing": 8
          },
          "children": [
            {
              "id": "cal_nav_rule",
              "type": "shape",
              "variant": "rectangle",
              "style": {
                "height": 1,
                "fillColor": "#E9E9E7"
              }
            },
            {
              "id": "cal_nav_row",
              "type": "container",
              "layout": "horizontal",
              "style": {
                "spacing": 0,
                "alignment": "center"
              },
              "children": [
                {
                  "id": "cal_nav_home",
                  "type": "container",
                  "layout": "vertical",
                  "action": {
                    "type": "set_view",
                    "view": "home"
                  },
                  "style": {
                    "flex": 1,
                    "alignment": "center",
                    "padding": 6
                  },
                  "children": [
                    {
                      "id": "cal_nav_home_label",
                      "type": "text",
                      "binding": "Home",
                      "style": {
                        "fontSize": 11,
                        "fontWeight": "medium",
                        "color": "#9B9A97",
                        "maxLines": 1,
                        "alignment": "center"
                      }
                    }
                  ]
                },
                {
                  "id": "cal_nav_dashboard",
                  "type": "container",
                  "layout": "vertical",
                  "action": {
                    "type": "set_view",
                    "view": "dashboard"
                  },
                  "style": {
                    "flex": 1,
                    "alignment": "center",
                    "padding": 6
                  },
                  "children": [
                    {
                      "id": "cal_nav_dashboard_label",
                      "type": "text",
                      "binding": "Dashboard",
                      "style": {
                        "fontSize": 11,
                        "fontWeight": "medium",
                        "color": "#9B9A97",
                        "maxLines": 1,
                        "alignment": "center"
                      }
                    }
                  ]
                },
                {
                  "id": "cal_nav_mail",
                  "type": "container",
                  "layout": "vertical",
                  "action": {
                    "type": "set_view",
                    "view": "mail"
                  },
                  "style": {
                    "flex": 1,
                    "alignment": "center",
                    "padding": 6
                  },
                  "children": [
                    {
                      "id": "cal_nav_mail_label",
                      "type": "text",
                      "binding": "Mail",
                      "style": {
                        "fontSize": 11,
                        "fontWeight": "medium",
                        "color": "#9B9A97",
                        "maxLines": 1,
                        "alignment": "center"
                      }
                    }
                  ]
                },
                {
                  "id": "cal_nav_calendar",
                  "type": "container",
                  "layout": "vertical",
                  "action": {
                    "type": "set_view",
                    "view": "calendar"
                  },
                  "style": {
                    "flex": 1,
                    "alignment": "center",
                    "padding": 6
                  },
                  "children": [
                    {
                      "id": "cal_nav_calendar_label",
                      "type": "text",
                      "binding": "Calendar",
                      "style": {
                        "fontSize": 11,
                        "fontWeight": "semibold",
                        "color": "#37352F",
                        "maxLines": 1,
                        "alignment": "center"
                      }
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  }
}
Sample content JSONMatches packages/sdk/goldens/{id}-content.json — example values for every dynamic {{binding}} in the layout.
{
  "greeting": "Good morning",
  "today": "2026-09-04T08:00:00Z",
  "cal_day": "2026-09-04",
  "kpi_rev_label": "Revenue",
  "kpi_rev": "$12.4k",
  "kpi_users_label": "New",
  "kpi_users": "18",
  "kpi_goal_label": "Goal",
  "kpi_goal": "94%",
  "unread_count": "3 unread",
  "mail_from_1": "Acme Billing",
  "mail_subject_1": "Invoice for September",
  "mail_preview_1": "Please find attached this month's invoice.",
  "mail_from_2": "Jordan Lee",
  "mail_subject_2": "Design review notes",
  "mail_preview_2": "Sharing the deck from this afternoon.",
  "mail_from_3": "Ramp",
  "mail_subject_3": "3 receipts need review",
  "mail_preview_3": "We found receipts that are missing a memo.",
  "rev_hours": [
    9,
    10,
    11,
    12,
    13,
    14,
    15,
    16
  ],
  "rev_cumulative": [
    820,
    1960,
    3640,
    5740,
    7280,
    9200,
    10960,
    12400
  ],
  "hour_labels": [
    "9a",
    "10a",
    "11a",
    "12p",
    "1p",
    "2p",
    "3p",
    "4p"
  ],
  "hourly_rev": [
    820,
    1140,
    1680,
    2100,
    1540,
    1920,
    1760,
    1440
  ],
  "channel_shares": [
    6800,
    3600,
    2000
  ],
  "channel_names": [
    "App",
    "Webapp",
    "B2B"
  ],
  "events": [
    {
      "start": "2026-09-04T09:00:00",
      "title": "Standup",
      "color": "#37352F"
    },
    {
      "start": "2026-09-04T14:30:00",
      "title": "Design review",
      "color": "#787774"
    },
    {
      "start": "2026-09-05T11:00:00",
      "title": "Board call",
      "color": "#37352F"
    },
    {
      "start": "2026-09-05T16:00:00",
      "title": "Invoice pass",
      "color": "#9B9A97"
    },
    {
      "start": "2026-09-06",
      "title": "Offsite",
      "color": "#D3D1CB"
    },
    {
      "start": "2026-09-06T13:00:00",
      "title": "Customer lunch",
      "color": "#787774"
    }
  ]
}

Techniques worth copying

  • S1 — static caption literals above dynamic stat values; trailing brand image
  • S2 — explicit spacer gaps; maxLines on all text
  • M1 — horizontal split with flex: 1 text column + trailing hero stat
  • M2 — nested gray cards (#F2F2F7); accent bars beside calendar rows
  • L1 — ring container 82×82 with circular_progress size 70; value centered in z-stack
  • L2fillContainer hero image; href on shop rows; sf-rounded headers
  • v2-vocab-flip — in-place reveal; whole-card toggle_flag + visibleFlag; prompt stays, answer appears on the same screen; no views
  • v2-today-agendaevent[], not three text rows
  • v2-revenue-line — left copy + insight; full-height cumulative line with showAxes: true
  • v2-weekday-bar — light split; 7-day bars with axes, showAverage, and red/yellow/green colorScale
  • v2-activity-grid — ints for rows / columns; colorScale per cell
  • v2-mission-control — home summary + bottom nav Home | Dashboard | Mail | Calendar; dashboard is today's revenue (cumulative line, hourly bars, App / Webapp / B2B mix)

Ready to build? Start with Layouts or Glance AI.