From 53917b9e2593e585aab77d9fe104d94cf87f17e7 Mon Sep 17 00:00:00 2001 From: lindsaym-fa Date: Tue, 18 Jun 2024 10:16:47 -0400 Subject: [PATCH] update Shadows doc --- docs/docs/theming/shadows.md | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/docs/docs/theming/shadows.md b/docs/docs/theming/shadows.md index 7565c588d..6288e9400 100644 --- a/docs/docs/theming/shadows.md +++ b/docs/docs/theming/shadows.md @@ -6,7 +6,16 @@ layout: page Shadows indicate elevation and, often, interactivity. Web Awesome offers highly modular shadow properties to easily create custom shadow effects or transform elements based on specific shadow qualities. Together with [`--wa-color-shadow`](/docs/theming/color/#shadow), these custom properties create realistic shadows for Web Awesome components. -Shadows use a size-based scale where larger shadows have greater offset and blur values to indicate greater distance from the surface below. +Shadows are constructed using corresponding offset-x, offset-y, blur, and spread properties, detailed in the sections below. In Web Awesome, shadows use a size-based scale where larger shadows have greater offset and blur values to indicate greater distance from the surface below. + +| Custom Property | Default Value | +| ---------------- | ------------------------------------------------------------------- | +| `--wa-shadow-xs` |
| +| `--wa-shadow-s` |
| +| `--wa-shadow-m` |
| +| `--wa-shadow-l` |
| + +Any shadow may be implemented as an inner box shadow using the `inset` keyword, e.g. `box-shadow: inset var(--wa-shadow-xs);`. ## Horizontal Offset (X) @@ -45,20 +54,9 @@ Each blur property uses a `calc()` function with `--wa-shadow-blur-multiplier` t Each spread property uses a `calc()` function with `--wa-shadow-spread-multiplier` to uniformly scale spread values. By default, this multiplier is `-0.0625`. The table below lists the result of the calculation. -| Custom Property | Default Value | -| ----------------------- | ------------------------------------ | -| `--wa-shadow-spread-xs` | `0.03125rem` (-0.5px) | -| `--wa-shadow-spread-s` | `0.0625rem` (-1px) | -| `--wa-shadow-spread-m` | `0.125rem` (-2px) | -| `--wa-shadow-spread-l` | `0.25rem` (-4px) | - -## Shadows - -Shadows are constructed using the corresponding offset-x, offset-y, blur, and spread properties. Any shadow may be implemented as an inner box shadow using the `inset` keyword, e.g. `box-shadow: inset var(--wa-shadow-xs);`. - -| Custom Property | Default Value | -| ---------------- | ------------------------------------------------------------------- | -| `--wa-shadow-xs` |
| -| `--wa-shadow-s` |
| -| `--wa-shadow-m` |
| -| `--wa-shadow-l` |
| \ No newline at end of file +| Custom Property | Default Value | +| ----------------------- | ------------------------------------- | +| `--wa-shadow-spread-xs` | `-0.03125rem` (-0.5px) | +| `--wa-shadow-spread-s` | `-0.0625rem` (-1px) | +| `--wa-shadow-spread-m` | `-0.125rem` (-2px) | +| `--wa-shadow-spread-l` | `-0.25rem` (-4px) | \ No newline at end of file