Constant SPACING_BASE

Source
pub const SPACING_BASE: u16 = 4;
Expand description

The base unit for spacing in pixels.

All spacing values are multiples of this base unit, creating a consistent visual rhythm. The value 4 is chosen because:

  • It’s divisible by 2 (for half-spacing needs)
  • It aligns well with common screen densities
  • It’s small enough for fine-grained control
  • It’s large enough to be visually meaningful