Border

Border Color

Can I use ?Can I use ?
classproperties
border-color:color / border:color / b:colorborder-color: color
border-top:color / bt:colorborder-top: color
border-bottom:color / bb:colorborder-bottom: color
border-left:color / bl:colorborder-left: color
border-right:color / br:colorborder-right: color
bx:colorborder-left: color; border-right: color
by:colorborder-top: color; border-bottom: color

Use or name colors please refer to Colors. Also supports color like #hex, rgb(…), hsl(…).

Overview

The border-color CSS property sets the color of an element’s border.

Colors

Use color please refer to Colors.

b:fade-60
b:gray-60
b:brown-60
b:orange-60
b:gold-60
b:yellow-60
b:grass-60
b:green-60
b:beryl-60
b:teal-60
b:cyan-60
b:sky-60
b:blue-60
b:indigo-60
b:violet-60
b:purple-60
b:fuchsia-60
b:pink-60
b:crimson-60
b:red-60

Hex

b:#878d9f
b:#8d8d8f
b:#af836e
b:#d5731e
b:#c08000
b:#ac8a00
b:#689c13
b:#08a345
b:#00a170
b:#009f94
b:#0099c1
b:#0b92ee
b:#538cee
b:#7d84e8
b:#9e77f5
b:#b56cec
b:#e04ee5
b:#ee52a3
b:#ea5b82
b:#eb5f63

RGB

b:rgb(135,141,159)
b:rgb(141,141,143)
b:rgb(175,131,110)
b:rgb(213,115,30)
b:rgb(192,128,0)
b:rgb(172,138,0)
b:rgb(104,156,19)
b:rgb(8,163,69)
b:rgb(0,161,112)
b:rgb(0,159,148)
b:rgb(0,153,193)
b:rgb(11,146,238)
b:rgb(83,140,238)
b:rgb(125,132,232)
b:rgb(158,119,245)
b:rgb(181,108,236)
b:rgb(224,78,229)
b:rgb(238,82,163)
b:rgb(234,91,130)
b:rgb(235,95,99)

Applying with functions

<div class="border-color:$(color)">...</div>

Master supports native CSS variables and functions, just add var(--key) or use shorthand$(key) for variables.

You can also use calc(expression), env(expression) and other CSS functions if the property supports it.

To learn more, see the Functions documentation.

Conditionally apply

States and selectors

<div class="border-color:blue-60:hover">...</div>

Master supports all native CSS selectors, just add :hover, :disabled, chaining, combinators and other CSS selectors as usual.

To learn more, see the Selectors documentation.

Responsive breakpoints

<div class="border-color:blue-60@sm">...</div>

Responsive breakpoints can be applied to all styles. Some available breakpoints are 3xs, 2xs, xs, sm,md, lg, xl, 2xl, 3xl, 4xl. Arbitrary breakpoints can be specified through comparison operators >, >=, <, <=.

To learn more, see the Breakpoints documentation.

<div class="border-color:blue-60@print">...</div>

Master supports media types like print, screen, speech, all, and other media queries.

To learn more, see the Media Queries documentation.

Dark mode and color schemes

<div class="border-color:blue-60@dark">...</div>

Master uses the selector html.dark to support color schemes. Now, you can easily fine-tune your style for the color schemes.

To learn more, see the Color Schemes documentation.


© Aoyue Design LLC.
Issue on this page
Edited byAronLola