Artwork

内容由Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers提供。所有播客内容(包括剧集、图形和播客描述)均由 Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal
Player FM -播客应用
使用Player FM应用程序离线!

Hasty Treat - Neat Things in CSS Color - Current and Coming!

26:48
 
分享
 

Manage episode 304325293 series 1469447
内容由Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers提供。所有播客内容(包括剧集、图形和播客描述)均由 Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal

In this Hasty Treat, Scott and Wes talk about all things color in CSS, both current and coming soon!

Sentry - Sponsor

If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.

Sanity - Sponsor

Sanity.io is a real-time headless CMS with a fully customizable Content Studio built in React. Get a Sanity powered site up and running in minutes at sanity.io/create. Get an awesome supercharged free developer plan on sanity.io/syntax.

Show Notes

04:39 - color-contrast()

  • Part of CSS5! Maybe.
  • The color-contrast() functional notation takes a color value and compares it to a list of other color values, selecting the one with the highest contrast from the list.

06:01 - Accent color

07:34 - currentcolor

08:54 - Profiled color values - color()

11:00 - color-mix()

14:18 - Space-separated functional color notations

  • rgba(255 255 255 0) instead of rgba(255,255,255,0.5)

15:28 - RGB and HSL with Alpha

  • rgb() and hsl() can take alpha and percent values - rgb(0 0 0 / 50%) or rgb(0 0 0 / 0.5)

18:22 - Hex + Alpha values

  • RRGGBBAA
  • How do you remember?!?!
  • Transparent

21:49 - lch(), lab(), hwb() notation

  • CIELAB color space aka Lab is a color space.
  • A color space is an organization of colors in coordination color profiling supported by various physical devices, it supports reproducible representations of color
  • Lab is intended as perceptually uniform
  • Perceptually uniform - a perceptual uniform color space ensures that the difference between two colors (as perceived by the human eye) is proportional to the Euclidian distance within the given color space.
  • https://lea.verou.me/2020/04/lch-colors-in-css-what-why-and-how/
Links Tweet us your tasty treats!
  continue reading

762集单集

Artwork
icon分享
 
Manage episode 304325293 series 1469447
内容由Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers提供。所有播客内容(包括剧集、图形和播客描述)均由 Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal

In this Hasty Treat, Scott and Wes talk about all things color in CSS, both current and coming soon!

Sentry - Sponsor

If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.

Sanity - Sponsor

Sanity.io is a real-time headless CMS with a fully customizable Content Studio built in React. Get a Sanity powered site up and running in minutes at sanity.io/create. Get an awesome supercharged free developer plan on sanity.io/syntax.

Show Notes

04:39 - color-contrast()

  • Part of CSS5! Maybe.
  • The color-contrast() functional notation takes a color value and compares it to a list of other color values, selecting the one with the highest contrast from the list.

06:01 - Accent color

07:34 - currentcolor

08:54 - Profiled color values - color()

11:00 - color-mix()

14:18 - Space-separated functional color notations

  • rgba(255 255 255 0) instead of rgba(255,255,255,0.5)

15:28 - RGB and HSL with Alpha

  • rgb() and hsl() can take alpha and percent values - rgb(0 0 0 / 50%) or rgb(0 0 0 / 0.5)

18:22 - Hex + Alpha values

  • RRGGBBAA
  • How do you remember?!?!
  • Transparent

21:49 - lch(), lab(), hwb() notation

  • CIELAB color space aka Lab is a color space.
  • A color space is an organization of colors in coordination color profiling supported by various physical devices, it supports reproducible representations of color
  • Lab is intended as perceptually uniform
  • Perceptually uniform - a perceptual uniform color space ensures that the difference between two colors (as perceived by the human eye) is proportional to the Euclidian distance within the given color space.
  • https://lea.verou.me/2020/04/lch-colors-in-css-what-why-and-how/
Links Tweet us your tasty treats!
  continue reading

762集单集

所有剧集

×
 
Loading …

欢迎使用Player FM

Player FM正在网上搜索高质量的播客,以便您现在享受。它是最好的播客应用程序,适用于安卓、iPhone和网络。注册以跨设备同步订阅。

 

快速参考指南