Outline

Outline Color

Can I use ?Can I use ?
classproperties
outline-color:color / outline:coloroutline-color: color
outline:#hexoutline-color: #hex
outline:rgb(rgb)outline-color: rgb(rgb)
outline:hsl(hsl)outline-color: hsl(hsl)

Use or name colors please refer to Colors.

Overview

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

Colors

Use color please refer to Colors.

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

Hex

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

RGB

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

Applying with functions

<div class="outline-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="outline-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="outline-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="outline-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="outline-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.
關於此頁的問題
編輯自AronLola