# Shadows Utilities for controlling the elevation and shadow of an element. **Category:** Utilities **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-shadows--introduction ## Variants documented in Storybook - ShadowShowcase: https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-shadows--shadowshowcase ## Framework setup ### HTML / CDN ```html ``` ### React ```bash npm install ux4g-web-components ``` ```jsx import 'ux4g-web-components/styles.css'; import 'ux4g-web-components/design-system'; ``` ### Angular Update `angular.json`: ```json { "styles": [ "node_modules/ux4g-web-components/styles/ux4g.css", "src/styles.css" ], "scripts": [ "node_modules/ux4g-web-components/dist/runtime/design-system.js" ] } ``` ## Code examples The snippets below are extracted from the Storybook canvas for Shadows. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup. ### 1. Introduction — Introduction HTML: ```html
A comprehensive reference of elevation levels and shadow utility classes for the UX4G Design System.
Every shadow class from the utility library, categorized for easy access.
Format: ux4g-shadow-{size}
|
None
ux4g-shadow-l0
|
|
Layer 1 (Subtle)
ux4g-shadow-l1
|
|
Layer 2 (Regular)
ux4g-shadow-l2
|
|
Layer 3 (Large)
ux4g-shadow-l3
|
|
Layer 4 (Strong)
ux4g-shadow-l4
|
A comprehensive reference of elevation levels and shadow utility classes for the UX4G Design System.
Every shadow class from the utility library, categorized for easy access.
Format:
ux4g-shadow-{size}
|
None
ux4g-shadow-l0
|
|
Layer 1 (Subtle)
ux4g-shadow-l1
|
|
Layer 2 (Regular)
ux4g-shadow-l2
|
|
Layer 3 (Large)
ux4g-shadow-l3
|
|
Layer 4 (Strong)
ux4g-shadow-l4
|
A comprehensive reference of elevation levels and shadow utility classes for the UX4G Design System.
Every shadow class from the utility library, categorized for easy access.
Format: ux4g-shadow-{size}
|
None
ux4g-shadow-l0
|
|
Layer 1 (Subtle)
ux4g-shadow-l1
|
|
Layer 2 (Regular)
ux4g-shadow-l2
|
|
Layer 3 (Large)
ux4g-shadow-l3
|
|
Layer 4 (Strong)
ux4g-shadow-l4
|