2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>Colors on a web page should aim a contrast ratio of at least <strong>4.5:1</strong> and consider a selection of colors that do not cause vibration.</p>
|
2023-03-21 08:31:13 +00:00
|
|
|
<h3>Good Contrast</h3>
|
|
|
|
<p>Color contrast between the background and the foreground content should be sufficient enough to ensure readability. Example below displays two cases with good and bad samples.</p>
|
2023-02-28 08:29:30 +00:00
|
|
|
|
2023-03-21 08:31:13 +00:00
|
|
|
<div class="flex">
|
|
|
|
<div class="h-8rem w-8rem flex justify-content-center align-items-center mr-5 font-bold bg-blue-600" style="borderradius: 10px">
|
|
|
|
<span class="text-white">GOOD</span>
|
|
|
|
</div>
|
|
|
|
<div class="h-8rem w-8rem flex justify-content-center align-items-center mr-5 font-bold bg-blue-400" style="borderradius: 10px">
|
|
|
|
<span class="text-white">BAD</span>
|
|
|
|
</div>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
|
2023-03-21 08:31:13 +00:00
|
|
|
<h3>Vibration</h3>
|
|
|
|
<p>Color vibration is leads to an illusion of motion due to choosing colors that have low visibility against each other. Color combinations need to be picked with caution to avoid vibration.</p>
|
2023-02-28 08:29:30 +00:00
|
|
|
|
2023-03-21 08:31:13 +00:00
|
|
|
<div class="flex">
|
|
|
|
<div class="h-8rem w-8rem flex justify-content-center align-items-center mr-5 font-bold bg-pink-500" style="borderradius: 10px">
|
|
|
|
<span class="text-blue-500">VIBRATE</span>
|
|
|
|
</div>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
|
2023-03-21 08:31:13 +00:00
|
|
|
<h3>Dark Mode</h3>
|
|
|
|
<p>Highly saturated colors should be avoided when used within a dark design scheme as they cause eye strain. Instead desaturated colors should be preferred.</p>
|
2023-02-28 08:29:30 +00:00
|
|
|
|
2023-03-21 08:31:13 +00:00
|
|
|
<div class="flex">
|
|
|
|
<div class="h-8rem w-8rem flex flex-column justify-content-center align-items-center mr-5 font-bold bg-gray-900" style="borderradius: 10px">
|
|
|
|
<span class="text-indigo-500">Indigo 500</span>
|
|
|
|
<i class="text-indigo-500 pi pi-times-circle mt-3 text-xl"></i>
|
|
|
|
</div>
|
|
|
|
<div class="h-8rem w-8rem flex flex-column justify-content-center align-items-center mr-5 font-bold bg-gray-900" style="borderradius: 10px">
|
|
|
|
<span class="text-indigo-200">Indigo 200</span>
|
|
|
|
<i class="text-indigo-200 pi pi-check-circle mt-3 text-xl"></i>
|
|
|
|
</div>
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
2023-03-21 08:31:13 +00:00
|
|
|
</DocSectionText>
|
2023-02-28 08:29:30 +00:00
|
|
|
</template>
|