<?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>DEV Community: Akash</title>
    <description>The latest articles on DEV Community by Akash (@actuallyakash).</description>
    <link>https://dev.to/actuallyakash</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%2F62124%2Fec39e596-57f4-4f94-acfc-fcb668035a90.jpg</url>
      <title>DEV Community: Akash</title>
      <link>https://dev.to/actuallyakash</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/actuallyakash"/>
    <language>en</language>
    <item>
      <title>SpacersJS Official Release: Fun road to 1.0</title>
      <dc:creator>Akash</dc:creator>
      <pubDate>Sun, 04 Jul 2021 17:50:50 +0000</pubDate>
      <link>https://dev.to/actuallyakash/spacersjs-official-release-fun-road-to-1-0-1j6h</link>
      <guid>https://dev.to/actuallyakash/spacersjs-official-release-fun-road-to-1-0-1j6h</guid>
      <description>&lt;p&gt;SpacersJS library is all about spacing which provides quick margin &amp;amp; padding.&lt;/p&gt;

&lt;p&gt;I was working on Mighty Addons for Elementor by &lt;a href="https://mightythemes.com/" rel="noopener noreferrer"&gt;MightyThemes&lt;/a&gt; which required the use of spacers, so I started my search for a library that I thought must be out there with other thousands of libraries on the web, I searched extensively but all to no avail. 😵&lt;/p&gt;

&lt;p&gt;There are so many page builders like Webflow, Divi, and Brizy which were using spacers but they haven't kept anything open source.&lt;/p&gt;

&lt;p&gt;So, I started the development, thinking it would be a quick &amp;amp; easy job, just four divs around an element that can be dragged to increase spacing. How hard it can be?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwm3l3z13b8ef02r143jf.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwm3l3z13b8ef02r143jf.jpg" alt="wrong calculation"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It took me shy of 1.5 months to create a final Spacers for Mighty Addons by using a bit of BackboneJS and jQuery.&lt;/p&gt;

&lt;p&gt;Then I thought, it's high time that there should be a library for Spacers. So, created a library in VanillaJS without any BackboneJS or jQuery.&lt;/p&gt;

&lt;p&gt;The top use-cases are web page builders, no-code tools, and [insert any other creative use-case here 🧠].&lt;/p&gt;

&lt;p&gt;It's a tiny library of fewer than 7kb of minified CSS &amp;amp; JS files.&lt;/p&gt;

&lt;p&gt;This is my first workable JS library and there are many improvements to be done. Any feedback is greatly appreciated.&lt;/p&gt;

&lt;p&gt;There'll be a follow-up technical post about how I created Spacers.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/actuallyakash" rel="noopener noreferrer"&gt;
        actuallyakash
      &lt;/a&gt; / &lt;a href="https://github.com/actuallyakash/spacers" rel="noopener noreferrer"&gt;
        spacers
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      🔳 when you need more __space__. Quick margin/padding for your no-code tools.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;spacers&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;&lt;em&gt;when you need more space&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/9d8a7dc256106c2e73322649aaa8f1f52432c7ad785fc147c7c92f87ecbc7761/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f646d7a39626674796b2f696d6167652f75706c6f61642f76313632353330313637382f737061636572735f6769776238622e676966"&gt;&lt;img src="https://camo.githubusercontent.com/9d8a7dc256106c2e73322649aaa8f1f52432c7ad785fc147c7c92f87ecbc7761/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f646d7a39626674796b2f696d6167652f75706c6f61642f76313632353330313637382f737061636572735f6769776238622e676966"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h4 class="heading-element"&gt;Demo&lt;/h4&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="http://actuallyakash.github.io/spacers/" rel="nofollow noopener noreferrer"&gt;http://actuallyakash.github.io/spacers&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h4 class="heading-element"&gt;Package Managers&lt;/h4&gt;
&lt;/div&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-c"&gt;&lt;span class="pl-c"&gt;#&lt;/span&gt; Bower&lt;/span&gt;
bower install --save spacersjs

