CSS appearance Property
The appearance property controls whether an element uses its native, browser-provided appearance or a different supported appearance.
It is commonly used with form controls such as checkboxes, radio buttons, buttons, and select menus. Setting appearance: none removes native control styling so you can create a custom design using CSS while retaining the underlying HTML element's behavior.
appearance Syntax
selector {
appearance: none;
}
The property accepts keywords that determine how the browser presents an element's native appearance.
.default-control {
appearance: auto;
}
.custom-control {
appearance: none;
}
.native-button {
appearance: button;
}
.menu-control {
appearance: menulist-button;
}
.minimal-select {
appearance: base-select;
}
Not every value is applicable to every element. Some values have limited browser support or are intended for particular types of controls.
The property also accepts CSS-wide values such as inherit, initial, revert, revert-layer, and unset.
Property Values
| Value | Description |
|---|---|
none |
Suppresses native appearance styling, allowing the control to be styled with CSS. |
auto |
Uses the browser's normal appearance for the element. This is the initial value. |
button |
Requests a button-like appearance where supported and applicable. |
menulist-button |
Requests a menu-list button appearance, primarily associated with select controls. |
base-select |
Enables a customizable base appearance for supported select controls and their picker, where implemented. |
Older browser engines also recognize various nonstandard appearance keywords. These values are not consistently supported and should not be relied upon for cross-browser designs.
The property applies to all elements, is not inherited, and has an initial value of none only when explicitly set. Otherwise, the initial value is auto. Its computed value is the specified keyword, and the property itself is not animatable.
How appearance Works
Browsers normally provide built-in styling for interactive controls. This styling may depend on the operating system, browser, and control type.
For example, a checkbox may have a different border, checkmark, or background color in different browsers even when its HTML markup is identical.
<label>
<input type="checkbox" name="updates">
Receive updates
</label>
Without custom styling, the checkbox uses its normal browser appearance.
Setting appearance: none removes the native visual presentation, but the element remains an HTML checkbox with its normal checked state and form behavior.
input[type="checkbox"] {
appearance: none;
}
Because native styling has been removed, additional CSS is needed to give the checkbox a visible shape, checked indicator, and focus state.
The appearance property changes presentation. It does not change an element's HTML type, form submission behavior, or accessibility semantics.
Using appearance: none
The none value is commonly used when creating custom form controls that need a consistent appearance across browsers.
.custom-button {
appearance: none;
padding: 10px 18px;
border: 1px solid #1769aa;
border-radius: 4px;
background-color: #1769aa;
color: #fff;
font: inherit;
cursor: pointer;
}
This example removes the native button appearance and supplies explicit CSS for its background, border, text, and spacing.
Removing native appearance does not automatically remove every browser style or default spacing. You may still need to define properties such as margin, padding, font, and border.
Use appearance: none selectively. Applying it to every form control can remove familiar visual indicators and create additional styling and accessibility work.
Custom Checkboxes
Checkboxes are a common use case for appearance: none. The property allows you to replace the browser's default checkbox appearance with a custom shape and checked indicator.
<label class="custom-checkbox-label">
<input type="checkbox" name="notifications">
Enable notifications
</label>
.custom-checkbox-label {
display: inline-flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
.custom-checkbox-label input {
appearance: none;
width: 20px;
height: 20px;
margin: 0;
border: 2px solid #1769aa;
border-radius: 3px;
background-color: #fff;
cursor: pointer;
}
.custom-checkbox-label input:checked {
background-color: #1769aa;
box-shadow: inset 0 0 0 4px #fff;
}
.custom-checkbox-label input:focus-visible {
outline: 2px solid #222;
outline-offset: 3px;
}
The :checked pseudo-class changes the checkbox's appearance when selected. The :focus-visible pseudo-class provides a visible focus indicator for keyboard navigation.
The checkbox remains a native HTML input, so it can still be toggled using the keyboard and submitted as part of a form.
For a simpler way to change the color of native checkboxes and radio buttons, consider using accent-color instead of removing their appearance entirely.
Custom Radio Buttons
Radio buttons can also be customized with appearance: none. A circular border and a checked-state indicator can replace their default presentation.
<label class="custom-radio-label">
<input type="radio" name="layout" value="grid" checked>
Grid layout
</label>
<label class="custom-radio-label">
<input type="radio" name="layout" value="list">
List layout
</label>
.custom-radio-label {
display: inline-flex;
align-items: center;
gap: 8px;
margin-right: 15px;
cursor: pointer;
}
.custom-radio-label input {
appearance: none;
width: 20px;
height: 20px;
margin: 0;
border: 2px solid #1769aa;
border-radius: 50%;
background-color: #fff;
cursor: pointer;
}
.custom-radio-label input:checked {
background-color: #1769aa;
box-shadow: inset 0 0 0 4px #fff;
}
.custom-radio-label input:focus-visible {
outline: 2px solid #222;
outline-offset: 3px;
}
Radio buttons sharing the same name attribute remain mutually exclusive. The custom styling does not change how the browser manages the selected value.
Use a clearly distinguishable checked state so users can identify the selected option without relying on subtle color differences.
Select Elements
The appearance property can change the visual presentation of a native <select> element.
Removing the Default Dropdown Indicator
<label for="display-mode">Display mode:</label>
<select id="display-mode" name="display-mode">
<option value="standard">Standard</option>
<option value="compact">Compact</option>
<option value="expanded">Expanded</option>
</select>
#display-mode {
appearance: none;
padding: 10px 35px 10px 12px;
border: 1px solid #777;
border-radius: 4px;
background-color: #fff;
color: #222;
font: inherit;
cursor: pointer;
}
The none value typically removes the browser's default dropdown arrow from a closed select control. The control retains its selection behavior, but the popup containing its options may still use native platform styling.
If you remove the dropdown indicator, provide a replacement visual cue so users recognize the element as a selectable menu.
Using base-select
The base-select value provides an opt-in customizable appearance for select controls in browsers that implement the customizable select feature.
@supports (appearance: base-select) {
select,
select::picker(select) {
appearance: base-select;
}
}
Applying base-select to both the select element and its picker allows supporting browsers to use the customizable select model. Additional CSS can then style supported parts of the control and its options.
The base-select value and ::picker(select) are newer features with limited browser support. Keep the native select usable as a fallback.
Other Form Controls
Although checkboxes and radio buttons are common examples, appearance can also affect other native interface controls.
Buttons
button {
appearance: none;
padding: 10px 16px;
border: 1px solid #1769aa;
background-color: #1769aa;
color: #fff;
font: inherit;
cursor: pointer;
}
Buttons retain their native keyboard and click behavior while receiving a custom visual design.
Search Inputs
input[type="search"] {
appearance: none;
padding: 8px 12px;
border: 1px solid #999;
border-radius: 4px;
font: inherit;
}
This can reduce native search-field styling differences, although browser-specific features such as clear buttons may require additional consideration.
Range Inputs
input[type="range"] {
appearance: none;
width: 200px;
height: 6px;
background-color: #ddd;
border-radius: 3px;
}
Range inputs require additional styling for their slider thumb. Browsers may use different pseudo-elements for the thumb and track, so custom range controls need careful cross-browser testing.
For controls that only need a color change, preserving their native appearance is usually simpler than rebuilding their visual presentation.
appearance Example
The following example compares a native checkbox with a checkbox using appearance: none.
Both checkboxes remain interactive. The custom checkbox uses CSS to define its border, background, checked state, and keyboard focus indicator.
<div class="appearance-demo">
<label>
<input type="checkbox" checked>
Native checkbox
</label>
<label>
<input class="custom-check" type="checkbox" checked>
Custom checkbox
</label>
</div>
.appearance-demo {
display: flex;
flex-wrap: wrap;
gap: 25px;
padding: 15px;
background-color: #f8f9fa;
border: 1px solid #ddd;
}
.appearance-demo label {
display: inline-flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
.appearance-demo .custom-check {
appearance: none;
width: 22px;
height: 22px;
margin: 0;
border: 2px solid #1769aa;
border-radius: 4px;
background-color: #fff;
cursor: pointer;
}
.appearance-demo .custom-check:checked {
background-color: #1769aa;
box-shadow: inset 0 0 0 4px #fff;
}
.appearance-demo .custom-check:focus-visible {
outline: 2px solid #222;
outline-offset: 3px;
}
The native checkbox uses the browser's normal styling. The custom checkbox uses a blue square with a white center to indicate its checked state.
Click either checkbox to toggle its state. Both controls can also be reached with the Tab key and toggled with the Space key.
Notice that the custom checkbox does not use the browser's built-in checkmark. Its selected state is represented by the CSS background and inset box shadow.
Accessibility Considerations
Removing native appearance also removes visual features that users may depend on. Custom controls should preserve clear interactive states and remain usable with a keyboard.
Preserve Native HTML Elements
Use actual form controls whenever possible. A styled <input type="checkbox"> retains its checkbox semantics, keyboard behavior, and form participation.
Replacing a checkbox with a generic <div> requires additional scripting and accessibility support to reproduce that behavior.
Provide Visible Focus Indicators
.custom-control:focus-visible {
outline: 2px solid #222;
outline-offset: 3px;
}
Keyboard users need a visible indication of which control currently has focus.
Make States Easy to Recognize
Custom checkboxes, radio buttons, and other controls should clearly distinguish selected, unselected, disabled, and focused states when applicable.
Do not rely solely on color differences. Shapes, borders, icons, or other visual indicators can help communicate state.
Test High Contrast and Forced Colors
Custom styling may not appear as intended in forced-colors environments. Test whether control boundaries and selected states remain visible.
Where possible, use system colors or provide an appropriate forced-colors adjustment rather than disabling accessibility-related browser behavior.
Important Considerations
Keep the following points in mind when using appearance:
- Default value: The initial value is
auto, which normally preserves the browser's native appearance. - Custom styling: The
nonevalue removes native appearance styling but does not automatically supply a replacement design. - HTML behavior: The property changes presentation, not the underlying element's type, semantics, or form behavior.
- Form controls: Checkboxes, radio buttons, buttons, and select elements are common uses.
- State indicators: Use pseudo-classes such as
:checked,:disabled, and:focus-visibleto style interactive states. - Native alternatives: Consider
accent-colorwhen you only need to change the color of supported native controls. - Select menus: Removing the native select appearance does not automatically make every part of its popup customizable.
- Browser differences: Some appearance values and control-specific styling features vary between browser engines.
- Accessibility: Preserve keyboard interaction, visible focus, adequate contrast, and recognizable control states.
Use appearance: none when a custom control design is necessary. When the native appearance already meets the design requirements, keeping it often provides better consistency with the user's operating system and accessibility preferences.
Browser Support
The appearance property is Baseline Widely available for its commonly used values, including auto and none, across modern browsers.
Some browsers historically required the -webkit-appearance or -moz-appearance prefixed properties. Modern browsers support the unprefixed property for common use cases.
Newer values such as base-select have more limited support and should be tested separately.
.custom-checkbox {
-webkit-appearance: none;
appearance: none;
}
The prefixed declaration may help with older WebKit-based browsers, while the unprefixed declaration is the standard form.
Visit Can I Use? to check browser compatibility. Check newer appearance values separately when using them.
Specifications
The appearance property is defined in the CSS Basic User Interface Module Level 4 specification.
