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.

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

@glance.cool
Profile views today
57
Post views today
23

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

Layout file JSON

Matches 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 JSON

Matches 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

Latest video
How we built Glance widgets
Design system walkthrough and live preview workflow.

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

Layout file JSON

Matches 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 JSON

Matches 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

Widget monitor
Successful updates
Glance backend · rolling 24h window
554

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

Layout file JSON

Matches 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 JSON

Matches 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

Activity
8,432
Steps
4.2 mi
Distance
Spend today
Meta Ads
$127.40
Up next
Team standup
2:00 PM
Work
Design review
4:30 PM
Glance

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

Layout file JSON

Matches 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 JSON

Matches 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

App Performance Today
Custom pipeline · Today
$4.2K
Revenue
47
Leads
2.1%
Churn
128
New users
Quarterly target
On track for Q3 goal
24 days ago

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

Layout file JSON

Matches 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 JSON

Matches 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

Outfit of the Day
✨ Spring vibes
@stylebyjade
Linen blazer
🛍
Wide-leg jeans
🛍
Platform loafers
🛍
Mini tote bag
🛍
Tap 🛍 on any piece to shop

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

Layout file JSON

Matches 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 JSON

Matches 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"
}

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

Ready to build? Start with Layouts or Glance AI.