<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Colt Borg</title>
    <description>The latest articles on Forem by Colt Borg (@coltborg).</description>
    <link>https://forem.com/coltborg</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F29654%2Fff3a1ff1-4989-46f7-be97-143fc74883ee.jpeg</url>
      <title>Forem: Colt Borg</title>
      <link>https://forem.com/coltborg</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/coltborg"/>
    <language>en</language>
    <item>
      <title>UI Challenge 01</title>
      <dc:creator>Colt Borg</dc:creator>
      <pubDate>Mon, 16 Mar 2020 00:00:00 +0000</pubDate>
      <link>https://forem.com/coltborg/ui-challenge-01-np3</link>
      <guid>https://forem.com/coltborg/ui-challenge-01-np3</guid>
      <description>&lt;h2&gt;
  
  
  What to do
&lt;/h2&gt;

&lt;p&gt;Let's do some some CSS layout practice!&lt;/p&gt;

&lt;p&gt;The above image is a simple website with text and an image. Using whatever CSS technique you'd like, recreate it.&lt;/p&gt;

&lt;p&gt;The goal is not to be perfect, but to practice.&lt;/p&gt;

&lt;p&gt;The reference image can be &lt;a href="https://dev-to-uploads.s3.amazonaws.com/i/8b5cjjm765m7mtpqkv44.png"&gt;seen/downloaded here&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Colors and assets
&lt;/h2&gt;

&lt;p&gt;I'll give you the colors, fonts, and image involved so you don't have to try and look them up yourself.&lt;/p&gt;

&lt;h3&gt;
  
  
  Colors
&lt;/h3&gt;

&lt;p&gt;Here are the colors set as &lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/--*"&gt;CSS custom properties&lt;/a&gt;. You don't have to use them as custom properties.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nd"&gt;:root&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="py"&gt;--green&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#1b390f&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="py"&gt;--red&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#de5908&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="py"&gt;--white&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#e8d9d6&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  Fonts
&lt;/h3&gt;

&lt;p&gt;For all text except for the heading I'm using the system sans-serif font. You can use any stack you'd like.&lt;/p&gt;

&lt;p&gt;The heading text is using a Google font called &lt;a href="https://fonts.google.com/specimen/Catamaran?query=Catamaran"&gt;Catamaran&lt;/a&gt; and the weight of &lt;code&gt;700&lt;/code&gt;. You can import it into your code using this snippet:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"https://fonts.googleapis.com/css2?family=Catamaran:wght@700&amp;amp;display=swap"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  Image
&lt;/h3&gt;

&lt;p&gt;The image is hosted over at Unsplash, created by &lt;a href="https://unsplash.com/@shutters_guild"&gt;Travis Yewell&lt;/a&gt;. You can use &lt;a href="https://unsplash.com/photos/F-B7kWlkxDQ"&gt;this url&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Solution
&lt;/h2&gt;

&lt;p&gt;I'll publish a solution soon. Until then, try to re-create this on your own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Credit
&lt;/h2&gt;

&lt;p&gt;Inspiration for this challenge comes from a &lt;a href="https://dribbble.com/shots/10659462-Making-Noise"&gt;dribbble post&lt;/a&gt; from &lt;a href="https://dribbble.com/DavideBaratta"&gt;Davide Baratta&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>challenge</category>
    </item>
    <item>
      <title>Visual Studio Code Setup</title>
      <dc:creator>Colt Borg</dc:creator>
      <pubDate>Mon, 02 Mar 2020 00:00:00 +0000</pubDate>
      <link>https://forem.com/coltborg/visual-studio-code-setup-56em</link>
      <guid>https://forem.com/coltborg/visual-studio-code-setup-56em</guid>
      <description>&lt;p&gt;I've been using &lt;a href="https://code.visualstudio.com/"&gt;Visual studio code (VSCode)&lt;/a&gt; since 2017. It has been one of my all time favorite text editors. This year I decided to look through my set up and document what I use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Extensions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Bracket pair colorizer 2
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RVVL_Gcs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/bracket-pair-colorizer-2.344a8c4.97fec046e8bb9ef62cb2daee46b72045.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RVVL_Gcs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/bracket-pair-colorizer-2.344a8c4.97fec046e8bb9ef62cb2daee46b72045.png" alt="Bracket pair colorizing nested methods"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This &lt;a href="https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2"&gt;extension&lt;/a&gt; is great for focusing on what block of code your looking in. I have some of the more verbose settings enabled so that I can see a lot of colors as I navigate through code. This is especially helpful when I have several nested &lt;code&gt;functions&lt;/code&gt; or &lt;code&gt;objects&lt;/code&gt; within each other.&lt;/p&gt;

