Syntax
Appearance
Controlling the native appearance of UI controls.
🚧This page is still under construction and some content may not be complete.
Overview
Remove default styling
Use the appearance:none
to remove default appearance of element. It is usually used to customize UI controls element.
<select class="appearance:none"> <option>Yes</option> <option>No</option></select>
Before removing the default appearance, it looks like this:
<select> <option>Yes</option> <option>No</option></select>
Conditionally apply
Apply styles based on different states using selectors and applying conditionally.
<div class="appearance:none:hover appearance:none@sm appearance:none@dark appearance:none@print">…</div>