&lt;span class="pl-c"&gt;&lt;span class="pl-c"&gt;#&lt;/span&gt; NPM&lt;/span&gt;
npm install spacersjs&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h4 class="heading-element"&gt;CDNs&lt;/h4&gt;

&lt;/div&gt;
&lt;div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;# unpkg
&lt;span class="pl-kos"&gt;&amp;lt;&lt;/span&gt;&lt;span class="pl-ent"&gt;link&lt;/span&gt; &lt;span class="pl-c1"&gt;rel&lt;/span&gt;="&lt;span class="pl-s"&gt;stylesheet&lt;/span&gt;" &lt;span class="pl-c1"&gt;href&lt;/span&gt;="&lt;span class="pl-s"&gt;https://unpkg.com/spacersjs/spacers/spacers.min.css&lt;/span&gt;" /&amp;gt;
&lt;span class="pl-kos"&gt;&amp;lt;&lt;/span&gt;&lt;span class="pl-ent"&gt;script&lt;/span&gt; &lt;span class="pl-c1"&gt;src&lt;/span&gt;="&lt;span class="pl-s"&gt;https://unpkg.com/spacersjs/spacers/spacers.min.js&lt;/span&gt;"&lt;span class="pl-kos"&gt;&amp;gt;&lt;/span&gt;&lt;span class="pl-kos"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="pl-ent"&gt;script&lt;/span&gt;&lt;span class="pl-kos"&gt;&amp;gt;&lt;/span&gt;

# jsDelivr
&lt;span class="pl-kos"&gt;&amp;lt;&lt;/span&gt;&lt;span class="pl-ent"&gt;link&lt;/span&gt; &lt;span class="pl-c1"&gt;rel&lt;/span&gt;="&lt;span class="pl-s"&gt;stylesheet&lt;/span&gt;" &lt;span class="pl-c1"&gt;href&lt;/span&gt;="&lt;span class="pl-s"&gt;https://cdn.jsdelivr.net/npm/spacersjs/spacers/spacers.min.css&lt;/span&gt;" /&amp;gt;
&lt;span class="pl-kos"&gt;&amp;lt;&lt;/span&gt;&lt;span class="pl-ent"&gt;script&lt;/span&gt; &lt;span class="pl-c1"&gt;src&lt;/span&gt;="&lt;span class="pl-s"&gt;https://cdn.jsdelivr.net/npm/spacersjs/spacers/spacers.min.js&lt;/span&gt;"&lt;span class="pl-kos"&gt;&amp;gt;&lt;/span&gt;&lt;span class="pl-kos"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="pl-ent"&gt;script&lt;/span&gt;&lt;span class="pl-kos"&gt;&amp;gt;&lt;/span&gt;

# CDNjs
&lt;span class="pl-kos"&gt;&amp;lt;&lt;/span&gt;&lt;span class="pl-ent"&gt;link&lt;/span&gt; &lt;span class="pl-c1"&gt;rel&lt;/span&gt;="&lt;span class="pl-s"&gt;stylesheet&lt;/span&gt;" &lt;span class="pl-c1"&gt;href&lt;/span&gt;="&lt;span class="pl-s"&gt;https://cdnjs.cloudflare.com/ajax/libs/spacersjs/1.0.6/spacers.min.css&lt;/span&gt;" /&amp;gt;
&lt;span class="pl-kos"&gt;&amp;lt;&lt;/span&gt;&lt;span class="pl-ent"&gt;script&lt;/span&gt; &lt;span class="pl-c1"&gt;src&lt;/span&gt;="&lt;span class="pl-s"&gt;https://cdnjs.cloudflare.com/ajax/libs/spacersjs/1.0.6/spacers.min.js&lt;/span&gt;"&lt;span class="pl-kos"&gt;&amp;gt;&lt;/span&gt;&lt;span class="pl-kos"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="pl-ent"&gt;script&lt;/span&gt;&lt;span class="pl-kos"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h4 class="heading-element"&gt;Bookmarklet&lt;/h4&gt;

