Skip navigation
Make your border blend with the background.
0:00 / 0:21

Make your border blend with the background.

Sebastiano Guerriero

@guerriero_se19K followers

Visit on X
1,959 likesDownloadOriginal post

121,258 views

Make your border blend with the background.

25 Comments

Comments from the original post on X (Twitter)

  • Sebastiano Guerriero's profile picture

    @guerriero_se

    Before → After

    15 likes

  • Abi's profile picture

    @quirkdominion

    Looks exactly the same to my eyes 😓

    10 likes

  • Sebastiano Guerriero's profile picture

    @guerriero_se

    it is subtle, I'll give you that 😄

    2 likes

  • etongo's profile picture

    @bossadizenith

    don't also forget pointer-events-none!

    5 likes

  • Sebastiano Guerriero's profile picture

    @guerriero_se

    True!

    2 likes

  • etongo's profile picture

    @bossadizenith

    🫶

    1 like

  • ɱㄖ€ ӄノᏁᎶᕵꂑክ♿👨‍🦽🇨🇰's profile picture

    @BIGNAPHTHA

    do not use mix blend mode if you want people on firefox to use your website in more than 2 fps

    3 likes

  • Marek Jóźwiak's profile picture

    @madebyhex

    I'm still not 100% convinced to this solution. The issue arises with scenarios involving components like dialogs, dropdowns, etc., when there are different elements underneath them. This sometimes creates a very inconsistent, conspicuous border around the overlay component

    2 likes

  • Sebastiano Guerriero's profile picture

    @guerriero_se

    It’s not always a good solution. It’s great when applied to static elements sitting on top of colorful/dark backgrounds. I wouldn’t use it on popovers.

    5 likes

  • Jeflopo's profile picture

    @jeflopo

    Minimal visual gain but fuck the semantics of the document using an span just to style a border xdd

    2 likes

  • Sebastiano Guerriero's profile picture

    @guerriero_se

    you can also just use a class

    8 likes

  • Jeflopo's profile picture

    @jeflopo

    True. Much better

    3 likes

  • marcos vin's profile picture

    @fnkaa72512531

    Brilliant

    1 like

  • Victor Boutté's profile picture

    @monsieurBoutte

    🔥 bookmarked

    1 like

  • Michał Staśkiewicz's profile picture

    @mikoscz

    haven’t seen anyone touch code by hand in months, love that bro

  • ea's profile picture

    @seladexal

    Its 2026, just paste the prompt

  • Sebastiano Guerriero's profile picture

    @guerriero_se

    prompting takes more time that writing 2 CSS classes

  • ea's profile picture

    @seladexal

    Hence, the joke

  • nice rice's profile picture

    @nicericesh

    the kind of pre-ai autism that made me fall in love with webdev

  • Bradley Hanson's profile picture

    @bradleyghanson

    I have forgotten what it looks like to see code actually typed out