aboutsummaryrefslogtreecommitdiff
path: root/build/proper-ui-hierarchy/index.html
diff options
context:
space:
mode:
authorbt <bt@btxx.org>2024-06-08 13:22:19 -0400
committerbt <bt@btxx.org>2024-06-08 13:22:19 -0400
commitdcfb172704f3afb68a30425029ec834be2883274 (patch)
tree02ac480745db802d7af03f3213a0c568322170e3 /build/proper-ui-hierarchy/index.html
parente146f8a64c793c337999ce316b16ebe5fe6f2dab (diff)
More content porting, on-going markdown changes for lowdown support
Diffstat (limited to 'build/proper-ui-hierarchy/index.html')
-rw-r--r--build/proper-ui-hierarchy/index.html140
1 files changed, 90 insertions, 50 deletions
diff --git a/build/proper-ui-hierarchy/index.html b/build/proper-ui-hierarchy/index.html
index bee9bee..d3bc682 100644
--- a/build/proper-ui-hierarchy/index.html
+++ b/build/proper-ui-hierarchy/index.html
@@ -1,45 +1,67 @@
<!doctype html>
-<html lang="en" id="top">
+<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="data:,">
<title>Proper UI Hierarchy</title>
- <link href="https://bt.ht/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
- <style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{overflow:auto;}table{text-align:left;width:100%;}</style>
+ <link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
+ <link href="/rss.xml" type="application/rss+xml" rel="alternate" title="RSS feed for blog posts" />
+<style>*{box-sizing:border-box;}body{font-family:sans-serif;line-height:1.33;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{border:1px solid;overflow:auto;padding:5px;}table{text-align:left;width:100%;}.footnotes{font-size:90%;}</style>
</head>
<nav>
- <a href="#menu">Menu &darr;</a>
+ <a href="#menu">Menu &darr;</a>
</nav>
<main>
-<h1>Proper UI Hierarchy</h1>
+<h1 id="proper-ui-hierarchy">Proper UI Hierarchy</h1>
+
<p>2019-02-05</p>
-<p>I often feel like an old man when I complain about flat design and how designers these days have lost (or willfully forgotten) the skill to create accessible UIs with proper visual hierarchy. A skill which at it's core seems so simple - yet is overlooked in almost every current <i>modern</i> interface.</p>
-<p>I'm unable to pinpoint the <i>exact</i> reason why designers swapped out depth, hierarchical layouts and accessibility for muted colors, abstract imagery, illegible typography, and unimaginative flat designs.</p>
-<p>But then again, maybe I'm just a design-dinosaur of a time long forgotten. Maybe I need to adapt and move with the times. Or maybe the current design trends are just lazy.</p>
-<p>I'm pretty sure it's lazy design trends.</p>
-<h2>Stop complaining and do something</h2>
-<p>As an example, I'm going to breakdown the process of improving the overall design on a set of "flat" button elements.</p>
-<p>Hopefully this demo article inspires even one designer to rethink their method when approaching UI design and push away from what is currently accepted as the "correct way to design UI".</p>
+
+<p>I often feel like an old man when I complain about flat design and how designers these days have lost (or willfully forgotten) the skill to create accessible UIs with proper visual hierarchy. A skill which at it&#8217;s core seems so simple - yet is overlooked in almost every current modern interface.</p>
+
+<p>I&#8217;m unable to pinpoint the exact reason why designers swapped out depth, hierarchical layouts and accessibility for muted colors, abstract imagery, illegible typography, and unimaginative flat designs.</p>
+
+<p>But then again, maybe I&#8217;m just a design-dinosaur of a time long forgotten. Maybe I need to adapt and move with the times. Or maybe the current design trends are just lazy.</p>
+
+<p>I&#8217;m pretty sure it&#8217;s lazy design trends.</p>
+
+<h2 id="stop-complaining-and-do-something">Stop complaining and do something</h2>
+
+<p>As an example, I&#8217;m going to breakdown the process of improving the overall design on a set of &#8220;flat&#8221; button elements.</p>
+
+<p>Hopefully this demo article inspires even one designer to rethink their method when approaching UI design and push away from what is currently accepted as the &#8220;correct way to design UI&#8221;.</p>
+
<p>And one final note before we deep dive into this demo: </p>
-<p>The statement that flat design is inherently worse than it's predecessor <strong>is not subjective</strong>. By stripping away the visual cues that help users distinguish between interface elements you are purposely making a worse experience for them. Designers need to stop designing for other designers.</p>
-<h2>What we will be designing</h2>
+
+<p>The statement that flat design is inherently worse than it&#8217;s predecessor <strong>is not subjective</strong>. By stripping away the visual cues that help users distinguish between interface elements you are purposely making a worse experience for them. Designers need to stop designing for other designers.</p>
+
+<h2 id="what-we-will-be-designing">What we will be designing</h2>
+
<p>In this demo we will be improving the default flat design inspired button layout of the following:</p>
+
<p><img src="/public/images/proper-ui.png" alt="Proper UI buttons, blue and green" /></p>
+
<p><a href="https://codepen.io/bradleytaunt/pen/yLXJmdy">Live CodePen Example</a></p>
-<hr />
-<h2>Designing the skeleton</h2>
-<p>This will be our basic HTML structure, along with it's default styling (based on today's UI standards):</p>
-<h3>The HTML</h3>
-<pre><code>&lt;div class=&quot;buttons-container&quot;&gt;
- &lt;button&gt;Sign Up&lt;/button&gt;
- &lt;button&gt;Log in&lt;/button&gt;
-&lt;/div&gt;
+
+<hr/>
+
+<h2 id="designing-the-skeleton">Designing the skeleton</h2>
+
+<p>This will be our basic HTML structure, along with it&#8217;s default styling (based on today&#8217;s UI standards):</p>
+
+<h3 id="the-html">The HTML</h3>
+
+<pre><code>&#60;div class="buttons-container"&#62;
+ &#60;button&#62;Sign Up&#60;&#47;button&#62;
+ &#60;button&#62;Log in&#60;&#47;button&#62;
+&#60;&#47;div&#62;
</code></pre>
-<h3>The CSS</h3>
-<pre><code>/* Parent container for the buttons */
+
+<h3 id="the-css">The CSS</h3>
+
+<pre><code>&#47;* Parent container for the buttons *&#47;
.buttons-container {
background: #E0E9EE;
border-radius: 5px;
@@ -50,7 +72,7 @@
width: 100%;
}
-/*Shared button styles */
+&#47;*Shared button styles *&#47;
button {
appearance: none;
border: 0;
@@ -64,66 +86,81 @@ button {
width: 50%;
}
-/* Sign up button */
+&#47;* Sign up button *&#47;
button:first-child {
background: #2FBC3D;
margin-right: 10px;
}
-/* Log in button */
+&#47;* Log in button *&#47;
button:last-child {
background: #459BCF;
}
</code></pre>
-<h2>Adding simple improvements</h2>
-<p>Gradients (not solely on their own mind you) within UI systems were initially used to help humans make connections with their analog counterparts. Something like toggles or switches matching those found in the real world, allowed users to mentally connect what that element's function did almost instantly. </p>
-<p>Be warned not to confuse this with skeuomorphic design - an element sharing similar qualities as it's analog sibling does not instantly make it so.</p>
+
+<h2 id="adding-simple-improvements">Adding simple improvements</h2>
+
+<p>Gradients (not solely on their own mind you) within UI systems were initially used to help humans make connections with their analog counterparts. Something like toggles or switches matching those found in the real world, allowed users to mentally connect what that element&#8217;s function did almost instantly. </p>
+
+<p>Be warned not to confuse this with skeuomorphic design - an element sharing similar qualities as it&#8217;s analog sibling does not instantly make it so.</p>
+
<p>If you ever run into a designer who rolls their eyes or scoffs at you for proposing the use of something such as gradients (in a tactful way, of course) it is safe to assume they have been brainwashed by the modern design hive-mind.</p>
-<p>To disregard the use of gradients simply because the belief is "gradients are bad" is idiotic. Worse still is to do so based on the belief that "gradients aren't <em>in</em> right now". As a designer, your job is to design a beautiful and <em>usable</em> product - not win high-fives among your peers. /end rant.</p>
-<h3>Adding subtle gradients</h3>
-<p>When gradients are implemented properly, most users won't even be aware of their presence. The difference in color (specifically on buttons in this example) helps give the illusion of a light source in the interface, which designers can use to their advantage (ie. pull more attention to elements by "lifting" them forward on the page).</p>
-<h3>The subtly improved CSS</h3>
-<pre><code>/* Sign up button */
+
+<p>To disregard the use of gradients simply because the belief is &#8220;gradients are bad&#8221; is idiotic. Worse still is to do so based on the belief that &#8220;gradients aren&#8217;t <em>in</em> right now&#8221;. As a designer, your job is to design a beautiful and <em>usable</em> product - not win high-fives among your peers. &#47;end rant.</p>
+
+<h3 id="adding-subtle-gradients">Adding subtle gradients</h3>
+
+<p>When gradients are implemented properly, most users won&#8217;t even be aware of their presence. The difference in color (specifically on buttons in this example) helps give the illusion of a light source in the interface, which designers can use to their advantage (ie. pull more attention to elements by &#8220;lifting&#8221; them forward on the page).</p>
+
+<h3 id="the-subtly-improved-css">The subtly improved CSS</h3>
+
+<pre><code>&#47;* Sign up button *&#47;
button:first-child {
background-image: linear-gradient(-180deg, #1EB52A 0%, #0D941C 100%);
}
-/* Log in button */
+&#47;* Log in button *&#47;
button:last-child {
background-image: linear-gradient(-180deg, #489FD2 0%, #0A6DAC 100%);
}
</code></pre>
-<h2>More depth &amp; light</h2>
+
+<h2 id="more-depth-light">More depth &#38; light</h2>
+
<p>With our subtle gradients we are closer to creating a solid contrast between interactive elements, but we can improve this even further. By adding some more depth with a harder light source and more pronounced outlines, we allow the button elements to stand out on their own more strongly.</p>
+
<p>This is fairly easy to accomplish with CSS using the very basic <code>box-shadow</code>, <code>text-shadow</code> and <code>border</code> properties:</p>
-<pre><code>/* Parent container */
+
+<pre><code>&#47;* Parent container *&#47;
.buttons-container {
background-image: linear-gradient(0deg, #BBC6CD 3%, #E2EBF0 100%);
border: 1px solid #8D8D8D;
box-shadow: 0 2px 4px 0 rgba(42,42,42,0.40), inset 0 1px 3px 0 rgba(255,255,255,0.50);
}
-</code></pre>
-<pre><code>/* Shared button styling with text-shadows */
+
+&#47;* Shared button styling with text-shadows *&#47;
.buttons-container button {
text-shadow: 0 2px 4px rgba(0,0,0,0.30);
}
-</code></pre>
-<pre><code>/* Sign up button */
+
+&#47;* Sign up button *&#47;
.buttons-container button:first-child {
background-image: linear-gradient(-180deg, #1EB52A 0%, #0D941C 100%);
border: 1px solid #0C6B16;
box-shadow: 0 1px 5px 0 rgba(9,116,21,0.50), inset 0 -1px 6px 0 rgba(0,0,0,0.20), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
}
-</code></pre>
-<pre><code>/* Log in button */
+
+&#47;* Log in button *&#47;
.buttons-container button:last-child {
background-image: linear-gradient(-180deg, #489FD2 0%, #0A6DAC 100%);
border: 1px solid #0A486E;
box-shadow: 0 1px 5px 0 rgba(9,85,133,0.50), inset 0 -1px 6px 0 rgba(0,0,0,0.20), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
}
</code></pre>
-<p>For easy reference, here is the CSS styling in it's entirety:</p>
-<pre><code>/* Parent container */
+
+<p>For easy reference, here is the CSS styling in it&#8217;s entirety:</p>
+
+<pre><code>&#47;* Parent container *&#47;
.buttons-container {
background-image: linear-gradient(0deg, #BBC6CD 3%, #E2EBF0 100%);
border-radius: 5px;
@@ -136,7 +173,7 @@ button:last-child {
width: 100%;
}
-/* Shared button styling */
+&#47;* Shared button styling *&#47;
button {
appearance: none;
border: 0;
@@ -151,7 +188,7 @@ button {
width: 50%;
}
-/* Sign up button */
+&#47;* Sign up button *&#47;
button:first-child {
background-image: linear-gradient(-180deg, #1EB52A 0%, #0D941C 100%);
border: 1px solid #0C6B16;
@@ -159,15 +196,18 @@ button:first-child {
margin-right: 10px;
}
-/* Log in button */
+&#47;* Log in button *&#47;
button:last-child {
background-image: linear-gradient(-180deg, #489FD2 0%, #0A6DAC 100%);
border: 1px solid #0A486E;
box-shadow: 0 1px 5px 0 rgba(9,85,133,0.50), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
}
</code></pre>
-<h2>Going even further with this UI</h2>
+
+<h2 id="going-even-further-with-this-ui">Going even further with this UI</h2>
+
<p>This demo article only showcases how to improve on a basic button UI structure with a focus on proper hierarchy between elements.</p>
+
<p>Once completely developed, these element should support all interactive states (<code>hover</code>, <code>active</code>, <code>disabled</code>) and animations to make for a more engaging experience.</p>
<footer role="contentinfo">
<h2>Menu Navigation</h2>