terribleMia’s avatarterribleMia’s Twitter Archive—№ 12,418

      1. 🎨 Working on support for the new CSS color spaces in SassCSS - which is super exciting & also a reminder that color models are totally like 'let me just quantify human perception as a math problem real quick' 🤯
    1. …in reply to @TerribleMia
      There are several new color functions (part of Interop 2022!) coming to CSS. All can be seen as different syntaxes for defining color, but they also represent different: - gamuts (ranges) of available color - spaces/models for moving between colors - bit-depths of precision
  1. …in reply to @TerribleMia
    A few highlights: - oklab/oklch are similar to rgb/hsl, but describe a more 'perceptually uniform' space to move around in (similar values *look* similar) - display-p3 describes a wider RGB gamut that is common in modern monitors