Your question reminded me of seeing this in the shadcn default CSS config. I think it exactly answers your question @layer base { * { @apply border-border outline-ring/50; } Answer from maqisha on reddit.com
Discussions

How to set a default border color in tailwind 4
Your question reminded me of seeing this in the shadcn default CSS config. I think it exactly answers your question @layer base { * { @apply border-border outline-ring/50; } More on reddit.com
๐ŸŒ r/tailwindcss
4
4
August 14, 2025
Change the Focus Border color in Tailwind CSS
I am using Tailwind css with my react application. I am creating a form using tailwind and want to change focus border color of my input text box in teal which is blue. function App() { return ( ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
html - Border Color Tailwind CSS - Stack Overflow
Is there any way to make a border 2 colors through Tailwind? I am trying to make a black and white top border, but it won't let me use a gradient since those are just for backgrounds I tried using ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
next.js - Tailwind css border color not working on web page - Stack Overflow
I am just trying with tailwindcss, I got stuck at very basic thing. I tried different tailwindcss's utility classed and it worked. But now I am stuck at border-color More on stackoverflow.com
๐ŸŒ stackoverflow.com
People also ask

How do I remove a border in Tailwind CSS?
Use the border-0 class to remove borders.
๐ŸŒ
tailkits.com
tailkits.com โ€บ blog
Customizing Border Color in Tailwind CSS: An Easy Guide | Tailkits
Can I apply a gradient to a border in Tailwind CSS?
Tailwind doesn't support border gradients directly, but you can use background gradients and adjust padding to create a border-like effect. Gradient border effect
๐ŸŒ
tailkits.com
tailkits.com โ€บ blog
Customizing Border Color in Tailwind CSS: An Easy Guide | Tailkits
How do I change the border color on hover in Tailwind CSS?
Use the hover: prefix with your border color class.
๐ŸŒ
tailkits.com
tailkits.com โ€บ blog
Customizing Border Color in Tailwind CSS: An Easy Guide | Tailkits
๐ŸŒ
Tailkits
tailkits.com โ€บ blog
Customizing Border Color in Tailwind CSS: An Easy Guide | Tailkits
December 26, 2024 - This sets the border color to a shade of red. Tailwind's color palette includes various shades.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ css โ€บ tailwind-css-border-color
Tailwind CSS Border Color - GeeksforGeeks
July 23, 2025 - This class is used to specify the border color of an element. ... Note: The colorโ€™s values can be changeable according to your need from 50-900, the span should be 100, after the 100.
๐ŸŒ
Tailwind CSS
tailwindcss.com โ€บ docs โ€บ outline-color
outline-color - Borders - Tailwind CSS
@theme { --color-regal-blue: #243c5a; } Now the outline-regal-blue utility can be used in your markup: <div class="outline-regal-blue"> <!-- ... --></div> Learn more about customizing your theme in the theme documentation. Quick reference ยท Examples ยท Basic example ยท Changing the opacity ยท Using a custom value ยท Responsive design ยท Customizing your theme ยท Copyright ยฉ 2025 Tailwind Labs Inc.ยทTrademark Policy
๐ŸŒ
TailwindTap
tailwindtap.com โ€บ blog โ€บ tailwind-css-border-color-guide
A Deep Dive into Tailwind CSS Border Colors: Tips and Examples
The border class sets all four ... individual sides. Tailwind CSS also provides a set of predefined color classes that you can use to easily apply Border Colors without having to define custom color values....
Find elsewhere
๐ŸŒ
Tailwind CSS
v2.tailwindcss.com โ€บ docs โ€บ border-color
Border Color - Tailwind CSS
Control the border color of an element using the border-{color} utilities.
๐ŸŒ
Tailwind
windframe.dev โ€บ tailwind โ€บ classes โ€บ tailwind-border-color
Tailwind border color utility enables you to apply border colors to the border of an element such as buttons, input, containers, cards etc.
July 21, 2025 - Tailwind border color utility enables you to apply border colors to the border of an element such as buttons, input, containers, cards etc.
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 76766369 โ€บ border-color-tailwind-css
html - Border Color Tailwind CSS - Stack Overflow
I tried using the CSS method of having a small container and giving the outside container a gradient color but I was wondering if there was a more intuitive way to just apply the linear gradient to the border itself
๐ŸŒ
Nerd Cave
nerdcave.com โ€บ tailwind-cheat-sheet
Tailwind CSS Cheat Sheet
Cheat sheet to learn Tailwind CSS quickly. Browse and search all Tailwind utility classes or CSS properties on one page.
๐ŸŒ
Tailwind CSS
tailwindcss.com โ€บ docs โ€บ border-width
border-width - Borders - Tailwind CSS
<div class="border-t-4 border-indigo-500 ..."></div><div class="border-r-4 border-indigo-500 ..."></div><div class="border-b-4 border-indigo-500 ..."></div><div class="border-l-4 border-indigo-500 ..."></div>
๐ŸŒ
Tailscan
tailscan.com โ€บ tailwind โ€บ borders โ€บ border-current
border-current - Tailwind Border Color - Tailscan for Tailwind CSS
border-current is a Tailwind CSS class. Check out the css, examples how to use this class and other classes for styling the Border Color in our Tailscan Library.
๐ŸŒ
Tailscan
tailscan.com โ€บ tailwind โ€บ borders โ€บ border-gray-400
border-gray-400 - Tailwind Border Color - Tailscan for Tailwind CSS
The class border-gray-400 is a Tailwind CSS class, part of the border color classes in the category borders.
๐ŸŒ
Nativewind
nativewind.dev โ€บ docs โ€บ tailwind โ€บ borders โ€บ border-color
Border Color
October 14, 2025 - This plugin allows the border color to dynamically change its opacity via the --tw-border-opacity variable. Instead, the opacity is set as a static value in the color property. If you need to use this feature, you can enable it by adding the ...
๐ŸŒ
Flowbite
flowbite.com โ€บ docs โ€บ components โ€บ buttons
Tailwind CSS Buttons - Flowbite
Use these default button styles with multiple colors to indicate an action or link within your website. ... <button type="button" class="text-white bg-brand box-border border border-transparent hover:bg-brand-strong focus:ring-4 focus:ring-brand-medium shadow-xs font-medium leading-5 rounded-base text-sm px-4 py-2.5 focus:outline-none">Default</button> <button type="button" class="text-body bg-neutral-secondary-medium box-border border border-default-medium hover:bg-neutral-tertiary-medium hover:text-heading focus:ring-4 focus:ring-neutral-tertiary shadow-xs font-medium leading-5 rounded-base