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