Normalize
Ce contenu n’est pas encore disponible dans votre langue.
OxyProps Normalize is a normalize based on Open Props normalize, using the framework CSS custom properties. It applies minimal styles for all standard HTML elements to make them consistent with your theme. And it is adaptive to light and dark.
The OxyProps normalize uses :where()
selectors resulting in zero specificity so you will always be able to override these values.
Normalized HTML5 Elements
link Normalized HTML5 ElementsText | Embedded content | Form elements |
---|---|---|
Headings | Images | Input fields |
Paragraphs | Audio | Select menus |
Blockquotes | Video | Checkboxes |
Lists | Canvas | Radio buttons |
Horizontal rules | Meter | Textareas |
Tabular data | Progress | HTML5 inputs |
Code | Inline SVG | Action buttons |
Inline elements | IFrames | |
HTML Comments |
<html>
element
link <html> elementSets the default color scheme to light
and the background color to --o-surface-1
.
This color adapts to light and dark modes.
For theme consistency, sets the default accent-color
and caret-color
to brand
, your selected brand color.
The accent-color
CSS property defines the accent color for html elements like checkboxes or radios.
The caret-color
CSS property defines cursor color where user can input text.
For theme consistency, sets the scrollbar-color
to your canvas color with --o-scrollbar-color
for the thumb, and transparent for the track.
Fixes a bad behavior on mobile iOS. See this article by Kilian Valkhof
Sets the default font family to the --o-font-sans
safe sans serif font stack.
Sets block-size
to 100%
. block-size
is a logical CSS property that defines the horizontal or vertical size of an element’s block, depending on its writing mode.
The <dt>
element : Description Term
link The <dt> element : Description Termc,kzldnvz