Skip to main content

Report classes

The Agent can write a report as a single HTML document and show it as an artifact, as HTML widgets and artifacts describes. To make such reports look consistent, the Agent's HTML report skill, agent/src/skills/html-report.md, gives the model one stylesheet and a library of components. This page lists the classes of that stylesheet and the colors that it uses. The other two HTML skills, html-table.md and html-chart.md, contain no stylesheet.

The skill instructs the model to produce a document with these properties:

  • The document is self-contained. It uses inline CSS and inline SVG charts, has no external dependencies, and loads no font or image from the network.
  • The document uses the font family Montserrat, -apple-system, "Segoe UI", sans-serif, although the stylesheet's body rule sets Montserrat, sans-serif.
  • The page is sized for A4 with @page { size: A4 portrait; margin: 15mm 15mm 25mm 20mm }, and pages break at the .page-break class.
  • The document prints with print-color-adjust: exact under @media print.

A .page is 170 mm wide. The body text is 9.5 pt with a line height of 1.35, in black on white. The tables on this page are generated from the skill file.

Components​

This table lists the classes that the skill offers for building a report, and what each one is.

Cover Page Components​

ClassWhat it is
  • title-banner
Black banner with the report type in white and the organization name on the right
  • cover-layout
Two-column layout (58% left / 38% right)
  • company-name
  • report-title
18pt title
  • subtitle
10pt tagline
  • analyst-block
Author attribution
  • section-header
Section divider with thin gray rule
  • body-text
  • .lead-in
Justified paragraphs with bold+underlined first sentence
  • kfd-table
Key data sidebar table (label/value pairs)
  • chart-container
SVG chart wrapper

Financial Table Components​

ClassWhat it is
  • fin-table
Full-width data table with header row
  • fin-table .sub-row
Italicized indented sub-rows (e.g., % y/y)
  • fin-table .gap-row
Visual spacer between table sections
  • fin-source
Source attribution below tables

Chart Components​

ClassWhat it is
no classIndexed performance line chart (two-series, company vs benchmark)
no classTarget price & ratings history chart (dual-axis with step-line)
no classAny custom SVG chart: bar charts, area charts, waterfall charts, pie/donut charts, scatter plots

Rating / Scoring Components​

ClassWhat it is
  • rating-box
Bordered box with rating definitions
  • tp-history-table
Red-header companion table for chart data
  • tp-layout
Side-by-side chart + table layout

Full-Width Narrative Components​

ClassWhat it is
no classUse body-text class across full page width (remove cover-layout wrapper)
no classUse multiple section-header dividers to organize content
no classTables can be interspersed with narrative paragraphs

Colors​

This table is the skill's color reference. The same values appear as literals in the stylesheet.

ElementColorValue
Body textBlack#000000
Page backgroundWhite#FFFFFF
Organization nameBlack#000000
Title banner backgroundBlack#000000
Title banner textWhite#FFFFFF
Main accent / footer line / table headersBlue#0086BF
Group 1 / Primary chart seriesLight Blue#00B5E2
Group 2 / Secondary chart seriesPink#EF6689
Group 3 / Tertiary chart seriesGreen#16A34A
Group 4 / Quaternary chart seriesOrange#FB923C
Group 5 / Quinary chart seriesYellow#CCBE00
Table rulesLight gray#CCCCCC
Chart gridlinesLight gray#E0E0E0
Section header underlinesLight gray#CCCCCC

Rules of the stylesheet​

This table lists the rules of the report stylesheet, with their declarations.

SelectorInsideDeclarations
body
  • @media print
  • -webkit-print-color-adjust: exact
  • print-color-adjust: exact
.page-break
  • @media print
  • page-break-before: always
.no-break
  • @media print
  • page-break-inside: avoid
*top level
  • margin: 0
  • padding: 0
  • box-sizing: border-box