&lt;h3&gt;
  
  
  Change-case
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3gPDePti--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/change-case.12f4711.5809121e0ac9af8060163f1c8002417f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3gPDePti--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/change-case.12f4711.5809121e0ac9af8060163f1c8002417f.png" alt="Change-case extension in the visual studio code store"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I use this &lt;a href="https://marketplace.visualstudio.com/items?itemName=wmaurer.change-case"&gt;extension&lt;/a&gt; via the command palette a lot. Many times I need to transform a pascal case vue.js component into kebab case or vice versa.&lt;/p&gt;

&lt;h3&gt;
  
  
  Code spell checker
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xXmeJ8WN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/code-spell-checker.c5bd0dc.827928162a87b7658ed169e98714f5e0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xXmeJ8WN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/code-spell-checker.c5bd0dc.827928162a87b7658ed169e98714f5e0.png" alt="Code spell checker in the visual studio code store"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the course of typing, I make a lot of spelling mistakes. This &lt;a href="https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker"&gt;extension&lt;/a&gt; is a life saver. Plus it helps find little bugs due to typos.&lt;/p&gt;

&lt;h3&gt;
  
  
  ESLint
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--K5QS0DQr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/eslint.e7339e2.4f448f6b025b16254217b93213f516c3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--K5QS0DQr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/eslint.e7339e2.4f448f6b025b16254217b93213f516c3.png" alt="ESLint extension in the visual studio code store"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint"&gt;ESLint&lt;/a&gt; is an essential extension for any JavaScript-based project. Getting all the settings to work are a pain in the ass sometimes, but I couldn't live without it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Headwind
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UxWgr9H9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/headwind.4335a62.907eed30dffae241778b95d913387ced.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UxWgr9H9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/headwind.4335a62.907eed30dffae241778b95d913387ced.png" alt="Headwind in the visual studio code store"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This &lt;a href="https://marketplace.visualstudio.com/items?itemName=heybourn.headwind"&gt;extension&lt;/a&gt; helps me align my tailwind classes in the same order without having to thing about it. It doesn’t seem like much, but the consistency of the order without having to think about is awesome.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tailwind CSS intelliSence
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dYU0qz3m--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/tailwind-css-intellisense.ca5927f.fb0c48d2b54506613ecfbe6fff8eb4bd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dYU0qz3m--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/tailwind-css-intellisense.ca5927f.fb0c48d2b54506613ecfbe6fff8eb4bd.png" alt="Tailwind CSS intelliSence in the visual studio code store"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss"&gt;IntelliSence&lt;/a&gt; is a great feature of VSCode. Why not have it know about my Tailwind classes? Very useful for remembering the number differences for spacing and colors.&lt;/p&gt;

