# Shadows

### Mui core shadows

We used core shadows as provided by MUI. Refer: <https://mui.com/system/shadows/>

### Customized `customShadows`

There are few shadows that we customized as per theme's need. check here: `src\themes\shadows.tsx`.&#x20;

**Demo**: <https://berrydashboard.com/utils/util-shadow>

### How to use

1. &#x20;Import MUI theme
2. &#x20;Use shadow with an element.

<pre class="language-typescript"><code class="lang-typescript">import {useTheme} from '@mui/material/style';

function YourComponent() {
<strong> const theme = useTheme();
</strong>
 return (
  &#x3C;>
   ...
   ...
<strong>    // normal shadow
</strong>    &#x3C;Box sx={{ boxShadow: theme.customShadows.z1 }}>....&#x3C;/Box>

    // shadows according to palette
<strong>    &#x3C;Box sx={{ boxShadow: theme.customShadows.primary }}>....&#x3C;/Box>
</strong>   ...
   ...
  &#x3C;/>
 )
}
</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://codedthemes.gitbook.io/berry/v3.9.0/theme/theme-config/shadows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
