Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Use colors, fonts, and CSS to make your control add-ins complement the Business Central interface.
Note
This article is for developers who style content inside a control add-in. It doesn't describe how to change the colors of the entire client or distinguish production and sandbox environments.
Design control add-ins for the client
Control add-ins display contextual functionality alongside business data. Typical uses include data visualizations, third-party controls, and related content from another data source.
Follow these principles when designing a control add-in:
- Apply similar patterns for commands, navigation, and data presentation.
- Favor content over decorative interface elements.
- Design for all platforms and input methods.
- Make it accessible to all users.
- Make it enjoyable and keep users in control.
The following tables list selected colors and font definitions used by the client. Individual components can use different shades and styles depending on their context. Use these values as styling examples, not as a complete specification of the client interface.
Test text contrast, keyboard interaction, input labels, visible focus, and forced-color modes. A palette or font choice alone doesn't ensure that a control add-in is accessible.
Choose colors for control add-ins
Colors can convey information, indicate interactivity, and provide feedback. You can apply the following colors to backgrounds, borders, text, and other interface elements. Choose foreground and background combinations with sufficient contrast.
Main colors
The following colors are the primary and secondary colors in the client's base palette.
| Color | Name | Use | HEX value |
|---|---|---|---|
|
Primary color | Prominent UI elements and areas. | #00B7C3 |
|
Secondary color | UI elements and areas in default or subdued state. | #505C6D |
Style colors
The following base palette colors express conditions or user activity, such as sentiments on cues. Don't rely on color alone to communicate meaning.
| Color | Description | HEX value |
|---|---|---|
|
Standard | #212121 |
|
Accent | #00B7C3 |
|
Strong | #212121 |
|
Favorable | #35AB22 |
|
Ambiguous | #9F9700 |
|
Unfavorable | #EB6965 |
|
Attention | #EB6965 |
|
Subordinate | #A7ADB6 |
Additional palette colors
The following table includes additional colors that you can use in the UI.
| Color | Description | HEX value |
|---|---|---|
|
Yellow | #C9C472 |
|
Green | #88CE81 |
|
Red | #E97768 |
|
Blue | #75B5E7 |
|
Light green | #59CCB4 |
|
Sky | #75D8E7 |
|
Egg | #EEEA86 |
|
Orange | #E89E63 |
|
Violet | #DBBDEB |
|
Teal | #39B294 |
|
Grass | #73BA5A |
|
Scarlet | #E65E6D |
Example colors for charts
The following colors are examples for chart series, not a complete chart palette. Chart implementations can use different shades, opacity, and color sequences.
| Color | Description | HEX value |
|---|---|---|
|
- | #505C6D |
|
- | #008089 |
|
Primary color | #00B7C3 |
|
Yellow | #C9C472 |
|
Red | #E97768 |
|
Blue | #75B5E7 |
|
Light green | #59CCB4 |
|
Sky | #75D8E7 |
|
Egg | #EEEA86 |
|
Violet | #DBBDEB |
|
Teal | #39B294 |
|
Grass | #73BA5A |
Apply colors with CSS
Use the following CSS properties to apply colors to your control add-in:
| Property | Description |
|---|---|
color |
Specifies text color. |
background-color |
Specifies background colors. |
border-color |
Specifies border colors. A visible border also requires a border style and width. |
For example, use the secondary color as a background:
.my-ui-part {
background-color: #505C6D;
}
To apply the primary color to caption text, use the following CSS. Check its contrast against the caption's background.
.my-caption {
color: #00B7C3;
}
Choose fonts and text sizes
Choose fonts and sizes that keep text readable in the available space.
Font families
The following font definitions specify typefaces and weights for text elements such as headings, captions, and messages:
| Example | Name | Value |
|---|---|---|
|
Segoe UI | "Segoe UI", "Segoe WP", Segoe, device-segoe, Tahoma, Helvetica, Arial, sans-serif |
|
Segoe UI Light | "Segoe UI Light", "Segoe WP Light", device-segoe-light, "Segoe WP Semilight", "Segoe UI", "Segoe WP", Segoe, Tahoma, Helvetica, Arial, sans-serif |
|
Segoe UI Semilight | "Segoe UI Semilight", "Segoe WP Semilight", device-segoe-semilight, "Segoe UI", "Segoe WP", Segoe, Tahoma, Helvetica, Arial, sans-serif |
|
Segoe UI Semibold | "Segoe UI Semibold", "Segoe WP Semibold", device-segoe-semibold, "Segoe UI", "Segoe WP", Segoe, Tahoma, Helvetica, Arial, sans-serif |
Font sizes
The following table lists selected sizes from the client's font scale. Individual components can use other sizes.
| Example | Name | Value |
|---|---|---|
|
largest-plus-font-size | 37.5pt |
|
largest-font-size | 30pt |
|
large-plus-font-size | 22.5pt |
|
large-font-size | 18pt |
|
medium-plus-font-size | 15pt |
|
medium-font-size | 13.5pt |
|
small-plus-font-size | 12pt |
|
small-font-size | 10.5pt |
|
smallest-font-size | 9pt |
Apply fonts and sizes with CSS
Use font-family to specify a font stack and font-size to specify the text size.
For example, apply the Segoe UI Light stack and the small size of 10.5pt:
.my-ui-part {
font-family: "Segoe UI Light", "Segoe WP Light", device-segoe-light, "Segoe WP Semilight", "Segoe UI", "Segoe WP", Segoe, Tahoma, Helvetica, Arial, sans-serif;
font-size: 10.5pt;
}
Important
Keep the fonts in the listed order to preserve the intended fallback sequence. The font displayed depends on which fonts are available on the device.
Style an HTML control add-in
The following example styles two labeled text inputs and a native button. It demonstrates appearance only and doesn't include a submission handler.
<div class="addin">
<div class="control">
<label class="caption" for="given-name">Given name</label>
<input class="value" id="given-name" name="given-name" type="text">
</div>
<div class="control">
<label class="caption" for="family-name">Family name</label>
<input class="value" id="family-name" name="family-name" type="text">
</div>
<button class="submit" type="button">Submit</button>
</div>
The CSS applies fonts directly to the inputs and button. It uses dark text on a light background and on the primary-color button.
.addin {
padding: 1em;
color: #212121;
background-color: #FFFFFF;
font-family: "Segoe UI", "Segoe WP", Segoe, device-segoe, Tahoma, Helvetica, Arial, sans-serif;
font-size: 12pt;
}
.addin .control {
margin-bottom: 1em;
}
.addin .control .caption {
display: block;
margin-bottom: 0.25em;
}
.addin .control .value {
padding: 0.5em;
color: #212121;
background-color: #FFFFFF;
border: 1px solid #505C6D;
font: inherit;
}
.addin .submit {
padding: 0.5em 1em;
color: #212121;
background-color: #00B7C3;
border: 1px solid #505C6D;
font-family: "Segoe UI Semibold", "Segoe WP Semibold", device-segoe-semibold, "Segoe UI", "Segoe WP", Segoe, Tahoma, Helvetica, Arial, sans-serif;
font-size: 12pt;
}
Related information
Control add-in object
Control add-in performance best practices