aboutsummaryrefslogtreecommitdiff
path: root/docs/posts/color_conundrum.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/posts/color_conundrum.html')
-rw-r--r--docs/posts/color_conundrum.html62
1 files changed, 62 insertions, 0 deletions
diff --git a/docs/posts/color_conundrum.html b/docs/posts/color_conundrum.html
new file mode 100644
index 0000000..979dc9c
--- /dev/null
+++ b/docs/posts/color_conundrum.html
@@ -0,0 +1,62 @@
1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 <link rel="stylesheet" href="/style.css">
5 <meta charset="UTF-8">
6 <meta name="viewport" content="initial-scale=1">
7 <meta content="#ffffff" name="theme-color">
8 <meta name="HandheldFriendly" content="true">
9 <meta property="og:title" content="nerdypepper">
10 <meta property="og:type" content="website">
11 <meta property="og:description" content="a static site {for, by, about} me ">
12 <meta property="og:url" content="https://nerdypepper.tech">
13 <body>
14 <div class="post posts">
15 <div class="date">31/12 2019</div>
16 <span style="font-size: 2rem; font-weight: 600">
17 Color Conundrum
18 </span>
19 <div class="post-text">
20 <p>This piece aims to highlight (pun intended) some of the
21reasons behind my <a href="https://files.nerdypepper.tech/bF.png">color
22free</a> editor setup.</p>
23
24<p>Imagine highlighting an entire book because <em>all</em> of it is
25important. That is exactly what (most) syntax highlighting
26does. It is difficult for the human eye to filter out noise
27in rainbow barf. Use color to draw attention, not diverge
28it.</p>
29
30<p>At the same time, a book devoid of color is <em>boring!</em> What
31is the takeaway from this 10 line paragraph? What are the
32technical terms used?</p>
33
34<p>Prose and code are certainly different, but the fickle
35minded human eye is the same. The eye constantly looks for a
36frame of reference, a focal point. It grows tired when it
37can&#8217;t find one.</p>
38
39<p>The following comparison does a better job of explaining
40(none, ample and over-the-top highlighting, from left to
41right):</p>
42
43<p><a href="https://files.nerdypepper.tech/lt.png"><img src="https://files.nerdypepper.tech/lt.png" alt="hi.png" /></a></p>
44
45<p>Without highlighting (far left), it is hard to differentiate
46between comments and code! The florid color scheme (far
47right) is no good either, it contains too many attention
48grabbers. The center sample is a healthy balance of both.
49Function calls and constants stand out, and repetitive
50keywords and other noise (<code>let</code>, <code>as</code>) are mildly dimmed
51out. Comments and non-code text (sign column, status text)
52are dimmed further.</p>
53
54<p>I&#8217;ll stop myself before I rant about color contrast and
55combinations.</p>
56
57 </div>
58 <a href="/index.html" class="post-end-link">‹ Back</a>
59 <div class="separator"></div>
60 </div>
61 </body>
62</html>