&lt;h3&gt;
  
  
  Toggle quotes
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tNXxWvdG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/toggle-quotes.794a8e9.46258473137c523ccd8484d72e82e0a2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tNXxWvdG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/toggle-quotes.794a8e9.46258473137c523ccd8484d72e82e0a2.png" alt="Toggle quotes in the visual studio code store"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This &lt;a href="https://marketplace.visualstudio.com/items?itemName=BriteSnow.vscode-toggle-quotes"&gt;extension&lt;/a&gt; seems like it would be native to VSCode along with all the other text transformation tools. I can easily switch between single quotes, double quotes, and back ticks. I even like the default keyboard shortcut &lt;code&gt;control + ‘&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Vetur
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gc0VrsfS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/vetur.b75e184.4fc5e75c882e321f7f264f447432a224.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gc0VrsfS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/vetur.b75e184.4fc5e75c882e321f7f264f447432a224.png" alt="Vetur is the perfect Vue integration extension"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=octref.vetur"&gt;Vetur&lt;/a&gt; gives you easy integration with all things Vue in VSCode. It's an essential extension for working with Vue projects. What are you waiting for, download this package right now!&lt;/p&gt;

&lt;h3&gt;
  
  
  Vscode-icons
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cu2ccsO0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/vscode-icons.f4f5b7a.cf9d89f3c05cbb89e9b3bee02e1defd3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cu2ccsO0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/vscode-icons.f4f5b7a.cf9d89f3c05cbb89e9b3bee02e1defd3.png" alt="Example of vscode-icons for vue, javascript, etc"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I've used the &lt;a href="https://marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons"&gt;vscode-icon&lt;/a&gt; set since I started using Visual Studio Code. I'm so used to them now, I don't want to switch.&lt;/p&gt;

&lt;h3&gt;
  
  
  Vue vscode snippets
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JmxjYA20--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/vue-vscode-snippets.eb9be63.4eb92b25ff19eb29ae4534637db9208f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JmxjYA20--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/vue-vscode-snippets.eb9be63.4eb92b25ff19eb29ae4534637db9208f.png" alt="Vue vscode snippets is the best collection of snippets for the Vue.js language"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://marketplace.visualstudio.com/items?itemName=sdras.vue-vscode-snippets"&gt;best snippet&lt;/a&gt; package for Vue.js. I sometimes forget the format of certain features because this package has so many good snippets.&lt;/p&gt;

&lt;h3&gt;
  
  
  Quick and simple text selection
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HILWG6f4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/quick-and-simple-text-selection.c5933eb.ba2a51d4023b03936d4dcfd2271684b7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HILWG6f4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/quick-and-simple-text-selection.c5933eb.ba2a51d4023b03936d4dcfd2271684b7.png" alt="Quick and simple text selection in the visual studio code store"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I've used this &lt;a href="https://marketplace.visualstudio.com/items?itemName=dbankier.vscode-quick-select"&gt;extension&lt;/a&gt; so much I thought it was baked into VSCode! It makes selecting text within characters—think &lt;code&gt;''&lt;/code&gt;, &lt;code&gt;""&lt;/code&gt;, &lt;code&gt;[]&lt;/code&gt;, and &lt;code&gt;()&lt;/code&gt;—a keyboard shortcut away. When I have to do a lot of irregular find and replace tasks, this extension haves my life.&lt;/p&gt;

&lt;h3&gt;
  
  
  Text Marker
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZmQDKv9b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/text-marker.b22da16.36d974a0f8fbc269ec41e713d08c5ba1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZmQDKv9b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/text-marker.b22da16.36d974a0f8fbc269ec41e713d08c5ba1.png" alt="Text marker extension in the visual studio code store"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sometimes I need to highlight a piece of code to copy, refactor, delete, etc. This &lt;a href="https://marketplace.visualstudio.com/items?itemName=ryu1kn.text-marker"&gt;extension&lt;/a&gt; does the trick! I try to use it sparingly and clear all highlights when I'm done.&lt;/p&gt;

&lt;h2&gt;
  
  
  Font
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XMinz4QO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/font-victor-mono.2665e34.f8e7fbc122c14621090305546894423d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XMinz4QO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/font-victor-mono.2665e34.f8e7fbc122c14621090305546894423d.png" alt="Victor mono landing page"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://rubjo.github.io/victor-mono/"&gt;Victor mono&lt;/a&gt; was my most used font in 2019. Along with the ligatures and the cursive italic variant, the large x-height makes it easy for me to read.&lt;/p&gt;

