@fundamental-styles/mcp 0.41.7-rc.8 → 0.41.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/AI_USAGE.md +425 -0
- package/data/CHANGELOG.md +53 -3
- package/data/component-catalog.json +62 -209
- package/data/components/README.md +281 -0
- package/data/components/action-bar.md +443 -0
- package/data/components/ai-busy-indicator.md +79 -0
- package/data/components/ai-loading-bar.md +66 -0
- package/data/components/avatar-btp.md +198 -0
- package/data/components/avatar-group.md +2660 -0
- package/data/components/avatar-product-switch.md +476 -0
- package/data/components/avatar.md +993 -0
- package/data/components/bar.md +574 -0
- package/data/components/border-radius.md +148 -0
- package/data/components/border.md +412 -0
- package/data/components/breadcrumb.md +546 -0
- package/data/components/button-2.md +440 -0
- package/data/components/button-action-sheet.md +292 -0
- package/data/components/button-ai.md +730 -0
- package/data/components/button-btp.md +223 -0
- package/data/components/button-button.md +233 -0
- package/data/components/button-counter.md +176 -0
- package/data/components/button-patterns.md +731 -0
- package/data/components/button-split.md +459 -0
- package/data/components/button.md +469 -0
- package/data/components/calendar.md +5784 -0
- package/data/components/card-card-media.md +707 -0
- package/data/components/card-card.md +2426 -0
- package/data/components/card-layouts.md +1201 -0
- package/data/components/card.md +2404 -0
- package/data/components/carousel.md +1506 -0
- package/data/components/code.md +139 -0
- package/data/components/component-reset.md +272 -0
- package/data/components/components-icons-businesssuiteinappsymbol-icons.md +85 -0
- package/data/components/components-icons-sap-icons.md +147 -0
- package/data/components/components-icons-tnt-icons.md +85 -0
- package/data/components/container-queries.md +221 -0
- package/data/components/container.md +227 -0
- package/data/components/dialog-docs-static-busy-indicator.md +165 -0
- package/data/components/dialog-docs-static-dialog.md +949 -0
- package/data/components/dialog-docs-static-patterns.md +147 -0
- package/data/components/dialog-docs-static-settings.md +528 -0
- package/data/components/dialog-docs-static.md +982 -0
- package/data/components/dialog.md +606 -0
- package/data/components/dynamic-page-dynamic-page.md +1914 -0
- package/data/components/dynamic-page.md +973 -0
- package/data/components/dynamic-side.md +197 -0
- package/data/components/elevation.md +110 -0
- package/data/components/feed-input.md +346 -0
- package/data/components/feed-list.md +580 -0
- package/data/components/fieldset-2.md +292 -0
- package/data/components/fieldset-forms.md +169 -0
- package/data/components/fieldset.md +381 -0
- package/data/components/flexible-column-layout.md +205 -0
- package/data/components/form-group.md +287 -0
- package/data/components/form-header.md +71 -0
- package/data/components/form-item-2.md +98 -0
- package/data/components/form-item-3.md +134 -0
- package/data/components/form-item-4.md +556 -0
- package/data/components/form-item-5.md +182 -0
- package/data/components/form-item-6.md +539 -0
- package/data/components/form-item-7.md +239 -0
- package/data/components/form-item-ai.md +158 -0
- package/data/components/form-item-file-uploader.md +445 -0
- package/data/components/form-item-forms.md +234 -0
- package/data/components/form-item-patterns.md +426 -0
- package/data/components/form-item.md +464 -0
- package/data/components/form-label-ai.md +126 -0
- package/data/components/form-label-layouts.md +306 -0
- package/data/components/form-label-patterns.md +1175 -0
- package/data/components/form-label-status-indicator.md +1083 -0
- package/data/components/form-label-step-input.md +620 -0
- package/data/components/form-label.md +2876 -0
- package/data/components/generic-tag.md +747 -0
- package/data/components/grid-list-grid-list.md +1185 -0
- package/data/components/grid-list.md +1449 -0
- package/data/components/heading.md +66 -0
- package/data/components/horizontal-navigation.md +568 -0
- package/data/components/icon-tab-bar-dev.md +190 -0
- package/data/components/icon-tab-bar.md +2620 -0
- package/data/components/icon.md +171 -0
- package/data/components/iconBusinessSuite.md +92 -0
- package/data/components/iconTnt.md +92 -0
- package/data/components/illustrated-message.md +439 -0
- package/data/components/info-label.md +348 -0
- package/data/components/input-group.md +2068 -0
- package/data/components/label.md +66 -0
- package/data/components/layout-grid.md +447 -0
- package/data/components/layout-panel.md +261 -0
- package/data/components/layouts-layout-grid.md +608 -0
- package/data/components/layouts-paddings.md +133 -0
- package/data/components/layouts-section.md +287 -0
- package/data/components/list-2.md +148 -0
- package/data/components/list-3.md +735 -0
- package/data/components/list-list.md +790 -0
- package/data/components/list-object-list.md +1225 -0
- package/data/components/list.md +1286 -0
- package/data/components/media-queries.md +168 -0
- package/data/components/menu.md +946 -0
- package/data/components/message-box-docs-static-ai.md +149 -0
- package/data/components/message-box-docs-static.md +527 -0
- package/data/components/message-page-upload-collection.md +678 -0
- package/data/components/message-page.md +256 -0
- package/data/components/message-strip.md +977 -0
- package/data/components/message-toast.md +119 -0
- package/data/components/micro-process-flow.md +991 -0
- package/data/components/navigation-menu.md +366 -0
- package/data/components/navigation-navigation.md +1245 -0
- package/data/components/navigation.md +2604 -0
- package/data/components/numeric-content.md +317 -0
- package/data/components/object-attribute.md +96 -0
- package/data/components/object-identifier.md +227 -0
- package/data/components/object-marker.md +202 -0
- package/data/components/object-number.md +327 -0
- package/data/components/object-status.md +1538 -0
- package/data/components/off-screen.md +87 -0
- package/data/components/overflow.md +97 -0
- package/data/components/padding.md +122 -0
- package/data/components/paddings.md +130 -0
- package/data/components/page.md +300 -0
- package/data/components/pagination.md +672 -0
- package/data/components/panel-layouts.md +345 -0
- package/data/components/panel.md +514 -0
- package/data/components/patterns-label.md +74 -0
- package/data/components/popover-2.md +906 -0
- package/data/components/popover-ai.md +466 -0
- package/data/components/popover-btp.md +886 -0
- package/data/components/popover-deprecated.md +308 -0
- package/data/components/popover-message-popover.md +683 -0
- package/data/components/popover-notification.md +1511 -0
- package/data/components/popover-patterns.md +1100 -0
- package/data/components/popover-popover.md +1862 -0
- package/data/components/popover-quick-view.md +385 -0
- package/data/components/popover-timepicker.md +1836 -0
- package/data/components/popover-user-menu.md +1303 -0
- package/data/components/popover.md +1938 -0
- package/data/components/progress-indicator.md +351 -0
- package/data/components/prompt-input-ai.md +226 -0
- package/data/components/prompt-input.md +226 -0
- package/data/components/rating-indicator.md +1469 -0
- package/data/components/resizable-card-layout.md +951 -0
- package/data/components/scrollbar.md +86 -0
- package/data/components/search-field.md +287 -0
- package/data/components/section.md +250 -0
- package/data/components/segmented-button.md +324 -0
- package/data/components/shellbar.md +2183 -0
- package/data/components/side-nav.md +1562 -0
- package/data/components/skeleton.md +243 -0
- package/data/components/slider.md +395 -0
- package/data/components/splitter.md +353 -0
- package/data/components/table.md +2749 -0
- package/data/components/tabs.md +658 -0
- package/data/components/text-text.md +380 -0
- package/data/components/text.md +253 -0
- package/data/components/tile.md +1132 -0
- package/data/components/time.md +818 -0
- package/data/components/title.md +153 -0
- package/data/components/titles.md +83 -0
- package/data/components/token.md +311 -0
- package/data/components/tokenizer.md +398 -0
- package/data/components/tool-header.md +1352 -0
- package/data/components/tool-layout.md +199 -0
- package/data/components/toolbar-ai.md +174 -0
- package/data/components/toolbar-btp.md +526 -0
- package/data/components/toolbar-title-bar.md +473 -0
- package/data/components/toolbar.md +432 -0
- package/data/components/tree.md +1031 -0
- package/data/components/typography.md +435 -0
- package/data/components/variant-management.md +360 -0
- package/data/components/vertical-nav.md +589 -0
- package/data/components/wizard.md +1429 -0
- package/data/examples/Components/dialog/device-specifications.example.html +39 -30
- package/data/examples/Components/shellbar/optional-items.example.html +210 -157
- package/data/examples/Components/shellbar/overflow-toolbar.example.html +202 -177
- package/data/examples/Components/shellbar/responsive-paddings.example.html +217 -146
- package/data/examples/Components/shellbar/responsiveness.example.html +825 -613
- package/data/examples/Components/user-menu/default.example.html +241 -83
- package/data/schemas/badge.schema.json +1 -1
- package/data/schemas/button-split.schema.json +1 -1
- package/data/schemas/component-frontmatter.schema.json +123 -0
- package/data/schemas/component-markdown.schema.json +81 -0
- package/data/schemas/counter.schema.json +1 -1
- package/data/schemas/dynamic-page.schema.json +1 -1
- package/data/schemas/dynamic-side-content.schema.json +1 -1
- package/data/schemas/facet.schema.json +1 -1
- package/data/schemas/fieldset.schema.json +1 -1
- package/data/schemas/flexible-column-layout.schema.json +1 -1
- package/data/schemas/form-group.schema.json +3 -2
- package/data/schemas/form-header.schema.json +1 -1
- package/data/schemas/form-label.schema.json +1 -0
- package/data/schemas/form-message.schema.json +1 -1
- package/data/schemas/grid-list.schema.json +1 -1
- package/data/schemas/input-group.schema.json +1 -1
- package/data/schemas/layout-panel.schema.json +1 -1
- package/data/schemas/page.schema.json +1 -1
- package/data/schemas/quick-view.schema.json +2 -1
- package/data/schemas/section.schema.json +1 -1
- package/data/schemas/side-nav.schema.json +1 -1
- package/data/schemas/splitter.schema.json +1 -1
- package/data/schemas/tabs.schema.json +1 -1
- package/data/schemas/tile.schema.json +1 -1
- package/data/schemas/tool-layout.schema.json +1 -1
- package/data/schemas/user-menu.schema.json +10 -0
- package/data/schemas/wizard.schema.json +1 -1
- package/package.json +1 -1
- package/src/data/load-catalog.d.ts +2 -0
- package/src/data/load-catalog.js +5 -1
- package/src/data/load-catalog.js.map +1 -1
- package/src/data/load-markdown-docs.d.ts +44 -0
- package/src/data/load-markdown-docs.js +179 -0
- package/src/data/load-markdown-docs.js.map +1 -0
- package/src/data/markdown-cache.d.ts +60 -0
- package/src/data/markdown-cache.js +218 -0
- package/src/data/markdown-cache.js.map +1 -0
- package/src/server.js +72 -1
- package/src/server.js.map +1 -1
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
---
|
|
2
|
+
component: typography
|
|
3
|
+
title: Typography
|
|
4
|
+
category: typography
|
|
5
|
+
selector:
|
|
6
|
+
cssFile:
|
|
7
|
+
sourcePath: packages/common-css/stories/typography/typography.stories.js
|
|
8
|
+
tags: []
|
|
9
|
+
dependencies: []
|
|
10
|
+
relatedComponents: []
|
|
11
|
+
stability: stable
|
|
12
|
+
generatedAt: 2026-06-09T18:29:01.680Z
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Typography
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## Basic Usage
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<span>Regular: </span><span class="sap-font-family-regular">Font Family</span><span>Light: </span><span class="sap-font-family-light">Font Family</span><span>Bold: </span><span class="sap-font-family-bold">Font Family</span><span>Semibold: </span><span class="sap-font-family-semibold">Font Family</span><span>Semibold Duplex: </span><span class="sap-font-family-semibold-duplex">Font Family</span><span>Monospaced Regular: </span><span class="sap-font-family-monospaced-regular">Font Family</span><span>Monospaced Bold: </span><span class="sap-font-family-monospaced-bold">Font Family</span><span>Black: </span><span class="sap-font-family-black">Font Family</span><span>Header: </span><span class="sap-font-family-header">Font Family</span>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
|
|
27
|
+
### FontFamily
|
|
28
|
+
|
|
29
|
+
${typographyCardStyles}
|
|
30
|
+
<p>To set the <b>font-family</b> of an element use the <code>.sap-font-family-<i style="color: red;">type</i></code> class or the <code>@include sap-font-family(<i style="color: red;">type</i>)</code> mixin.</p>
|
|
31
|
+
|
|
32
|
+
<div class="typography-card">
|
|
33
|
+
<div>Regular</div>
|
|
34
|
+
<dl>
|
|
35
|
+
<dt>Variable:</dt>
|
|
36
|
+
<dd><code>var(--sapFontFamily)</code></dd>
|
|
37
|
+
<dt>Style:</dt>
|
|
38
|
+
<dd><code>"72", "72full", Arial, Helvetica, sans-serif</code></dd>
|
|
39
|
+
<dt>Class:</dt>
|
|
40
|
+
<dd><code>.sap-font-family-regular</code></dd>
|
|
41
|
+
<dt>Mixin:</dt>
|
|
42
|
+
<dd><code>@include sap-font-family(regular)</code></dd>
|
|
43
|
+
</dl>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<div class="typography-card">
|
|
47
|
+
<div>Light</div>
|
|
48
|
+
<dl>
|
|
49
|
+
<dt>Variable:</dt>
|
|
50
|
+
<dd><code>var(--sapFontLightFamily)</code></dd>
|
|
51
|
+
<dt>Style:</dt>
|
|
52
|
+
<dd><code>"72-Light", "72-Lightfull", "72", "72full", Arial, Helvetica, sans-serif</code></dd>
|
|
53
|
+
<dt>Class:</dt>
|
|
54
|
+
<dd><code>.sap-font-family-light</code></dd>
|
|
55
|
+
<dt>Mixin:</dt>
|
|
56
|
+
<dd><code>@include sap-font-family(light)</code></dd>
|
|
57
|
+
</dl>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<div class="typography-card">
|
|
61
|
+
<div>Bold</div>
|
|
62
|
+
<dl>
|
|
63
|
+
<dt>Variable:</dt>
|
|
64
|
+
<dd><code>var(--sapFontBoldFamily)</code></dd>
|
|
65
|
+
<dt>Style:</dt>
|
|
66
|
+
<dd><code>"72-Bold", "72-Boldfull", "72", "72full", Arial, Helvetica, sans-serif</code></dd>
|
|
67
|
+
<dt>Class:</dt>
|
|
68
|
+
<dd><code>.sap-font-family-bold</code></dd>
|
|
69
|
+
<dt>Mixin:</dt>
|
|
70
|
+
<dd><code>@include sap-font-family(bold)</code></dd>
|
|
71
|
+
</dl>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<div class="typography-card">
|
|
75
|
+
<div>Semibold</div>
|
|
76
|
+
<dl>
|
|
77
|
+
<dt>Variable:</dt>
|
|
78
|
+
<dd><code>var(--sapFontSemiboldFamily)</code></dd>
|
|
79
|
+
<dt>Style:</dt>
|
|
80
|
+
<dd><code>"72-Semibold", "72-Semiboldfull", "72", "72full", Arial, Helvetica, sans-serif</code></dd>
|
|
81
|
+
<dt>Class:</dt>
|
|
82
|
+
<dd><code>.sap-font-family-semibold</code></dd>
|
|
83
|
+
<dt>Mixin:</dt>
|
|
84
|
+
<dd><code>@include sap-font-family(semibold)</code></dd>
|
|
85
|
+
</dl>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
<div class="typography-card">
|
|
89
|
+
<div>Semibold Duplex</div>
|
|
90
|
+
<dl>
|
|
91
|
+
<dt>Variable:</dt>
|
|
92
|
+
<dd><code>var(--sapFontSemiboldDuplexFamily)</code></dd>
|
|
93
|
+
<dt>Style:</dt>
|
|
94
|
+
<dd><code>"72-SemiboldDuplex", "72-SemiboldDuplexfull", "72", "72full", Arial, Helvetica, sans-serif</code></dd>
|
|
95
|
+
<dt>Class:</dt>
|
|
96
|
+
<dd><code>.sap-font-family-semibold-duplex</code></dd>
|
|
97
|
+
<dt>Mixin:</dt>
|
|
98
|
+
<dd><code>@include sap-font-family(semibold-duplex)</code></dd>
|
|
99
|
+
</dl>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<div class="typography-card">
|
|
103
|
+
<div>Monospaced Regular</div>
|
|
104
|
+
<dl>
|
|
105
|
+
<dt>Variable:</dt>
|
|
106
|
+
<dd><code>var(--sapContent_MonospaceFontFamily)</code></dd>
|
|
107
|
+
<dt>Style:</dt>
|
|
108
|
+
<dd><code>"72Mono", "72Monofull", Lucida Console, monospace</code></dd>
|
|
109
|
+
<dt>Class:</dt>
|
|
110
|
+
<dd><code>.sap-font-family-monospaced-regular</code></dd>
|
|
111
|
+
<dt>Mixin:</dt>
|
|
112
|
+
<dd><code>@include sap-font-family(monospaced-regular)</code></dd>
|
|
113
|
+
</dl>
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
<div class="typography-card">
|
|
117
|
+
<div>Monospaced Bold</div>
|
|
118
|
+
<dl>
|
|
119
|
+
<dt>Variable:</dt>
|
|
120
|
+
<dd><code>var(--sapContent_MonospaceBoldFontFamily)</code></dd>
|
|
121
|
+
<dt>Style:</dt>
|
|
122
|
+
<dd><code>"72Mono-Bold", "72Mono-Boldfull", Lucida Console, monospace</code></dd>
|
|
123
|
+
<dt>Class:</dt>
|
|
124
|
+
<dd><code>.sap-font-family-monospaced-bold</code></dd>
|
|
125
|
+
<dt>Mixin:</dt>
|
|
126
|
+
<dd><code>@include sap-font-family(monospaced-bold)</code></dd>
|
|
127
|
+
</dl>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
<div class="typography-card">
|
|
131
|
+
<div>Black</div>
|
|
132
|
+
<dl>
|
|
133
|
+
<dt>Variable:</dt>
|
|
134
|
+
<dd><code>var(--sapFontBlackFamily)</code></dd>
|
|
135
|
+
<dt>Style:</dt>
|
|
136
|
+
<dd><code>"72Black", "72", "72full", Arial, Helvetica, sans-serif</code></dd>
|
|
137
|
+
<dt>Class:</dt>
|
|
138
|
+
<dd><code>.sap-font-family-black</code></dd>
|
|
139
|
+
<dt>Mixin:</dt>
|
|
140
|
+
<dd><code>@include sap-font-family(black)</code></dd>
|
|
141
|
+
</dl>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
<div class="typography-card">
|
|
145
|
+
<div>Header</div>
|
|
146
|
+
<dl>
|
|
147
|
+
<dt>Variable:</dt>
|
|
148
|
+
<dd><code>var(--sapFontHeaderFamily)</code></dd>
|
|
149
|
+
<dt>Style:</dt>
|
|
150
|
+
<dd><code>"72", "72full", Arial, Helvetica, sans-serif</code></dd>
|
|
151
|
+
<dt>Class:</dt>
|
|
152
|
+
<dd><code>.sap-font-family-header</code></dd>
|
|
153
|
+
<dt>Mixin:</dt>
|
|
154
|
+
<dd><code>@include sap-font-family(header)</code></dd>
|
|
155
|
+
</dl>
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
```html
|
|
159
|
+
<span>Regular: </span><span class="sap-font-family-regular">Font Family</span><span>Light: </span><span class="sap-font-family-light">Font Family</span><span>Bold: </span><span class="sap-font-family-bold">Font Family</span><span>Semibold: </span><span class="sap-font-family-semibold">Font Family</span><span>Semibold Duplex: </span><span class="sap-font-family-semibold-duplex">Font Family</span><span>Monospaced Regular: </span><span class="sap-font-family-monospaced-regular">Font Family</span><span>Monospaced Bold: </span><span class="sap-font-family-monospaced-bold">Font Family</span><span>Black: </span><span class="sap-font-family-black">Font Family</span><span>Header: </span><span class="sap-font-family-header">Font Family</span>
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### FontSize
|
|
163
|
+
|
|
164
|
+
${typographyCardStyles}
|
|
165
|
+
<p>To set the <b>font-size</b> of an element use the <code>.sap-font-size-<i style="color: red;">value</i></code> class or the <code>@include sap-font-size(<i style="color: red;">value</i>)</code> mixin.</p>
|
|
166
|
+
|
|
167
|
+
<div class="typography-card">
|
|
168
|
+
<div>Header 6</div>
|
|
169
|
+
<dl>
|
|
170
|
+
<dt>Variable:</dt>
|
|
171
|
+
<dd><code>var(--sapFontHeader6Size)</code></dd>
|
|
172
|
+
<dt>Size:</dt>
|
|
173
|
+
<dd><code>0.875rem</code> (14px)</dd>
|
|
174
|
+
<dt>Class:</dt>
|
|
175
|
+
<dd><code>.sap-font-size-header-6</code></dd>
|
|
176
|
+
<dt>Mixin:</dt>
|
|
177
|
+
<dd><code>@include sap-font-size(header-6)</code></dd>
|
|
178
|
+
</dl>
|
|
179
|
+
</div>
|
|
180
|
+
|
|
181
|
+
<div class="typography-card">
|
|
182
|
+
<div>Header 5</div>
|
|
183
|
+
<dl>
|
|
184
|
+
<dt>Variable:</dt>
|
|
185
|
+
<dd><code>var(--sapFontHeader5Size)</code></dd>
|
|
186
|
+
<dt>Size:</dt>
|
|
187
|
+
<dd><code>1rem</code> (16px)</dd>
|
|
188
|
+
<dt>Class:</dt>
|
|
189
|
+
<dd><code>.sap-font-size-header-5</code></dd>
|
|
190
|
+
<dt>Mixin:</dt>
|
|
191
|
+
<dd><code>@include sap-font-size(header-5)</code></dd>
|
|
192
|
+
</dl>
|
|
193
|
+
</div>
|
|
194
|
+
|
|
195
|
+
<div class="typography-card">
|
|
196
|
+
<div>Header 4</div>
|
|
197
|
+
<dl>
|
|
198
|
+
<dt>Variable:</dt>
|
|
199
|
+
<dd><code>var(--sapFontHeader4Size)</code></dd>
|
|
200
|
+
<dt>Size:</dt>
|
|
201
|
+
<dd><code>1.125rem</code> (18px)</dd>
|
|
202
|
+
<dt>Class:</dt>
|
|
203
|
+
<dd><code>.sap-font-size-header-4</code></dd>
|
|
204
|
+
<dt>Mixin:</dt>
|
|
205
|
+
<dd><code>@include sap-font-size(header-4)</code></dd>
|
|
206
|
+
</dl>
|
|
207
|
+
</div>
|
|
208
|
+
|
|
209
|
+
<div class="typography-card">
|
|
210
|
+
<div>Header 3</div>
|
|
211
|
+
<dl>
|
|
212
|
+
<dt>Variable:</dt>
|
|
213
|
+
<dd><code>var(--sapFontHeader3Size)</code></dd>
|
|
214
|
+
<dt>Size:</dt>
|
|
215
|
+
<dd><code>1.25rem</code> (20px)</dd>
|
|
216
|
+
<dt>Class:</dt>
|
|
217
|
+
<dd><code>.sap-font-size-header-3</code></dd>
|
|
218
|
+
<dt>Mixin:</dt>
|
|
219
|
+
<dd><code>@include sap-font-size(header-3)</code></dd>
|
|
220
|
+
</dl>
|
|
221
|
+
</div>
|
|
222
|
+
|
|
223
|
+
<div class="typography-card">
|
|
224
|
+
<div>Header 2</div>
|
|
225
|
+
<dl>
|
|
226
|
+
<dt>Variable:</dt>
|
|
227
|
+
<dd><code>var(--sapFontHeader2Size)</code></dd>
|
|
228
|
+
<dt>Size:</dt>
|
|
229
|
+
<dd><code>1.5rem</code> (24px)</dd>
|
|
230
|
+
<dt>Class:</dt>
|
|
231
|
+
<dd><code>.sap-font-size-header-2</code></dd>
|
|
232
|
+
<dt>Mixin:</dt>
|
|
233
|
+
<dd><code>@include sap-font-size(header-2)</code></dd>
|
|
234
|
+
</dl>
|
|
235
|
+
</div>
|
|
236
|
+
|
|
237
|
+
<div class="typography-card">
|
|
238
|
+
<div>Header 1</div>
|
|
239
|
+
<dl>
|
|
240
|
+
<dt>Variable:</dt>
|
|
241
|
+
<dd><code>var(--sapFontHeader1Size)</code></dd>
|
|
242
|
+
<dt>Size:</dt>
|
|
243
|
+
<dd><code>2.25rem</code> (36px)</dd>
|
|
244
|
+
<dt>Class:</dt>
|
|
245
|
+
<dd><code>.sap-font-size-header-1</code></dd>
|
|
246
|
+
<dt>Mixin:</dt>
|
|
247
|
+
<dd><code>@include sap-font-size(header-1)</code></dd>
|
|
248
|
+
</dl>
|
|
249
|
+
</div>
|
|
250
|
+
|
|
251
|
+
<div class="typography-card">
|
|
252
|
+
<div>Small</div>
|
|
253
|
+
<dl>
|
|
254
|
+
<dt>Variable:</dt>
|
|
255
|
+
<dd><code>var(--sapFontSmallSize)</code></dd>
|
|
256
|
+
<dt>Size:</dt>
|
|
257
|
+
<dd><code>0.75rem</code> (12px)</dd>
|
|
258
|
+
<dt>Class:</dt>
|
|
259
|
+
<dd><code>.sap-font-size-small</code></dd>
|
|
260
|
+
<dt>Mixin:</dt>
|
|
261
|
+
<dd><code>@include sap-font-size(small)</code></dd>
|
|
262
|
+
</dl>
|
|
263
|
+
</div>
|
|
264
|
+
|
|
265
|
+
<div class="typography-card">
|
|
266
|
+
<div>Medium</div>
|
|
267
|
+
<dl>
|
|
268
|
+
<dt>Variable:</dt>
|
|
269
|
+
<dd><code>var(--sapFontSize)</code></dd>
|
|
270
|
+
<dt>Size:</dt>
|
|
271
|
+
<dd><code>0.875rem</code> (14px)</dd>
|
|
272
|
+
<dt>Class:</dt>
|
|
273
|
+
<dd><code>.sap-font-size-medium</code></dd>
|
|
274
|
+
<dt>Mixin:</dt>
|
|
275
|
+
<dd><code>@include sap-font-size(medium)</code></dd>
|
|
276
|
+
</dl>
|
|
277
|
+
</div>
|
|
278
|
+
|
|
279
|
+
<div class="typography-card">
|
|
280
|
+
<div>Large</div>
|
|
281
|
+
<dl>
|
|
282
|
+
<dt>Variable:</dt>
|
|
283
|
+
<dd><code>var(--sapFontLargeSize)</code></dd>
|
|
284
|
+
<dt>Size:</dt>
|
|
285
|
+
<dd><code>1rem</code> (16px)</dd>
|
|
286
|
+
<dt>Class:</dt>
|
|
287
|
+
<dd><code>.sap-font-size-large</code></dd>
|
|
288
|
+
<dt>Mixin:</dt>
|
|
289
|
+
<dd><code>@include sap-font-size(large)</code></dd>
|
|
290
|
+
</dl>
|
|
291
|
+
</div>
|
|
292
|
+
|
|
293
|
+
```html
|
|
294
|
+
<span>Header-6: </span><span class="sap-font-size-header-6">Font Size</span><span>Header-5: </span><span class="sap-font-size-header-5">Font Size</span><span>Header-4: </span><span class="sap-font-size-header-4">Font Size</span><span>Header-3: </span><span class="sap-font-size-header-3">Font Size</span><span>Header-2: </span><span class="sap-font-size-header-2">Font Size</span><span>Header-1: </span><span class="sap-font-size-header-1">Font Size</span><span>Small: </span><span class="sap-font-size-small">Font Size</span><span>Medium: </span><span class="sap-font-size-medium">Font Size</span><span>Large: </span><span class="sap-font-size-large">Font Size</span>
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
### LineHeight
|
|
298
|
+
|
|
299
|
+
${typographyCardStyles}
|
|
300
|
+
<p>In general, there is no line height applied to text, as the line height e.g. affects the padding.
|
|
301
|
+
If a more generous line height is required for long continuous text, a consistent line height of 1.5 is recommended.</p>
|
|
302
|
+
|
|
303
|
+
<div class="typography-card">
|
|
304
|
+
<div>Normal Line Height</div>
|
|
305
|
+
<dl>
|
|
306
|
+
<dt>Class:</dt>
|
|
307
|
+
<dd><code>.sap-font-line-height</code></dd>
|
|
308
|
+
<dt>Mixin:</dt>
|
|
309
|
+
<dd><code>@include sap-font-line-height()</code></dd>
|
|
310
|
+
<dt>Value:</dt>
|
|
311
|
+
<dd>normal</dd>
|
|
312
|
+
</dl>
|
|
313
|
+
</div>
|
|
314
|
+
|
|
315
|
+
<div class="typography-card">
|
|
316
|
+
<div>Long Text Line Height</div>
|
|
317
|
+
<dl>
|
|
318
|
+
<dt>Class:</dt>
|
|
319
|
+
<dd><code>.sap-font-line-height-long</code></dd>
|
|
320
|
+
<dt>Mixin:</dt>
|
|
321
|
+
<dd><code>@include sap-font-line-height(1.5)</code></dd>
|
|
322
|
+
<dt>Value:</dt>
|
|
323
|
+
<dd>1.5</dd>
|
|
324
|
+
</dl>
|
|
325
|
+
</div>
|
|
326
|
+
|
|
327
|
+
```html
|
|
328
|
+
<span>Normal: </span><p class="sap-font-line-height">Line Height</p><span>1.5: </span><p class="sap-font-line-height-long">Line Height</p>
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
### CommonCases
|
|
332
|
+
|
|
333
|
+
${typographyCardStyles}
|
|
334
|
+
<p>Common typography use cases with combined font settings.</p>
|
|
335
|
+
|
|
336
|
+
<div class="typography-card">
|
|
337
|
+
<div>Header Text in Size 3</div>
|
|
338
|
+
<dl>
|
|
339
|
+
<dt>Style:</dt>
|
|
340
|
+
<dd><code>"72" font, 20px, #32363a</code></dd>
|
|
341
|
+
<dt>Usage:</dt>
|
|
342
|
+
<dd>Dynamic page header, object page header</dd>
|
|
343
|
+
<dt>Class:</dt>
|
|
344
|
+
<dd><code>.sap-font-header-3</code></dd>
|
|
345
|
+
<dt>Mixin:</dt>
|
|
346
|
+
<dd><code>@include sap-font(header-3)</code></dd>
|
|
347
|
+
</dl>
|
|
348
|
+
</div>
|
|
349
|
+
|
|
350
|
+
<div class="typography-card">
|
|
351
|
+
<div>Standard Text</div>
|
|
352
|
+
<dl>
|
|
353
|
+
<dt>Style:</dt>
|
|
354
|
+
<dd><code>"72" font, 14px, #32363a</code></dd>
|
|
355
|
+
<dt>Usage:</dt>
|
|
356
|
+
<dd>Text control</dd>
|
|
357
|
+
<dt>Class:</dt>
|
|
358
|
+
<dd><code>.sap-font-standard-text</code></dd>
|
|
359
|
+
<dt>Mixin:</dt>
|
|
360
|
+
<dd><code>@include sap-font(standard-text)</code></dd>
|
|
361
|
+
</dl>
|
|
362
|
+
</div>
|
|
363
|
+
|
|
364
|
+
<div class="typography-card">
|
|
365
|
+
<div>Small Detail Text</div>
|
|
366
|
+
<dl>
|
|
367
|
+
<dt>Style:</dt>
|
|
368
|
+
<dd><code>"72" font, 12px, #6a6d70</code></dd>
|
|
369
|
+
<dt>Usage:</dt>
|
|
370
|
+
<dd>Time stamps, small bylines</dd>
|
|
371
|
+
<dt>Class:</dt>
|
|
372
|
+
<dd><code>.sap-font-small-detail-text</code></dd>
|
|
373
|
+
<dt>Mixin:</dt>
|
|
374
|
+
<dd><code>@include sap-font(small-detail-text)</code></dd>
|
|
375
|
+
</dl>
|
|
376
|
+
</div>
|
|
377
|
+
|
|
378
|
+
<div class="typography-card">
|
|
379
|
+
<div>Standard Field Text</div>
|
|
380
|
+
<dl>
|
|
381
|
+
<dt>Style:</dt>
|
|
382
|
+
<dd><code>"72" font, 14px, #32363a</code></dd>
|
|
383
|
+
<dt>Usage:</dt>
|
|
384
|
+
<dd>Input field, feed input, text area</dd>
|
|
385
|
+
<dt>Class:</dt>
|
|
386
|
+
<dd><code>.sap-font-standard-field-text</code></dd>
|
|
387
|
+
<dt>Mixin:</dt>
|
|
388
|
+
<dd><code>@include sap-font(standard-field-text)</code></dd>
|
|
389
|
+
</dl>
|
|
390
|
+
</div>
|
|
391
|
+
|
|
392
|
+
<div class="typography-card">
|
|
393
|
+
<div>Labels</div>
|
|
394
|
+
<dl>
|
|
395
|
+
<dt>Style:</dt>
|
|
396
|
+
<dd><code>"72" font, 14px, #6a6d70</code></dd>
|
|
397
|
+
<dt>Usage:</dt>
|
|
398
|
+
<dd>Labels</dd>
|
|
399
|
+
<dt>Class:</dt>
|
|
400
|
+
<dd><code>.sap-font-label</code></dd>
|
|
401
|
+
<dt>Mixin:</dt>
|
|
402
|
+
<dd><code>@include sap-font(label)</code></dd>
|
|
403
|
+
</dl>
|
|
404
|
+
</div>
|
|
405
|
+
|
|
406
|
+
<div class="typography-card">
|
|
407
|
+
<div>Descriptions</div>
|
|
408
|
+
<dl>
|
|
409
|
+
<dt>Style:</dt>
|
|
410
|
+
<dd><code>"72" font, 14px, #6a6d70</code></dd>
|
|
411
|
+
<dt>Usage:</dt>
|
|
412
|
+
<dd>Object attribute</dd>
|
|
413
|
+
<dt>Class:</dt>
|
|
414
|
+
<dd><code>.sap-font-description</code></dd>
|
|
415
|
+
<dt>Mixin:</dt>
|
|
416
|
+
<dd><code>@include sap-font(description)</code></dd>
|
|
417
|
+
</dl>
|
|
418
|
+
</div>
|
|
419
|
+
|
|
420
|
+
```html
|
|
421
|
+
<span>Header Text in Size 3: </span><span class="sap-font-header-3">Used in dynamic page header, object page header</span><span>Standard Text: </span><span class="sap-font-standard-text">Used in text control</span><span>Small Detail Text: </span><span class="sap-font-small-detail-text">Used in time stamps, small bylines</span><span>Standard Field Text: </span><span class="sap-font-standard-field-text">Used in input field, feed input, text area</span><span>Labels: </span><span class="sap-font-label">Used in labels</span><span>Descriptions: </span><span class="sap-font-description">Used in object attribute</span>
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
## Accessibility
|
|
425
|
+
|
|
426
|
+
- Use semantic HTML elements where appropriate
|
|
427
|
+
- Include proper ARIA attributes for interactive elements
|
|
428
|
+
- Ensure keyboard navigation support
|
|
429
|
+
- Provide adequate color contrast
|
|
430
|
+
|
|
431
|
+
## Source
|
|
432
|
+
|
|
433
|
+
This documentation was automatically generated from: `packages/common-css/stories/typography/typography.stories.js`
|
|
434
|
+
|
|
435
|
+
For the latest updates and interactive examples, see [Storybook](https://sap.github.io/fundamental-styles/).
|