You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cf07643
Browse filesBrowse the repository at this point in the historyBrowse files
|`--font-family`|`typography.fontFamily`|`String`|`null` (system font) | Font family name |
757
-
|`--line-height-body`|`typography.lineHeight`|`Double`|`1.0`| Line height multiplier |
757
+
|`--line-height-body`|`typography.lineHeight` / `typography.lineHeightPx`|`Double`|`null` (existing layout defaults) | Unitless multiplier (`"1.5"`) or absolute Android scaled size (`"24px"` maps to 24sp); the `px` suffix is case-insensitive |
758
+
|`--message-font-size`|`typography.fontSize`|`Double`|`null` (Material default) | Message body text size (px); positive and finite when converted to Compose's float size |
759
+
|`--message-font-weight`|`typography.fontWeight`|`Int`|`null` (Material default) | Message body text weight (`1`–`1000`, `normal`, `bold`, `lighter`, `bolder`) |
760
+
|`--message-concierge-link-font-weight`|`typography.linkFontWeight`|`Int?`|`null` (inherits body weight) | Inline hyperlink text weight in concierge messages; same valid range/names as body weight |
761
+
|`--message-concierge-link-underline`|`typography.linkUnderline`|`Boolean`|`true`| Whether inline hyperlinks are underlined (WCAG 1.4.1) |
762
+
763
+
Body size and weight apply to user and concierge message bodies, and to the privacy
764
+
notice that shares the body style. Link overrides apply to inline concierge response
765
+
links, including links inside lists and blockquotes, not Sources rows or other UI
766
+
links. Markdown headings and code retain their existing specialized styling.
767
+
CSS theme values must be
768
+
strings (for example `"--message-concierge-link-underline": "false"`).
769
+
Malformed or out-of-range sizes and weights are ignored with a warning; existing
770
+
values/defaults are preserved. Markdown-bold links remain at least weight `700`,
771
+
even when the configured link weight is lower. Italic links retain italics.
772
+
Programmatic `ConciergeTypography` values receive the same size/weight validation
773
+
when supplied to `ConciergeTheme`; invalid values fall back to the text style
774
+
defaults. An explicit `--line-height-body` is retained as paragraph styling in
775
+
concierge responses, including list items. Omitting it preserves existing response
776
+
line spacing. For message bubble styles, setting only `--message-font-size` scales
777
+
the inherited `sp` line height proportionally to avoid cramped lines. Inherited
778
+
`em` line heights stay unchanged because they already scale with font size. For example,
779
+
`"24px"` remains 24sp when the body font size changes, whereas `"1.5"` scales with
780
+
that font size. Headings and fenced code blocks retain their existing paragraph
781
+
spacing, including when nested in a list or blockquote.
782
+
Inline code remains part of its surrounding body paragraph.
783
+
Response text and list items use the resolved body font size as their base font
784
+
size so Compose's accessibility font scaling resolves paragraph line height
785
+
consistently with Material text. Body line height remains paragraph-scoped and is
786
+
not reapplied globally to headings or fenced code.
787
+
Programmatic themes can set `lineHeightPx` for an absolute size or `lineHeight`
788
+
for a multiplier; if both are set, `lineHeightPx` takes precedence. Invalid line
789
+
heights are ignored with a warning.
790
+
791
+
Underlining helps distinguish links but does not replace text/background contrast.
792
+
Check the actual message background: WCAG AA requires at least 4.5:1 for normal
793
+
text, or 3:1 for large text. Heavier weight alone does not improve the contrast
794
+
ratio; the lower threshold applies only when text meets WCAG's large-text criteria.
758
795
759
796
### Colors - Primary
760
797
@@ -1558,7 +1595,11 @@ This section documents which properties are fully implemented, partially impleme
1558
1595
| CSS Variable | Status | Notes | Used In |
1559
1596
|--------------|--------|-------|---------|
1560
1597
|`--font-family`| ⚠️ | Parsed but not implemented | - |
1561
-
|`--line-height-body`| ✅ | Body text line height | All text components via `ConciergeStyles.withThemeTypography`|
1598
+
|`--line-height-body`| ✅ | Explicit message body line height |`ConciergeStyles.withThemeTypography`; response paragraph styling via `MarkdownParser`|
1599
+
|`--message-font-size`| ✅ | Message body text size |`ConciergeStyles.withThemeTypography`|
1600
+
|`--message-font-weight`| ✅ | Message body text weight |`ConciergeStyles.withThemeTypography`|
1601
+
|`--message-concierge-link-font-weight`| ✅ | Inline link text weight |`MarkdownRenderer` link renderers |
1602
+
|`--message-concierge-link-underline`| ✅ | Inline link underline |`MarkdownRenderer` link renderers |
1562
1603
|`--input-font-size`| ✅ | Input field text size |`ChatTextField`|
1563
1604
|`--citations-desktop-button-font-size`| ✅ | Citation pill text size |`CircularCitation`|
1564
1605
|`--disclaimer-font-size`| ✅ | Disclaimer text size |`ConciergeDisclaimer` (DisclaimerStyle) |
0 commit comments