By using semantic values, visual elements such as color, direction, and alignment can be mapped without relying on absolute values. This approach ensures that the values are not tied to a particular resolution, device, or theme, providing greater flexibility in designing and adapting interfaces.
Example 1: When defining clolor values, it's recommended to use semantic values such as "Dark", "Light", "Primary", "Secondary", etc. instead of RGB or HEX codes. Semantic values provide meaningful and intuitive descriptions of colors, making it more accessible.
Example 2: Using absolute alignment or directional values such as "left" and "right" can be confusing in a responsive layout, as they can have different meanings depending on the context. Moreover, languages such as Arabic, which are written from right to left, require a reversed page layout. Therefore, it is not recommended to use absolute values for alignment or direction. Instead, it is better to use relative or semantic values that adapt to the context.