Senior FrontEnd Developer
@MayaShavin
Use of color
Background images
Visual alternative
HEADING
HEADING
https://www.uat.edu
filter
invert()
.darkMode {
filter: invert(1);
}
.container {
display: flex;
align-items: center;
justify-content: center;
position: relative;
background-color: black;
}
.banner {
width: 100%;
height: 100%;
position: absolute;
opacity: 0.6;
}
.title {
z-index: 2;
font-size: 50px;
color: white;
}
.container {
display: flex;
align-items: center;
justify-content: center;
position: relative;
background-color: black;
}
.banner {
width: 100%;
height: 100%;
position: absolute;
opacity: 0.6;
}
.banner {
filter: brightness(
var(--bannerBrightness)
);
}
.title {
position: absolute;
margin: auto;
z-index: 2;
font-size: 50px;
color: white;
}
<img class="banner"
.../>
<img class="banner"
style="--bannerBrightness:60%"
.../>
.banner {
width: 100%;
height: 100%;
position: absolute;
opacity: 0.6;
}
.title {
z-index: 2;
font-size: 50px;
color: white;
}
<img
alt="Superdry Dry Originals Pocket T-Shirt"
data-color="Vintage Brick Red"
...
/>
Browser DOM
roles
states
properties
<button
aria-disabled=”false"
>
Place order
</button>
<div
role=”button"
aria-disabled=”false"
>
Place order
</div>