Carbon design system
Last updated
Last updated
Carbon is IBM's open source design system, based on the IBM design language. As of major version 10, Valtimo uses Carbon for its user interface. It has been selected because of its clean and professional look, consistency, documentation and its large amount of components that fit Valtimo's purposes.
In order to make Carbon work with implementations, some small adjustments need to be made. Please refer to for instructions on making these adjustments.
If Carbon is included in your implementation, you may also use its components to build functionality. On using Carbon correctly, refer to . When using its Angular components, referring to is recommended.
The theme used by Carbon can be customized to a large degree. By default, the libary @valtimo/components
exports a theme from the following path: "node_modules/@valtimo/components/assets/css/carbon.scss"
. Also, a stylesheet is exported to ensure compatibility with the previous Beagle theme, FormIO forms and other Carbon specific overrides that are necessary: "node_modules/@valtimo/components/assets/css/compatibility.scss"
.
You can override the default Valtimo blue colors by adding these to your styles.scss
. See the example below and replace the hex values with your custom values.
It is recommended that the contrast between your custom color and #FFFFFF
is 4.5:1 or higher. This can be checked by using the and setting your custom color as the background color and setting #FFFFFF
as the foreground color.
If your custom color has a contrast ratio higher than 4.5:1, you can use the to create 10 shades based on your color. These 10 colors will be your new values with --vcds-color-10
being the lightest (almost white) color and --vcds-color-100
being the darkest (almost black).
Sidenote: Please make sure that you never use red as the main color. Red means "danger" and it can have a negative effect on the hierarchy of colors in the UI when used as the main color.
styles.scss