&lt;p&gt;If it works well for you, consider donating to the creator.&lt;/p&gt;

&lt;h3&gt;
  
  
  Italic cursive face not working in VSCode
&lt;/h3&gt;

&lt;p&gt;(Mar 12, 2020 Update)&lt;/p&gt;

&lt;p&gt;There is a bug with &lt;a href="https://github.com/microsoft/vscode/issues/82122"&gt;VSCode font rendering for macOS&lt;/a&gt;. If this is happening for you, there is a simple work around. Open up the Font Book app, find the Victor Mono font and disable or delete all "oblique" faces. The "oblique" faces were getting applied instead of the "italic" faces.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--O8kLeQvF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/1cgbm0m1x78or2uz5l3j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--O8kLeQvF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/1cgbm0m1x78or2uz5l3j.png" alt="Disable oblique faces inside of font book for macOS"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Themes
&lt;/h2&gt;

&lt;p&gt;I like color themes. I like having a lot of color themes to choose from. I like light themes for when the sun is out and there is a glare from the window. I like dark themes for the rest of the time.&lt;/p&gt;

&lt;p&gt;I tried to stick with one theme for a little while, but I can never make one last. So I keep a handful around and change whenever I feel like it—the &lt;code&gt;cmd + k cmd + t&lt;/code&gt; shortcut is handy for quick switching.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cobalt2
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--w4JQcnbU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/theme-cobalt2.7eb7c0c.d911b494ef0528fb3451b2176ce78e78.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--w4JQcnbU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/theme-cobalt2.7eb7c0c.d911b494ef0528fb3451b2176ce78e78.png" alt="A Vue.js file with the cobalt2 theme active"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A classic blue and yellow &lt;a href="https://marketplace.visualstudio.com/items?itemName=wesbos.theme-cobalt2"&gt;theme&lt;/a&gt; from &lt;a href="https://wesbos.com/"&gt;Wes Bos&lt;/a&gt;. I tend to not use it, as I think it's too bright for me. But it has a great highlight search color when doing a "Find in files".&lt;/p&gt;

&lt;h3&gt;
  
  
  Dracula
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xkisSeVS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/theme-dracula.7eb7c0c.72d803752d6615e267ab3a585abbce3f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xkisSeVS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/theme-dracula.7eb7c0c.72d803752d6615e267ab3a585abbce3f.png" alt="A Vue.js file with the Dracula theme active"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Great dark &lt;a href="https://marketplace.visualstudio.com/items?itemName=dracula-theme.theme-dracula"&gt;theme&lt;/a&gt; with purples and pinks. This theme puts a solid vertical pink line between editors when you're in split mode, which I really like. So when I am working with two or three splits for long periods of time, I switch to this theme.&lt;/p&gt;

&lt;h3&gt;
  
  
  Monokai pro
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sgC-AfKO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/theme-monokai-pro.7eb7c0c.a68c087fc218901535a7ccca263ca2d0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sgC-AfKO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/theme-monokai-pro.7eb7c0c.a68c087fc218901535a7ccca263ca2d0.png" alt="A Vue.js file with the monokai pro theme active"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This &lt;a href="https://marketplace.visualstudio.com/items?itemName=monokai.theme-monokai-pro-vscode"&gt;theme&lt;/a&gt; costs money, but there is a free trial. I'd say it is well worth it since it comes with an icon theme—which I don't use. This is my "home base" theme. I might not use it all the time, but I always come back to it eventually.&lt;/p&gt;

