Shadows
Elevation and shadows throughout the UI Foundations Kit.
The default MUI theme includes a set of shadows that can be used to show varying levels of elevation. These shadows consist of 25 levels, ranging from 0
to 24
. UI Foundations Kit uses a small subset of shadows, to enforce a consistent design language across all components. Instead of 25 levels, UI Foundations Kit uses 6 levels of shadows, ranging from a subtle border like shadow to a more pronounced shadow for modals and dialogs.
You can see a comparison between the UI Foundations theme and the default MUI theme below:
MUI Shadows
UI Foundation Shadows
This is how it is implemented in the theme file:
By default, components like the button are already preconfigured to output softer shadows, but you can add shadows to other components as you see fit like this: