Crate viewy

source ·

Modules

Structs

  • Represent a page and embed all the logic required by the service worker.

Enums

Traits

Functions

  • Helper to get most visible text color based on a background color Return black if luminance is less than 50% and white otherwise
  • Helper to get most visible text color based on a background color Return black if luminance is less than 50% and white otherwise
  • Helper to get harmonious spacing and sizing values. It’s based on scale ^ PHI calculation
  • Function to convert pixel values into rem (factor of browser’s default font size)