&lt;h3&gt;
  
  
  Light owl
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--MSGZbMU---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/theme-light-owl.7eb7c0c.6a94d973965e55381491476350b1481f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--MSGZbMU---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/theme-light-owl.7eb7c0c.6a94d973965e55381491476350b1481f.png" alt="A Vue.js file with the light owl theme active"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My favorite light theme. Just enough color to be nice, but everything is still readable. It comes with &lt;a href="https://marketplace.visualstudio.com/items?itemName=sdras.night-owl"&gt;Night Owl&lt;/a&gt;, so a two for one situation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Night owl
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fjNXILQ2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/theme-night-owl.7eb7c0c.145cf251e8caf31aadf72dfda1f70b5c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fjNXILQ2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/theme-night-owl.7eb7c0c.145cf251e8caf31aadf72dfda1f70b5c.png" alt="A Vue.js file with the night owl theme active"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A great &lt;a href="https://marketplace.visualstudio.com/items?itemName=sdras.night-owl"&gt;theme&lt;/a&gt; for late night coding. &lt;a href="https://sarahdrasnerdesign.com/"&gt;Sarah Drasner&lt;/a&gt; really put a lot of TLC into this theme.&lt;/p&gt;

&lt;h3&gt;
  
  
  Overnight Slumber Italics
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SIpFbuqh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/theme-overnight-slumber-italics.7eb7c0c.b2147b5c22f7bafbd7d40492f6e89635.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SIpFbuqh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/theme-overnight-slumber-italics.7eb7c0c.b2147b5c22f7bafbd7d40492f6e89635.png" alt="A Vue.js file with the overnight slumber italics theme active"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I haven't used this theme very much, but I like the peach and purple vibe of &lt;a href="https://marketplace.visualstudio.com/items?itemName=cev.overnight"&gt;this theme&lt;/a&gt;. I think I like the "slumber" alternative better than the base theme.&lt;/p&gt;

&lt;h3&gt;
  
  
  SynthWave '84
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tYPPGARo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/theme-synthwave.7eb7c0c.6033bf2238052ad1d5c33cf2b38b9586.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tYPPGARo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://www.coltborg.com/assets/static/theme-synthwave.7eb7c0c.6033bf2238052ad1d5c33cf2b38b9586.png" alt="A Vue.js file with the synth wave '84 theme active"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;SUPER POP COLORS! When I really need to tell the difference between variables and functions, I turn on &lt;a href="https://marketplace.visualstudio.com/items?itemName=RobbOwen.synthwave-vscode"&gt;this theme&lt;/a&gt;. I don't turn on the custom glow CSS because glow is very distracting to me.&lt;/p&gt;

&lt;h2&gt;
  
  
  Thanks for reading
&lt;/h2&gt;

&lt;p&gt;Next up I'll be writing up what keyboard shortcuts I use and customized to save myself time.&lt;/p&gt;

&lt;p&gt;What extensions/themes do you use for VSCode? I'd love to hear about your setup!&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>setup</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Bring focus to things app</title>
      <dc:creator>Colt Borg</dc:creator>
      <pubDate>Wed, 08 Jan 2020 00:00:00 +0000</pubDate>
      <link>https://forem.com/coltborg/bring-focus-to-things-app-1pfl</link>
      <guid>https://forem.com/coltborg/bring-focus-to-things-app-1pfl</guid>
      <description>&lt;p&gt;I love the app &lt;a href="https://culturedcode.com/things/"&gt;Things 3&lt;/a&gt;. I have been using it since it’s design update in (look up when Things 3 released).&lt;/p&gt;

&lt;p&gt;My only problem with it is that it does have the ability to defer tasks or hide tasks until I can start them.&lt;/p&gt;

&lt;p&gt;However, I’ve found a nice work around to only show the tasks that I’m working in right not.&lt;/p&gt;

&lt;p&gt;I created a new tag called &lt;code&gt;now&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cMt2djg0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/koi8gu0gp752n25klq3y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cMt2djg0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/koi8gu0gp752n25klq3y.png" alt="Adding a new tag in Things tag manager"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When I’m working on a task, I add the &lt;code&gt;now&lt;/code&gt; tag to the task.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--D8pbdDXr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/04317kkytq9a9te2dngn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--D8pbdDXr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/04317kkytq9a9te2dngn.png" alt="I add the now tag to my task"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then on the top of the page—usually the Today page for me—select the &lt;code&gt;now&lt;/code&gt; tag to only show tasks that have that tag.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--W3ckzwao--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/guz1gr45lr297rrbbwh0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--W3ckzwao--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/guz1gr45lr297rrbbwh0.png" alt="Filter tags to only now"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I usually only add the tag to one task at a time. And more I don’t see any other tasks while I’m working on what’s important. This might seem easy or not that big of a deal, but not seeing clutter ready improves my focus.&lt;/p&gt;

