Shadow

Soft shadows, used sparingly, to lift things off the page where color alone isn't enough.

The main job of a shadow in Terra is to improve contrast in areas that would otherwise blend together, such as a light element on a cream background. Use shadows conservatively, and choose the smallest one that does the job.


Scale

All drop shadows are black (#000000) with an X offset of 0px.

Token

Y offset

Blur

Opacity

Use for

shadow/xs

1px

2px

4%

Button

shadow/sm

2px

4px

6%

Toggle

shadow/md

4px

8px

8%

Action menu

shadow/lg

12px

16px

10%

Overlays such as tooltips and modals

shadow/xl

20px

24px

10%

Overlays such as tooltips and modals

shadow/2xl

24px

48px

12%

Overlays such as tooltips and modals


Focus rings

Focus rings are shadows with no blur and no offset, so they draw a clean outline around the focused element.

Token

Color

Use for

focus/default

#D2C7B5 (gold/300)

Focus state of buttons, inputs, and other controls

focus/destructive

#F9A3A3 (red/200)

Focus state in an error or destructive context


Choosing a shadow

Small: xs to md

For components that sit on the page. These barely register, but they separate a component from its background. Start with the smallest and only go up if it still blends in.


Large: lg to 2xl

For overlays that float above everything else, such as tooltips and modals. The larger the distance above the page, the larger the shadow.


Accessibility

  • Don't rely on a shadow alone to show the edge of a control. These shadows are soft, so inputs and other controls should also have a visible border.

  • Pair focus rings with a stronger border. The rings are soft by design, so the element's border should also change on focus (brand or error) to make it easy to see.


Usage rules

  • Use the smallest shadow that works.

  • Use shadows to fix low contrast, not as decoration.

  • One shadow per element. Don't stack them.

  • Reserve lg and above for overlays.

  • Don't create custom shadows.

No headings found on page

Want to work together?

syahrulmiftahfarid@gmail.com

© 2026 Syahrul Miftah Farid

Want to work together?

syahrulmiftahfarid@gmail.com

© 2026 Syahrul Miftah Farid

Create a free website with Framer, the website builder loved by startups, designers and agencies.