Utilities for controlling the box shadow of an element. import { CustomizingYourTheme, CustomizingYourThemeColors, ResponsiveDesign, UsingACustomValue, } from "@/components/content.tsx";
Use utilities like shadow-sm and shadow-lg to apply different sized outer box shadows to an element:
Use the opacity modifier to adjust the opacity of the box shadow:
The default box shadow opacities are quite low (25% or less), so increasing the opacity (to like 50%) will make the box shadows more pronounced.
Use utilities like shadow-indigo-500 and shadow-cyan-500/50 to change the color of a box shadow:
By default colored shadows have an opacity of 100% but you can adjust this using the opacity modifier.
Use utilities like inset-shadow-xs and inset-shadow-sm to apply an inset box shadow to an element:
You can adjust the opacity of an inset shadow using the opacity modifier, like inset-shadow-sm/50. The default inset shadow opacities are quite low (5%), so increasing the opacity (to like 50%) will make the inset shadows more pronounced.
Use utilities like inset-shadow-indigo-500 and inset-shadow-cyan-500/50 to change the color of an inset box shadow:
By default colored shadows have an opacity of 100% but you can adjust this using the opacity modifier.
Use ring or ring-<number> utilities like ring-2 and ring-4 to apply a solid box-shadow to an element:
By default rings match the currentColor of the element they are applied to.
Use utilities like ring-indigo-500 and ring-cyan-500/50 to change the color of a ring:
By default rings have an opacity of 100% but you can adjust this using the opacity modifier.
Use inset-ring or inset-ring-<number> utilities like inset-ring-2 and inset-ring-4 to apply a solid inset box-shadow to an element:
By default inset rings match the currentColor of the element they are applied to.
Use utilities like inset-ring-indigo-500 and inset-ring-cyan-500/50 to change the color of an inset ring:
By default inset rings have an opacity of 100% but you can adjust this using the opacity modifier.
Use the shadow-none, inset-shadow-none,ring-0, and inset-ring-0 utilities to remove an existing box shadow from an element: