語法

重點色accent-color🚧

Setting the accent color of user interface elements or controls.

🚧This page is still under construction and some content may not be complete.

Overview

ClassDeclarations
accent:coloraccent-color: color;
accent:currentaccent-color: currentColor;
accent:transparentaccent-color: transparent;

Basic usage

Set the accent color

Use the accent-color:color to set a custom accent color of user interface elements or controls.

<label>    <input type="checkbox" />    <span>default color</span></label><label>    <input type="checkbox" class="accent-color:red-50">    <span>Customized</span></label>

Conditionally apply

Apply styles based on different states using selectors and applying conditionally.

<div class="accent-color:red-46:hover accent-color:red-46@sm accent-color:red-46@dark accent-color:red-46@print">…</div>
設計標記
文本色彩

Customizing text color variables or starting with the official design system.

語法
內容對齊

Controlling how multiple rows or columns are aligned along its cross axis.

© Aoyue Design LLC.