bodytop level
  • font-family: Montserrat, sans-serif
  • font-size: 9.5pt
  • line-height: 1.35
  • color: #000000
  • background: #FFFFFF
.pagetop level
  • width: 170mm
  • margin: 0 auto
  • position: relative
  • padding-bottom: 20mm
.page-headertop level
  • display: flex
  • justify-content: space-between
  • align-items: center
  • margin-bottom: 8px
.page-header .header-texttop level
  • font-size: 9pt
  • color: #000000
  • font-weight: normal
.brand-nametop level
  • font-size: 9pt
  • font-weight: bold
  • letter-spacing: 0.08em
  • text-transform: uppercase
  • color: #000000
.page-footertop level
  • font-size: 7pt
  • color: #666666
  • line-height: 1.3
  • border-top: 1.5px solid #0086BF
  • padding-top: 4px
  • margin-top: auto
  • display: flex
  • justify-content: space-between
  • align-items: center
.page-footer .footer-logotop level
  • font-weight: bold
  • letter-spacing: 0.08em
  • text-transform: uppercase
.title-bannertop level
  • width: 100%
  • margin-bottom: 4px
  • padding: 14px 16px
  • box-sizing: border-box
  • display: flex
  • justify-content: space-between
  • align-items: center
  • background: #000000
  • color: #FFFFFF
  • font-size: 14pt
  • font-weight: bold
  • letter-spacing: 0.12em
  • text-transform: uppercase
.title-banner .banner-orgtop level
  • font-size: 9pt
  • letter-spacing: 0.08em
.report-datetop level
  • text-align: right
  • font-size: 10pt
  • margin-bottom: 10px
.cover-layouttop level
  • display: flex
  • gap: 20px
.cover-lefttop level
  • flex: 0 0 58%
  • max-width: 58%
.cover-righttop level
  • flex: 0 0 38%
  • max-width: 38%
.full-widthtop level
  • width: 100%
.company-name, .report-titletop level
  • font-size: 18pt
  • font-weight: normal
  • margin-bottom: 4px
.subtitletop level
  • font-size: 10pt
  • font-weight: normal
  • margin-bottom: 14px
  • color: #000000
.analyst-blocktop level
  • font-size: 9pt
  • margin-bottom: 14px
.analyst-block .labeltop level
  • color: #666666
.section-headertop level
  • font-size: 11pt
  • font-weight: normal
  • border-bottom: 1px solid #CCCCCC
  • padding-bottom: 2px
  • margin-top: 12px
  • margin-bottom: 8px
.body-texttop level
  • text-align: justify
  • font-size: 9.5pt
  • line-height: 1.35
  • margin-bottom: 6px
.body-text .lead-intop level
  • font-weight: bold
  • text-decoration: underline
.kfd-titletop level
  • font-size: 11pt
  • font-weight: normal
  • margin-bottom: 6px
.kfd-tabletop level
  • width: 100%
  • border-collapse: collapse
  • font-size: 9pt
.kfd-table tdtop level
  • padding: 2px 0
  • border-bottom: 0.5px solid #E0E0E0
.kfd-table td:first-childtop level
  • text-align: left
.kfd-table td:last-childtop level
  • text-align: right
  • font-weight: normal
.kfd-sourcetop level
  • font-size: 8pt
  • margin-top: 2px
  • margin-bottom: 10px
.kfd-closingtop level
  • font-size: 8pt
  • font-style: italic
  • margin-bottom: 2px
.chart-titletop level
  • font-size: 9pt
  • font-weight: normal
  • margin-bottom: 4px
.chart-sourcetop level
  • font-size: 8pt
  • margin-top: 2px
.chart-container svgtop level
  • width: 100%
  • height: auto
.chart-container svg texttop level
  • font-family: Montserrat, sans-serif
.fin-section-titletop level
  • font-size: 10pt
  • font-weight: normal
  • margin-bottom: 4px
  • margin-top: 14px
