# Envision Docs > Documentation for the Envision UI framework. ## Colors – Basic colors URL: https://envisionui.io/colors/basic-colors/ Description: The “Basic colors” section defines general colors for backgrounds, text, links, and borders. There are a few general colors that are used for larger sections or less defined parts of components. For example, `--env-section-background-color` is used as background color for Modal dialogs. - `--env-background-color` - Theme/body background color - `--env-section-background-color` - Used for larger content sections. - `--env-section-background-color-05` - `--env-font-color` - Base text color - `--env-link-font-color` - Base link color - `--env-link-hover-font-color` - Base link:hover color - `--env-border-color` - Base border color - `--env-border-color-05` - Alternative border color `--env-section-background-color-05` is calculated from `--env-section-background-color`. `--env-border-color-05` is calculated from `--env-border-color`. ## Accessibility Font and link colors should have at least a 4.5:1 contrast ratio on `--env-background-color` and `--env-section-background-color`. Depending on design and usage, it's recommended to try to get at least a 4.5:1 contrast ratio on `--env-section-background-color-05` as well. ## Examples `--env-background-color` is used outside the centered boxes. ```html
Caption
Section heading
Default
Primary
Secondary
Success
Warning
Danger
Info
Neutral
Active
Active text
Attention
Attention text
Error
Error text
Logged in
Logged in
New message
An error occurred
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eget lobortis dui, in accumsan augue. Quisque nec augue quam. Donec sed purus quam. Proin eu tincidunt metus.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eget lobortis dui, in accumsan augue. Quisque nec augue quam. Donec sed purus quam. Proin eu tincidunt metus.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eget lobortis dui, in accumsan augue. Quisque nec augue quam. Donec sed purus quam. Proin eu tincidunt metus.
Last logged in 5 h
Logged in
``` --- ## Components – Breadcrumb URL: https://envisionui.io/components/breadcrumb/ Description: Use breadcrumbs to display the user´s location within a site’s hierarchy, enhancing navigation. Use `env-breadcrumb__separator` in combination with `aria-hidden="true"` to hide the separator character from assistive technology. ```html ``` --- ## Components – Cards URL: https://envisionui.io/components/cards/ Description: Cards are simple containers for displaying information about pages, groups, or users. Use Cards to display information about, for example, a page, a group or a user. A Card is a simple container that may have a header and a footer. A Card has no colors or shadows of its own. To add colors and shadows you may instead combine the `env-block` and `env-shadow` classes. If used inside a [Cardholder](/layout/cardholder/) the Card will stretch its width and height to make a nice aligned grid of cards. ```htmlLorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eget lobortis dui, in accumsan augue. Quisque nec augue quam. Donec sed purus quam. Proin eu tincidunt metus.
* = The ID of the collapsible content element.
When using an `` element as the toggle button, also add `role="button"`. A `Lorem ipsum dolor sit amet, consectetur adipiscing elit. In fermentum nunc bibendum laoreet malesuada. Proin eget augue tortor. Sed bibendum cursus eros, vitae mattis leo laoreet eget.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
In fermentum nunc bibendum laoreet malesuada.
Proin eget augue tortor. Sed bibendum cursus eros, vitae mattis leo laoreet eget.
Lorem ipsum dolor sit amet
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In fermentum nunc bibendum laoreet malesuada.
Aliquam diam risus tincidunt.
Logged in
Lorem ipsum lectus molestie vivamus?
| Name | Username | Department | |
|---|---|---|---|
| John Doe | johdoe | Development | john@doe.com |
| Jane Doe | jandoe | Development | jane@doe.com |
| John Smith | johsmi | Marketing | john@smith.com |
| Jane Smith | jansmi | Marketing | jane@smith.com |
| Name | Username | Department | |
|---|---|---|---|
| John Doe | johdoe | Development | john@doe.com |
| Jane Doe | jandoe | Development | jane@doe.com |
| John Smith | johsmi | Marketing | john@smith.com |
| Jane Smith | jansmi | Marketing | jane@smith.com |
| Name | Username | Department | |
|---|---|---|---|
| John Doe | johdoe | Development | john@doe.com |
| Jane Doe | jandoe | Development | jane@doe.com |
| Name | Username | Department | |
|---|---|---|---|
| John Doe | johdoe | Development | john@doe.com |
| Jane Doe | jandoe | Development | jane@doe.com |
| Name | Username | Department | |
|---|---|---|---|
| John Doe | johdoe | Development | john@doe.com |
| Jane Doe | jandoe | Development | jane@doe.com |
| Name | Username | Department | |
|---|---|---|---|
| John Doe | johdoe | Development | john@doe.com |
| Jane Doe | jandoe | Development | jane@doe.com |
| John Smith | johsmi | Marketing | john@smith.com |
| Jane Smith | jansmi | Marketing | jane@smith.com |
= The color will pass WCAG 2 level AA contrast requirements as text on white (widget wrapper) background.
* = The color also passes contrast requirements if used as text on gray-05 (theme body) background.
### Color palette CSS variable names Color variables are named `--env-dashboard-color-white`, `--env-dashboard-color-black` and `--env-dashboard-color-{colorName}-{variant}`. Available color names: `red`, `pink`,`purple`,`deep-purple`,`indigo`,`blue`,`light-blue`,`cyan`,`teal`,`green`,`light-green`,`lime`,`yellow`,`orange`,`brown`,`gray` Available variants: `05`, `20`, `50`, `90`, ### Color palette utility classes Simple decoration of areas may be done using CSS classes. Each palette color has a background and a foreground classname. Available classnames are `env-dashboard-bg-color-{colorName}-{variant}` where `colorName` and `variant` follow the same patterns as CSS variable names. ```htmlAxis label / Label
Axis value / Legend
``` ### Key performance indicators For displaying key performance indicators you should use the `env-ui-text-kpi-number` class. Set different sizes using CSS variables `--env-ui-text-kpi-number-font-size-{x}`. ```html 96% 96% 96% 96% 96% ``` ```css .example-kpi-x-small { font-size: var(--env-ui-text-kpi-number-font-size-x-small); } .example-kpi-small { font-size: var(--env-ui-text-kpi-number-font-size-small); } .example-kpi-large { font-size: var(--env-ui-text-kpi-number-font-size-large); } .example-kpi-x-large { font-size: var(--env-ui-text-kpi-number-font-size-x-large); } ``` ## Badges If a value has changed for the better, the worse or is unchanged it may be displayed using one of the widget specific badges availble. ```html Down 18% No change Up 18% ``` --- ## Dashboard – Widget CSS variables URL: https://envisionui.io/dashboard/widget-css-variables/ Description: Additional CSS variables for styling dashboard widgets. ## Palette Colors - `--env-dashboard-color-black` - `--env-dashboard-color-white` - `--env-dashboard-color-red-05` - `--env-dashboard-color-red-20` - `--env-dashboard-color-red-50` - `--env-dashboard-color-red-90` - `--env-dashboard-color-pink-05` - `--env-dashboard-color-pink-20` - `--env-dashboard-color-pink-50` - `--env-dashboard-color-pink-90` - `--env-dashboard-color-purple-05` - `--env-dashboard-color-purple-20` - `--env-dashboard-color-purple-50` - `--env-dashboard-color-purple-90` - `--env-dashboard-color-deep-purple-05` - `--env-dashboard-color-deep-purple-20` - `--env-dashboard-color-deep-purple-50` - `--env-dashboard-color-deep-purple-90` - `--env-dashboard-color-indigo-05` - `--env-dashboard-color-indigo-20` - `--env-dashboard-color-indigo-50` - `--env-dashboard-color-indigo-90` - `--env-dashboard-color-blue-05` - `--env-dashboard-color-blue-20` - `--env-dashboard-color-blue-50` - `--env-dashboard-color-blue-90` - `--env-dashboard-color-light-blue-05` - `--env-dashboard-color-light-blue-20` - `--env-dashboard-color-light-blue-50` - `--env-dashboard-color-light-blue-90` - `--env-dashboard-color-cyan-05` - `--env-dashboard-color-cyan-20` - `--env-dashboard-color-cyan-50` - `--env-dashboard-color-cyan-90` - `--env-dashboard-color-teal-05` - `--env-dashboard-color-teal-20` - `--env-dashboard-color-teal-50` - `--env-dashboard-color-teal-90` - `--env-dashboard-color-green-05` - `--env-dashboard-color-green-20` - `--env-dashboard-color-green-50` - `--env-dashboard-color-green-90` - `--env-dashboard-color-light-green-05` - `--env-dashboard-color-light-green-20` - `--env-dashboard-color-light-green-50` - `--env-dashboard-color-light-green-90` - `--env-dashboard-color-lime-05` - `--env-dashboard-color-lime-20` - `--env-dashboard-color-lime-50` - `--env-dashboard-color-lime-90` - `--env-dashboard-color-yellow-05` - `--env-dashboard-color-yellow-20` - `--env-dashboard-color-yellow-50` - `--env-dashboard-color-yellow-90` - `--env-dashboard-color-orange-05` - `--env-dashboard-color-orange-20` - `--env-dashboard-color-orange-50` - `--env-dashboard-color-orange-90` - `--env-dashboard-color-brown-05` - `--env-dashboard-color-brown-20` - `--env-dashboard-color-brown-50` - `--env-dashboard-color-brown-90` - `--env-dashboard-color-gray-05` - `--env-dashboard-color-gray-20` - `--env-dashboard-color-gray-50` - `--env-dashboard-color-gray-90` ### Additional UI Text variables - `--env-ui-text-label-font-family` - `--env-ui-text-label-font-color` - `--env-ui-text-label-font-size` - `--env-ui-text-label-font-weight` - `--env-ui-text-label-text-transform` - `--env-ui-text-label-letter-spacing` - `--env-ui-text-value-font-family` - `--env-ui-text-value-font-color` - `--env-ui-text-value-font-size` - `--env-ui-text-value-font-weight` - `--env-ui-text-value-text-transform` - `--env-ui-text-value-letter-spacing` - `--env-ui-text-kpi-number-font-family` - `--env-ui-text-kpi-number-font-color` - `--env-ui-text-kpi-number-font-size` - `--env-ui-text-kpi-number-font-weight` - `--env-ui-text-kpi-number-text-transform` - `--env-ui-text-kpi-number-letter-spacing` - `--env-ui-text-kpi-number-font-size-x-small` - `--env-ui-text-kpi-number-font-size-small` - `--env-ui-text-kpi-number-font-size-medium` - `--env-ui-text-kpi-number-font-size-large` - `--env-ui-text-kpi-number-font-size-x-large` --- ## Dashboard – Widget typography URL: https://envisionui.io/dashboard/widget-typography/ Description: Typography guidelines for dashboard widgets. The widget theme uses [Inter](https://fonts.google.com/specimen/Inter) font family which has support for nine different weights 100-900. Other font familes should in most cases not be used. ```html nocodeThin 100 — The quick brown fox jumps … 123456789
Extra Light 200 — The quick brown fox jumps … 123456789
Light 300 — The quick brown fox jumps … 123456789
Normal 400 — The quick brown fox jumps … 123456789
Medium 500 — The quick brown fox jumps … 123456789
Semi Bold 600 — The quick brown fox jumps … 123456789
Bold 700 — The quick brown fox jumps … 123456789
Extra Bold 800 — The quick brown fox jumps … 123456789
Black 900 — The quick brown fox jumps … 123456789
``` ```css /* Available weights 100–900 */ .example-fw-100 { font-weight: 100; } ``` ### Headings Widgets should use [UI Text](/typography/ui-text/) for headings. ```htmlOverline
Caption / description
``` ### Dynamic font size in widgets Widgets already has a containment context which makes them dynamic font containers by default. Therefore the dynamic font container is **not** required. Here is an overview of how different size widgets will change size at different Dashboard grid sizes. The dashboard grid adapts between 1–4 columns depending on available screen space. | Widget | 1 column | 2 columns | 3 columns | 4 columns | | :---------- | -------: | --------: | --------: | --------: | | Small | 250–342 | 250–342 | 250–342 | 250–342 | | Medium | 250–523 | 524–708 | 534–708 | 524–708 | | Large | 250–523 | 524-812 | 813-1071 | 798–1074 | | Extra Large | 250–523 | 524-812 | 813-1071 | 1072–1440 | There are additional widget specific boundaries available for Dynamic fonts. Regular boundaries are documented on the [Dynamic font size page](/typography/dynamic-font-size/#scaling-width-boundaries). Boundaries are set using modifier classes `env-dynamic-font--from-{value}` and `env-dynamic-font--to-{value}`. Additional boundaries for **from** values: `524`, `813`, `1072` Additional boundaries for **to** values: `342`, `523`, `708`, `812`, `1071`, `1440` --- ## Forms – Button group URL: https://envisionui.io/forms/button-group/ Description: Button Group groups related buttons together, providing a unified interface for multiple actions. ## Types ```html ``` --- ## Forms – Button URL: https://envisionui.io/forms/button/ Description: Buttons provide interactive elements with various styles, sizes, and icon options. ## Standard button types Buttons in Envision can be used to trigger actions (for example, save, submit, or close) or to navigate to other pages or routes. A button can be implemented as either a `
Call to Action Call to Action Call to Action
``` ## Sizes Standard buttons are available in four sizes: large, default, small, and slim. ```html