Skip to content

Shadow Elevation Levels

Lains requested to merge lainsce/libadwaita:lains/shadow-elevation into main

This _elevation.scss file contains a function and some public classes that will make assigning boxed-shadow values better than having a custom box-shadow for each widget, without making custom values that aren't organic with each other in relation to the widget's elevation basing on the principle that the base is the window, and widgets live on top of this base.

2 This image shows each level of the elevations function in a card, plus a non-elevated card.

Level 0* Level 1 Level 2
Level 3 Level 4 Level 5
  • Level 0 is for when you want something flat like a flat card in some place.
Edited by Lains

Merge request reports