Colors
Colors are the crucial part theming of the Acronis UI Component Library. Each theme provides a set of colors that are used to style the components.
These colors are divided into basic colors, background colors, text colors and utility colors.
Each theme may provide light and dark color schemes.
If dark color scheme is not provided, the default dark color scheme is used.
/* Example for light and dark color scheme */
html {
--acv-text-1: var(--acv-color-gray-darkest);
--text-2: var(--acv-color-gray-dark);
@container style(--acv-os-dark: true) {
--text-1: var(--acv-color-gray-lightest);
--text-2: var(--acv-color-gray-light);
}
}
Accents
Accent colors are used to highlight interactive elements such as buttons, links, and other interactive elements.
Status colors
Status colors are used to focus attention on particular UI elements.
Background colors
Background colors are used to define the background of the page, cards, modals, dropdowns, and other elements.
Text colors
Text colors are used to define the main and alternative text colors. Usually correct text color will be applied based on background color.
Utility colors
Utility colors are used to define the colors of borders, dividers, shadows, and other elements.
Component colors
Component colors are used to define the colors of specific components.