Thinking on ways to solve RELATIVE COLORS

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024

ความคิดเห็น • 16

  • @ChromeDevs
    @ChromeDevs  11 หลายเดือนก่อน +5

    Subscribe to Chrome for Developers → goo.gle/ChromeDevs

  • @justintaddei
    @justintaddei 11 หลายเดือนก่อน +6

    Can't wait for this to land is all evergreen browsers! Something I've always done is define my brand color as `--brand-rgb: r, g, b;` and then have `--brand: rgb(var(--brand-rgb));` so that I can later do something like `border: 3x solid rgba(var(--brand-rgb), 0.5);` and have all `brand` colors derive from a single source.

    • @_akuma06
      @_akuma06 11 หลายเดือนก่อน +2

      Same here but with HSL where I have a variable for each property (hue, saturation and luminosity). Something like:
      --brand-hue: 95;
      --brand-sat: 100%;
      --brand-lum: 50%;
      --brand-primary: hsl(var(--brand-hue), var(--brand-sat), var(--brand-lum));
      --brand-secondary: hsl(calc(var(--brand-hue) - 180), var(--brand-sat), var(--brand-lum));

  • @jmagrippis
    @jmagrippis 11 หลายเดือนก่อน +3

    Awesome! I didn’t know this was coming and the moment you started explaining I was like “OMG we can extract the hue from a custom property for their brand colour” and it was like your second example at 3:37 😄
    Very exciting!

  • @thevividversatilechannel4807
    @thevividversatilechannel4807 11 หลายเดือนก่อน +3

    Filter hue rotation in different color spaces please

  • @sergiomartin8935
    @sergiomartin8935 11 หลายเดือนก่อน +1

    Amazing :)

  • @clevermissfox
    @clevermissfox 6 หลายเดือนก่อน

    Idk how I missed this! Can’t wait until Mozilla gets on board !! I’m always manually transforming rgb to oklch now (thanks for your gradient dot style gradient generator it’s sooo helpful !!

  • @SPAHI43
    @SPAHI43 11 หลายเดือนก่อน +1

    Imagine this plus upcoming HDR wide gamut colors

  • @unique.persun
    @unique.persun 11 หลายเดือนก่อน +2

    🤘🏻🙌🏻

  • @Atractiondj
    @Atractiondj 5 หลายเดือนก่อน

    Why we can't do - oklch(from currentColor calc(l - 20) c h) for hover color for example?

  • @sahilmulla1680
    @sahilmulla1680 หลายเดือนก่อน

    Can we lerp between two colors, suppose I have a brand color and I need to make shades and tints, I can lerp the color to black or white

  • @zblahcnicnuce
    @zblahcnicnuce 11 หลายเดือนก่อน

    🤔

  • @Testfortest142
    @Testfortest142 11 หลายเดือนก่อน

    Please search J Bravo and you know what I mean lol

  • @user-mt7sy1qy5i
    @user-mt7sy1qy5i 11 หลายเดือนก่อน

    🤔

  • @deathtoby
    @deathtoby 11 หลายเดือนก่อน

    🤔

  • @Max86421
    @Max86421 11 หลายเดือนก่อน

    🤔