Uploaded June 2025 | Updated November 2026, 3 hours ago
I was recently asked about creating the glowing border effect from Google's AI Mode, and it sounded like a fun challenge, so here's how I did it!
π Links
β Finished code: codepen.io/kevinpowell/pen/WbbXRPL??editors=1100
β The site where I got the effect: https://search.google/ways-to-search/ai-mode/
kevinpowell.co/courses
β Timestamps
00:00 - Introduction
00:30 - the HTML and starting CSS
01:30 - Setting up the border
06:48 - Faking a transparent background
09:00 - Adding the outer glow
13:20 - Making the inner glow
16:55 - Tweaking the values of the blur
18:18 - Adding custom properties
20:07 - Flipping it to the other side
22:25 - Improving and customizing the gradient
24:30 - Animating the gradient and glow by changing the colors
27:35 - An easier way to animate it
#css
β Keep up to date with everything I'm up to kevinpowell.co/newsletter
π¬ Come hang out with other devs in my Discord Community discord.gg/nTYCvrK
β Are you a beginner? HTML & CSS for absolute beginners is for you: learn.kevinpowell.co
π Start writing CSS with confidence with CSS Demystified: [https://cssdemystified.com](https://cssdemystified.com/)
π Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/
---
Help support my channel
π¨βπ Get a course: kevinpowell.co/courses
π Buy a shirt: cottonbureau.com/people/kevin-powell
π Support me on Patreon: patreon.com/kevinpowell or through YT memberships: youtube.com/@KevinPowell/join
---
π§βπ» My editor: VS Code - code.visualstudio.com
π My theme: One Dark Pro Var Night
π€ My font: Cascadia Code
---
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my YouTube channel:
Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: codepen.io/kevinpowell
Github: github.com/kevin-powell
---
And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!
I was recently asked about creating the glowing border effect from Google's AI Mode, and it sounded like a fun challenge, so here's how I did it!
π Links
β Finished code: codepen.io/kevinpowell/pen/WbbXRPL??editors=1100
β The site where I got the effect: https://search.google/ways-to-search/ai-mode/
kevinpowell.co/courses
β Timestamps
00:00 - Introduction
00:30 - the HTML and starting CSS
01:30 - Setting up the border
06:48 - Faking a transparent background
09:00 - Adding the outer glow
13:20 - Making the inner glow
16:55 - Tweaking the values of the blur
18:18 - Adding custom properties
20:07 - Flipping it to the other side
22:25 - Improving and customizing the gradient
24:30 - Animating the gradient and glow by changing the colors
27:35 - An easier way to animate it
#css
β Keep up to date with everything I'm up to kevinpowell.co/newsletter
π¬ Come hang out with other devs in my Discord Community discord.gg/nTYCvrK
β Are you a beginner? HTML & CSS for absolute beginners is for you: learn.kevinpowell.co
π Start writing CSS with confidence with CSS Demystified: [https://cssdemystified.com](https://cssdemystified.com/)
π Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/
---
Help support my channel
π¨βπ Get a course: kevinpowell.co/courses
π Buy a shirt: cottonbureau.com/people/kevin-powell
π Support me on Patreon: patreon.com/kevinpowell or through YT memberships: youtube.com/@KevinPowell/join
---
π§βπ» My editor: VS Code - code.visualstudio.com
π My theme: One Dark Pro Var Night
π€ My font: Cascadia Code
---
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my YouTube channel:
Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: codepen.io/kevinpowell
Github: github.com/kevin-powell
---
And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

π Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/
Help support my channel
π¨βπ Get a course: https://www.kevinpowell.co/courses
π Buy a shirt: https://cottonbureau.com/people/kevin-powell
π Support me on Patreon: https://www.patreon.com/kevinpowell or through YT memberships: https://youtube.com/@KevinPowell/join
π§βπ» My editors:
In most videos, Iβm using CodePen these days: https://codepen.io/ - with High Contrast Dark theme and the font Commit Mono
And if not CodePen, then Iβm probably using Zed: https://zed.dev/ with the theme Ayu Dark, and the font ZedMono
In older videos, I was using VS Code - https://code.visualstudio.com/ with the theme One Dark Pro Var, and the font Cascadia
β Timestamps:
00:00 - Intro
00:58 - The basics of contrast-color()
03:15 - Using it with a more robust setup
Im on some other places on the internet too!
If youd like a behind the scenes and previews of whats coming up on my YouTube channel:
Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell
And whatever you do, dont forget to keep on making your corner of the internet just a little bit more awesome!
#css Build bulletproof color systems](https://i.ytimg.com/vi/JEJbSGtZxOw/mqdefault.jpg)

π Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/
β Timestamps
00:00 - Useless declarations
02:00 - work with the browser, not against it
05:05 - staying organized and refactoring
08:40 - donβt remove outlines
11:25 - using the right tool for the right job
#css
Help support my channel
π¨βπ Get a course: https://www.kevinpowell.co/courses
π Buy a shirt: https://cottonbureau.com/people/kevin-powell
π Support me on Patreon: https://www.patreon.com/kevinpowell or through YT memberships: https://youtube.com/@KevinPowell/join
π§βπ» My editor: VS Code - https://code.visualstudio.com/
π My theme: One Dark Pro Var Night
π€ My font: Cascadia Code
Im on some other places on the internet too!
If youd like a behind the scenes and previews of whats coming up on my YouTube channel:
Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell
And whatever you do, dont forget to keep on making your corner of the internet just a little bit more awesome! 5 CSS fouls that I see way too often](https://i.ytimg.com/vi/J_cnZa6UzVI/mqdefault.jpg)






π Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/
Help support my channel
π¨βπ Get a course: https://www.kevinpowell.co/courses
π Buy a shirt: https://cottonbureau.com/people/kevin-powell
π Support me on Patreon: https://www.patreon.com/kevinpowell or through YT memberships: https://youtube.com/@KevinPowell/join
π§βπ» My editor: VS Code - https://code.visualstudio.com/
π My theme: One Dark Pro Var Night
π€ My font: Cascadia Code
Im on some other places on the internet too!
If youd like a behind the scenes and previews of whats coming up on my YouTube channel:
Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell
And whatever you do, dont forget to keep on making your corner of the internet just a little bit more awesome! The MOST ANNOYING thing about CSS](https://i.ytimg.com/vi/KjpQF3nYGoc/mqdefault.jpg)


