|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>Pierre Theme - Display P3 Color Comparison</title> |
| 7 | + <style> |
| 8 | + body { |
| 9 | + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; |
| 10 | + max-width: 1200px; |
| 11 | + margin: 40px auto; |
| 12 | + padding: 20px; |
| 13 | + background: #141415; |
| 14 | + color: #fbfbfb; |
| 15 | + } |
| 16 | + h1 { text-align: center; margin-bottom: 40px; } |
| 17 | + .comparison-grid { |
| 18 | + display: grid; |
| 19 | + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); |
| 20 | + gap: 30px; |
| 21 | + margin: 40px 0; |
| 22 | + } |
| 23 | + .color-card { |
| 24 | + background: #1f1f21; |
| 25 | + border-radius: 12px; |
| 26 | + padding: 20px; |
| 27 | + border: 1px solid #39393c; |
| 28 | + } |
| 29 | + .color-card h3 { |
| 30 | + margin-top: 0; |
| 31 | + color: #fbfbfb; |
| 32 | + } |
| 33 | + .color-swatch { |
| 34 | + height: 100px; |
| 35 | + border-radius: 8px; |
| 36 | + margin: 10px 0; |
| 37 | + display: flex; |
| 38 | + align-items: center; |
| 39 | + justify-content: center; |
| 40 | + font-weight: 600; |
| 41 | + font-family: 'Monaco', 'Courier New', monospace; |
| 42 | + font-size: 12px; |
| 43 | + color: white; |
| 44 | + text-shadow: 0 0 2px rgba(0,0,0,0.5); |
| 45 | + } |
| 46 | + |
| 47 | + .label { |
| 48 | + font-size: 12px; |
| 49 | + color: #adadb1; |
| 50 | + margin-bottom: 5px; |
| 51 | + margin-top: 15px; |
| 52 | + } |
| 53 | + .hex-value { |
| 54 | + font-family: 'Monaco', 'Courier New', monospace; |
| 55 | + font-size: 11px; |
| 56 | + color: #c6c6c8; |
| 57 | + margin-top: 5px; |
| 58 | + word-break: break-all; |
| 59 | + } |
| 60 | + .info { |
| 61 | + background: #2e2e30; |
| 62 | + padding: 20px; |
| 63 | + border-radius: 8px; |
| 64 | + margin: 20px 0; |
| 65 | + border-left: 4px solid color(display-p3 0.340 0.734 0.360); |
| 66 | + } |
| 67 | + .info h3 { |
| 68 | + margin-top: 0; |
| 69 | + } |
| 70 | + .p3-notice { |
| 71 | + text-align: center; |
| 72 | + padding: 15px; |
| 73 | + background: #39393c; |
| 74 | + border-radius: 8px; |
| 75 | + margin: 20px 0; |
| 76 | + } |
| 77 | + .supports { color: color(display-p3 0.340 0.734 0.360); } |
| 78 | + .no-support { color: #ff6762; } |
| 79 | + |
| 80 | + code { |
| 81 | + background: #2e2e30; |
| 82 | + padding: 2px 6px; |
| 83 | + border-radius: 4px; |
| 84 | + font-size: 13px; |
| 85 | + } |
| 86 | + </style> |
| 87 | +</head> |
| 88 | +<body> |
| 89 | + <h1>Pierre Theme: Display P3 Color Comparison</h1> |
| 90 | + |
| 91 | + <div class="p3-notice" id="p3-status"> |
| 92 | + Checking Display P3 support... |
| 93 | + </div> |
| 94 | + |
| 95 | + <div class="info"> |
| 96 | + <h3>About Display P3 Enhanced Colors</h3> |
| 97 | + <p>Display P3 is a wider color gamut that can display ~25% more colors than standard sRGB. The Pierre Vibrant themes use CSS <code>color(display-p3 r g b)</code> format with <strong>enhanced saturation</strong> to fully utilize the P3 color space.</p> |
| 98 | + <p><strong>Enhancement:</strong> Colors are boosted by 15-30% saturation (depending on original saturation) and 5% luminance for highly saturated colors. This pushes colors into the wider P3 gamut that isn't available in sRGB.</p> |
| 99 | + <p><strong>Important:</strong> To see the difference, you need a P3-capable display (most Macs from 2015+, iPhones, iPads).</p> |
| 100 | + </div> |
| 101 | + |
| 102 | + <div class="comparison-grid"> |
| 103 | + <div class="color-card"> |
| 104 | + <h3>Blue</h3> |
| 105 | + <div class="label">Standard (sRGB)</div> |
| 106 | + <div class="color-swatch srgb" style="background-color: #008cff;"> |
| 107 | + #008cff |
| 108 | + </div> |
| 109 | + <div class="label">Vibrant (Display P3 Enhanced)</div> |
| 110 | + <div class="color-swatch p3" style="background-color: color(display-p3 0.267653 0.570512 1.000000);"> |
| 111 | + P3 |
| 112 | + </div> |
| 113 | + <div class="hex-value">color(display-p3 0.267653 0.570512 1.000000)</div> |
| 114 | + </div> |
| 115 | + |
| 116 | + <div class="color-card"> |
| 117 | + <h3>Green</h3> |
| 118 | + <div class="label">Standard (sRGB)</div> |
| 119 | + <div class="color-swatch srgb" style="background-color: #0dbe4e;"> |
| 120 | + #0dbe4e |
| 121 | + </div> |
| 122 | + <div class="label">Vibrant (Display P3 Enhanced)</div> |
| 123 | + <div class="color-swatch p3" style="background-color: color(display-p3 0.298067 0.776115 0.322484);"> |
| 124 | + P3 |
| 125 | + </div> |
| 126 | + <div class="hex-value">color(display-p3 0.298067 0.776115 0.322484)</div> |
| 127 | + </div> |
| 128 | + |
| 129 | + <div class="color-card"> |
| 130 | + <h3>Red</h3> |
| 131 | + <div class="label">Standard (sRGB)</div> |
| 132 | + <div class="color-swatch srgb" style="background-color: #ff2e3f;"> |
| 133 | + #ff2e3f |
| 134 | + </div> |
| 135 | + <div class="label">Vibrant (Display P3 Enhanced)</div> |
| 136 | + <div class="color-swatch p3" style="background-color: color(display-p3 1.000000 0.250216 0.262337);"> |
| 137 | + P3 |
| 138 | + </div> |
| 139 | + <div class="hex-value">color(display-p3 1.000000 0.250216 0.262337)</div> |
| 140 | + </div> |
| 141 | + |
| 142 | + <div class="color-card"> |
| 143 | + <h3>Purple</h3> |
| 144 | + <div class="label">Standard (sRGB)</div> |
| 145 | + <div class="color-swatch srgb" style="background-color: #c635e4;"> |
| 146 | + #c635e4 |
| 147 | + </div> |
| 148 | + <div class="label">Vibrant (Display P3 Enhanced)</div> |
| 149 | + <div class="color-swatch p3" style="background-color: color(display-p3 0.770871 0.230698 0.945253);"> |
| 150 | + P3 |
| 151 | + </div> |
| 152 | + <div class="hex-value">color(display-p3 0.770871 0.230698 0.945253)</div> |
| 153 | + </div> |
| 154 | + |
| 155 | + <div class="color-card"> |
| 156 | + <h3>Pink</h3> |
| 157 | + <div class="label">Standard (sRGB)</div> |
| 158 | + <div class="color-swatch srgb" style="background-color: #fc2b73;"> |
| 159 | + #fc2b73 |
| 160 | + </div> |
| 161 | + <div class="label">Vibrant (Display P3 Enhanced)</div> |
| 162 | + <div class="color-swatch p3" style="background-color: color(display-p3 0.995522 0.233444 0.460772);"> |
| 163 | + P3 |
| 164 | + </div> |
| 165 | + <div class="hex-value">color(display-p3 0.995522 0.233444 0.460772)</div> |
| 166 | + </div> |
| 167 | + |
| 168 | + <div class="color-card"> |
| 169 | + <h3>Orange</h3> |
| 170 | + <div class="label">Standard (sRGB)</div> |
| 171 | + <div class="color-swatch srgb" style="background-color: #fe8c2c;"> |
| 172 | + #fe8c2c |
| 173 | + </div> |
| 174 | + <div class="label">Vibrant (Display P3 Enhanced)</div> |
| 175 | + <div class="color-swatch p3" style="background-color: color(display-p3 1.000000 0.598672 0.265916);"> |
| 176 | + P3 |
| 177 | + </div> |
| 178 | + <div class="hex-value">color(display-p3 1.000000 0.598672 0.265916)</div> |
| 179 | + </div> |
| 180 | + |
| 181 | + <div class="color-card"> |
| 182 | + <h3>Cyan</h3> |
| 183 | + <div class="label">Standard (sRGB)</div> |
| 184 | + <div class="color-swatch srgb" style="background-color: #08c0ef;"> |
| 185 | + #08c0ef |
| 186 | + </div> |
| 187 | + <div class="label">Vibrant (Display P3 Enhanced)</div> |
| 188 | + <div class="color-swatch p3" style="background-color: color(display-p3 0.327292 0.790977 0.995660);"> |
| 189 | + P3 |
| 190 | + </div> |
| 191 | + <div class="hex-value">color(display-p3 0.327292 0.790977 0.995660)</div> |
| 192 | + </div> |
| 193 | + |
| 194 | + <div class="color-card"> |
| 195 | + <h3>Teal</h3> |
| 196 | + <div class="label">Standard (sRGB)</div> |
| 197 | + <div class="color-swatch srgb" style="background-color: #00c5d2;"> |
| 198 | + #00c5d2 |
| 199 | + </div> |
| 200 | + <div class="label">Vibrant (Display P3 Enhanced)</div> |
| 201 | + <div class="color-swatch p3" style="background-color: color(display-p3 0.342284 0.816699 0.877157);"> |
| 202 | + P3 |
| 203 | + </div> |
| 204 | + <div class="hex-value">color(display-p3 0.342284 0.816699 0.877157)</div> |
| 205 | + </div> |
| 206 | + </div> |
| 207 | + |
| 208 | + <div class="info"> |
| 209 | + <h3>Browser Support</h3> |
| 210 | + <p>CSS <code>color(display-p3 ...)</code> is supported in:</p> |
| 211 | + <ul> |
| 212 | + <li>Safari 10+ (macOS and iOS)</li> |
| 213 | + <li>Chrome 111+</li> |
| 214 | + <li>Firefox 113+</li> |
| 215 | + <li>Edge 111+</li> |
| 216 | + </ul> |
| 217 | + <p>Browsers without P3 support will automatically fall back to the closest sRGB color.</p> |
| 218 | + </div> |
| 219 | + |
| 220 | + <script> |
| 221 | + // Check for P3 support |
| 222 | + const supportsP3 = window.matchMedia('(color-gamut: p3)').matches; |
| 223 | + const statusEl = document.getElementById('p3-status'); |
| 224 | + |
| 225 | + if (supportsP3) { |
| 226 | + statusEl.innerHTML = '<span class="supports">✓</span> Your display supports Display P3! You should see more vibrant colors in the P3 swatches above. Compare the top and bottom colors in each card.'; |
| 227 | + statusEl.style.borderLeft = '4px solid color(display-p3 0.340 0.734 0.360)'; |
| 228 | + } else { |
| 229 | + statusEl.innerHTML = '<span class="no-support">✗</span> Your display does not support Display P3, or your browser doesn\'t support the color(display-p3) syntax. The P3 colors will appear similar to the standard sRGB colors.'; |
| 230 | + statusEl.style.borderLeft = '4px solid #ff6762'; |
| 231 | + } |
| 232 | + </script> |
| 233 | +</body> |
| 234 | +</html> |
0 commit comments