</description>
      <category>productivity</category>
    </item>
    <item>
      <title>Target elements without classes</title>
      <dc:creator>Colt Borg</dc:creator>
      <pubDate>Thu, 19 Dec 2019 00:00:00 +0000</pubDate>
      <link>https://forem.com/coltborg/target-elements-without-classes-1moe</link>
      <guid>https://forem.com/coltborg/target-elements-without-classes-1moe</guid>
      <description>&lt;h2&gt;
  
  
  Why did I need to target classless elements?
&lt;/h2&gt;

&lt;p&gt;In making this blog site, I want to style content that comes from markdown files. I found a nice trick to apply styles to the elements that don’t have any classes one them—aka coming from the markdown content.&lt;/p&gt;

&lt;p&gt;I can do this by combining the &lt;code&gt;not()&lt;/code&gt; and &lt;code&gt;attribute&lt;/code&gt; selectors. For example, if I want to target any paragraph without a class, it would look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;p&lt;/span&gt;&lt;span class="nd"&gt;:not&lt;/span&gt;&lt;span class="o"&gt;([&lt;/span&gt;&lt;span class="nt"&gt;class&lt;/span&gt;&lt;span class="o"&gt;])&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1rem&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  Why :not()
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;:not()&lt;/code&gt; is a &lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/:not"&gt;negation pseudo-class&lt;/a&gt;. So whatever you put in it, it will look for things that are not that thing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Your best friend Attribute Selectors
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors"&gt;Attribute selectors&lt;/a&gt; are really powerful. They can check for a whole bunch of different things. But in this case, we can use them to detect if &lt;code&gt;class&lt;/code&gt; is placed on the element. In this case we don't care which or how many classes are used.&lt;/p&gt;

</description>
      <category>css</category>
    </item>
    <item>
      <title>Make node list into an array</title>
      <dc:creator>Colt Borg</dc:creator>
      <pubDate>Sat, 07 Dec 2019 00:00:00 +0000</pubDate>
      <link>https://forem.com/coltborg/make-node-list-into-an-array-14ic</link>
      <guid>https://forem.com/coltborg/make-node-list-into-an-array-14ic</guid>
      <description>&lt;p&gt;Most of the time when I'm coding with &lt;a href="https://developer.mozilla.org/en-US/docs/Web/API/NodeList"&gt;node lists&lt;/a&gt;, I want to iterate through each of them and preform some action. My first thought is, "Node lists are _like_ arrays, I should be able to use the array methods like &lt;code&gt;.map()&lt;/code&gt; or &lt;code&gt;.filter()&lt;/code&gt; right?" 🤔&lt;/p&gt;

&lt;p&gt;But every time it backfires because Node lists are actually objects.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;nodeArray&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;p&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nx"&gt;nodeArray&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;node&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;node&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// ❗️TypeError: nodeArray.map is not a function&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;To quickly fix this, I could either use the &lt;code&gt;.forEach()&lt;/code&gt; method instead of &lt;code&gt;.map()&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;nodeArray&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;p&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nx"&gt;nodeArray&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;node&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;node&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// ✅ That works!&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Or I could quickly turn the node list into an array using the &lt;code&gt;spread operator&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;nodeArray&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;p&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;realArray&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[...&lt;/span&gt;&lt;span class="nx"&gt;nodeArray&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;

&lt;span class="nx"&gt;realArray&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;node&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;node&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;// ✅ That works!&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>javascript</category>
    </item>
  </channel>
</rss>
