Files
HMDesign/packages/ui/src/theme/label.css
T

18 lines
837 B
CSS

/* Label mapping: typography and color only. Required star, Helper and Error message are consumer composition, not part of Label.
ui_viz has no standalone Label spec; the Field Label role is owned by Input / Textarea (docs/components/input.md §9, §10). */
:root, [data-hm-theme] {
/* ui_viz: docs/components/input.md §9 Field Label → label-md 14/20/500 (CANONICAL_OVERRIDE of the 13/700 Source); textarea.md §2 */
--hm-label-font-size: 14px;
--hm-label-line-height: 20px;
--hm-label-font-weight: 500;
/* ui_viz: docs/components/input.md §10, §16 — color.fg.secondary, Confirmed */
--hm-label-text: var(--hm-sem-fg-secondary);
}
[data-slot="label"] {
color: var(--hm-label-text);
font-size: var(--hm-label-font-size);
line-height: var(--hm-label-line-height);
font-weight: var(--hm-label-font-weight);
}