&lt;/div&gt;
&lt;p&gt;Try spacers quickly on any webpage through the bookmarklet.&lt;/p&gt;
&lt;div class="highlight highlight-source-js notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;javascript: &lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt; &lt;span class="pl-c1"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="pl-kos"&gt;{&lt;/span&gt;&lt;span class="pl-k"&gt;var&lt;/span&gt; &lt;span class="pl-s1"&gt;spacerScript&lt;/span&gt;&lt;span class="pl-c1"&gt;=&lt;/span&gt;&lt;span class="pl-smi"&gt;document&lt;/span&gt;&lt;span class="pl-kos"&gt;.&lt;/span&gt;&lt;span class="pl-en"&gt;createElement&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-s"&gt;"script"&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt;&lt;span class="pl-s1"&gt;spacerScript&lt;/span&gt;&lt;span class="pl-kos"&gt;.&lt;/span&gt;&lt;span class="pl-c1"&gt;type&lt;/span&gt;&lt;span class="pl-c1"&gt;=&lt;/span&gt;&lt;span class="pl-s"&gt;"text/javascript"&lt;/span&gt;&lt;span class="pl-kos"&gt;,&lt;/span&gt;&lt;span class="pl-s1"&gt;spacerScript&lt;/span&gt;&lt;span class="pl-kos"&gt;.&lt;/span&gt;&lt;span class="pl-c1"&gt;src&lt;/span&gt;&lt;span class="pl-c1"&gt;=&lt;/span&gt;&lt;span class="pl-s"&gt;"https://cdn.jsdelivr.net/npm/spacersjs/spacers/spacers.min.js"&lt;/span&gt;&lt;span class="pl-kos"&gt;,&lt;/span&gt;&lt;span class="pl-smi"&gt;document&lt;/span&gt;&lt;span class="pl-kos"&gt;.&lt;/span&gt;&lt;span class="pl-en"&gt;getElementsByTagName&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-s"&gt;"head"&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;[&lt;/span&gt;&lt;span class="pl-c1"&gt;0&lt;/span&gt;&lt;span class="pl-kos"&gt;]&lt;/span&gt;&lt;span class="pl-kos"&gt;.&lt;/span&gt;&lt;span class="pl-en"&gt;appendChild&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-s1"&gt;spacerScript&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt;&lt;span class="pl-k"&gt;var&lt;/span&gt; &lt;span class="pl-s1"&gt;spacersStyles&lt;/span&gt;&lt;span class="pl-c1"&gt;=&lt;/span&gt;&lt;span class="pl-smi"&gt;document&lt;/span&gt;&lt;span class="pl-kos"&gt;.&lt;/span&gt;&lt;span class="pl-en"&gt;createElement&lt;/span&gt;&lt;/pre&gt;…
&lt;/div&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/actuallyakash/spacers" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Check out an extensive &lt;a href="http://actuallyakash.github.io/spacers/" rel="noopener noreferrer"&gt;demo of spacers&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code 👨‍💻
&lt;/h2&gt;

&lt;p&gt;All that is needed is just 3 lines of code to initialize spacers.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nf"&gt;spacers&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="na"&gt;element&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;.element-unique-class&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;More properties &lt;a href="https://actuallyakash.github.io/spacers" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Thank You! 🙇‍♂️
&lt;/h2&gt;

&lt;p&gt;There are so many changes or bugs to be fixed. Issues and feedback is greatly appreciated and stars too 😀&lt;/p&gt;




&lt;center&gt;Feel free to contribute to the project!&lt;/center&gt;



&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;
&lt;h3&gt;
  
  
  GitHub
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/actuallyakash/spacers" rel="noopener noreferrer"&gt;https://github.com/actuallyakash/spacers&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;
  
  
  NPM
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.npmjs.com/package/spacersjs" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/spacersjs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;
  
  
  Documentation
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://actuallyakash.github.io/spacers" rel="noopener noreferrer"&gt;https://actuallyakash.github.io/spacers&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;



&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;Here's the &lt;a href="https://actuallyakash.github.io/spacers/" rel="noopener noreferrer"&gt;documentation and demo for the SpacersJS&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>spacersjs</category>
      <category>javascript</category>
      <category>library</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
