Shadows & radiuses
How shadows & radiuses are used across our products.
Shadowsโ
Our shadows are all $grey-800 with some opacity.
| Design Token | Properties | Preview | Usage |
|---|---|---|---|
| xs | box-shadow: 0px 0px 2px #282830; | Used on buttons for pressed states (with a $grey100 border) | |
| sm | box-shadow: 0px 1px 4px #282830; | Used on buttons (along with a $grey100 border) | |
| md | box-shadow: 0px 0px 12px #282830; | Used on buttons for hover states as long as cards (with a $grey100 border) | |
| lg | box-shadow: 0px 4px 20px #282830; | Used when hovering cards (along with a $grey100 border) |
Radiuses
This section is a work in progress while we decide what threshold & guidelines will hold well ๐งโ ๏ธ๐ท๐ผโโ๏ธ
See this Linear issue for more context
For elements smaller than 48pxโ
Pick the closest multiple of our base number, that refrains from making the radius completely round. Eg. for a box of 48px, a 100% round radius would be 24px, use 20px.
For elements bigger than 48pxโ
Use 16px.