HomeArticlesComputer Science

Shadow Values

This guide outlines a systematic approach to using shadows within our design system, prioritizing clarity and accessibility across light and dark modes.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

Consistent elevation system using subtle shadows and borders for clarity

The design system employs a tiered shadow approach – none, low, medium, high – to create visual hierarchy. Combining these tiers with subtle borders reduces the need for excessive blurring to achieve separation.

Shadow Values (Light Mode) - This section details specific shadow value configurations.

Dark mode: reduce opacity ~20% and use lighter spread: e.g., shadow-2

In dark mode, a reduced opacity of approximately 20% is recommended for shadows to maintain legibility. Utilizing lighter shadow spreads, such as ‘shadow-2’, further enhances contrast.

Combining these adjustments with 1px borders (#e1e8f0 light, #1f2937 dark) significantly improves visual clarity and reduces reliance on blur effects.

live demo · related simulation● LIVE

Use no shadow for data-heavy tables to reduce noise

For data-rich tables, it’s best practice to avoid using shadows altogether. Shadows should never be the sole indicator of focus; visible rings provide a more reliable visual cue.

Ensure sufficient contrast between surfaces when utilizing shadows – they must not obscure text or other crucial design elements. Prioritize GPU-friendly shadow implementations with limited blur radii.

Frequently asked questions

What are the different shadow token options available?

Expose tokens include --shadow-1, --shadow-2, and --shadow-3. These provide a range of light/dark variants for consistent styling across projects.

How do I manage copyright information related to AI usage by countries with shadow values?

© 2024 AI Usage by Countries. Shadow values are used consistently throughout the design system to maintain a unified visual language.

When was the last update to this design system?

Last updated: 2024 | Design System – This indicates that the current version of the design system is dated 2024.

Try it live

Everything above runs in your browser — open Hash Function Avalanche Visualizer and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Hash Function Avalanche Visualizer simulation

What did you find?

Add reproduction steps (optional)