40 lines
2.2 KiB
Vue
40 lines
2.2 KiB
Vue
<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>
|
|
<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>
|
|
|
|
<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>
|
|
</div>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
</div>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
</div>
|
|
</DocSectionText>
|
|
</template>
|