.fin-tabletop level
  • width: 100%
  • border-collapse: collapse
  • font-size: 9pt
  • margin-bottom: 4px
.fin-table thead thtop level
  • font-weight: bold
  • text-align: right
  • padding: 3px 6px
  • border-bottom: 1px solid #000000
  • font-size: 9pt
.fin-table thead th:first-childtop level
  • text-align: left
.fin-table tbody tdtop level
  • text-align: right
  • padding: 2px 6px
  • border-bottom: 0.5px solid #E0E0E0
.fin-table tbody td:first-childtop level
  • text-align: left
.fin-table .sub-row td:first-childtop level
  • padding-left: 15px
  • font-style: italic
.fin-table .sub-row tdtop level
  • font-style: italic
.fin-table .gap-row tdtop level
  • border-bottom: none
  • padding: 4px 0
.fin-table.red-header thead thtop level
  • background-color: #0086BF
  • color: #FFFFFF
  • border-bottom: none
.fin-sourcetop level
  • font-size: 8pt
  • margin-bottom: 10px
.comparison-tabletop level
  • width: 100%
  • border-collapse: collapse
  • font-size: 9pt
  • margin-bottom: 8px
.comparison-table thead thtop level
  • background-color: #0086BF
  • color: #FFFFFF
  • padding: 4px 6px
  • text-align: center
  • font-weight: bold
  • font-size: 8pt
.comparison-table thead th:first-childtop level
  • text-align: left
.comparison-table tbody tdtop level
  • padding: 3px 6px
  • text-align: center
  • border-bottom: 0.5px solid #E0E0E0
  • font-size: 8.5pt
.comparison-table tbody td:first-childtop level
  • text-align: left
  • font-weight: bold
.tp-section-titletop level
  • font-size: 11pt
  • font-weight: bold
  • text-decoration: underline
  • margin-bottom: 8px
.tp-layouttop level
  • display: flex
  • gap: 15px
  • margin-bottom: 10px
.tp-charttop level
  • flex: 0 0 55%
.tp-table-wraptop level
  • flex: 0 0 42%
.tp-history-tabletop level
  • width: 100%
  • border-collapse: collapse
  • font-size: 8pt
.tp-history-table thead thtop level
  • background-color: #0086BF
  • color: #FFFFFF
  • padding: 3px 4px
  • text-align: center
  • font-weight: bold
  • font-size: 7.5pt
.tp-history-table tbody tdtop level
  • padding: 3px 4px
  • text-align: center
  • border-bottom: 0.5px solid #E0E0E0
  • font-size: 8pt
.tp-attributiontop level
  • font-size: 8pt
  • margin-top: 6px
  • margin-bottom: 12px
.rating-boxtop level
  • border: 1px solid #000000
  • padding: 8px 10px
  • font-size: 8.5pt
  • line-height: 1.4
  • margin-bottom: 10px
.rating-box .rating-nametop level
  • font-weight: bold
  • text-decoration: underline
.rating-box .footnotetop level
  • font-style: italic
  • margin-top: 4px
.callout-boxtop level
  • border-left: 3px solid #0086BF
  • background: #FAFAFA
  • padding: 8px 12px
  • margin: 10px 0
  • font-size: 9pt
.callout-box .callout-titletop level
  • font-weight: bold
  • margin-bottom: 4px
.highlight-boxtop level
  • border: 1px solid #00B5E2
  • background: #F0F8FF
  • padding: 8px 12px
  • margin: 10px 0
  • font-size: 9pt
.metric-rowtop level
  • display: flex
  • gap: 12px
  • margin: 10px 0
.metric-cardtop level
  • flex: 1
  • border: 1px solid #E0E0E0
  • padding: 8px 10px
  • text-align: center
.metric-card .metric-valuetop level
  • font-size: 16pt
  • font-weight: bold
  • color: #000000
.metric-card .metric-labeltop level
  • font-size: 7.5pt
  • color: #666666
  • margin-top: 2px