Foundation

Depth & Shadow

z-index and shadow effect tokens

Overview

Tokens that define the sense of depth and shadow effects for UI elements.

Depth (z-index)

13 tokens
TokenValue

Blur

1 tokens
TokenValue

Stroke

2 tokens
TokenValue

Usage

import { Box } from '@illog/ui'
import { styles, tokens } from '@illog/themes'
 
// z-index token (values in the table above)
export const menuLayer = tokens.size.depth[400]
 
// Drop shadow on a Box
export function Dropdown() {
  return <Box shadow="300">Dropdown shadow</Box>
}
 
// The same shadow as a style object
export const dropdownShadow = styles.dropShadow[300]