DEV Community: Preethi⚡ The latest articles on DEV Community by Preethi⚡ (@preethi_dev). https://dev.to/preethi_dev 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%2F724720%2F51e1e482-1201-47e6-b8b7-0fa3523e2c25.jpg DEV Community: Preethi⚡ https://dev.to/preethi_dev en React 19.2 introduces a new component <Activity /> Preethi⚡ Tue, 07 Oct 2025 10:47:16 +0000 https://dev.to/preethi_dev/react-192-introduces-a-new-component-10cp https://dev.to/preethi_dev/react-192-introduces-a-new-component-10cp <p>If you’ve ever built a tab system, modal, or multi-step form, you’ve probably faced this dilemma:</p> <ul> <li> <strong>Conditional rendering</strong> (<code>{show &amp;&amp; &lt;Comp /&gt;}</code>) destroys the component when hidden → you lose state. </li> <li> <strong>Keeping everything mounted</strong> (<code>&lt;Comp style={{ display: 'none' }}&gt;</code>) preserves state, but effects and updates keep running in the background → wasted work. </li> </ul> <p>The new <code>&lt;Activity /&gt;</code> component sits in between: it <strong>keeps state alive, but pauses effects and defers updates</strong> when hidden.</p> <h2> How <code>&lt;Activity /&gt;</code> Works </h2> <p>Think of <code>&lt;Activity /&gt;</code> as React’s <strong>pause button</strong> for components.</p> <ul> <li> <p><strong>When <code>mode="visible"</code> (active):</strong></p> <ul> <li>Component runs normally </li> <li>Effects execute (e.g. API calls, event listeners) </li> <li>State updates trigger re-renders </li> <li>DOM is visible </li> </ul> </li> <li> <p><strong>When <code>mode="hidden"</code> (paused):</strong></p> <ul> <li>Effects are cleaned up (no API calls, intervals, subscriptions) </li> <li>State updates are remembered, but don’t trigger re-render immediately </li> <li>DOM is hidden, but not destroyed </li> <li>When made visible again → React flushes updates + resumes effects </li> </ul> </li> </ul> <h2> Example 1: Tabs with Preserved State </h2> <p><strong>Without <code>&lt;Activity /&gt;</code> (conditional rendering)</strong><br> </p> <div class="highlight js-code-highlight"> <pre class="highlight javascript"><code><span class="kd">function</span> <span class="nf">App</span><span class="p">()</span> <span class="p">{</span> <span class="kd">const</span> <span class="p">[</span><span class="nx">tab</span><span class="p">,</span> <span class="nx">setTab</span><span class="p">]</span> <span class="o">=</span> <span class="nf">useState</span><span class="p">(</span><span class="dl">"</span><span class="s2">home</span><span class="dl">"</span><span class="p">);</span> <span class="k">return </span><span class="p">(</span> <span class="o">&lt;&gt;</span> <span class="o">&lt;</span><span class="nx">button</span> <span class="nx">onClick</span><span class="o">=</span><span class="p">{()</span> <span class="o">=&gt;</span> <span class="nf">setTab</span><span class="p">(</span><span class="dl">"</span><span class="s2">home</span><span class="dl">"</span><span class="p">)}</span><span class="o">&gt;</span><span class="nx">Home</span><span class="o">&lt;</span><span class="sr">/button</span><span class="err">&gt; </span> <span class="o">&lt;</span><span class="nx">button</span> <span class="nx">onClick</span><span class="o">=</span><span class="p">{()</span> <span class="o">=&gt;</span> <span class="nf">setTab</span><span class="p">(</span><span class="dl">"</span><span class="s2">settings</span><span class="dl">"</span><span class="p">)}</span><span class="o">&gt;</span><span class="nx">Settings</span><span class="o">&lt;</span><span class="sr">/button</span><span class="err">&gt; </span> <span class="p">{</span><span class="nx">tab</span> <span class="o">===</span> <span class="dl">"</span><span class="s2">home</span><span class="dl">"</span> <span class="o">&amp;&amp;</span> <span class="o">&lt;</span><span class="nx">Home</span> <span class="o">/&gt;</span><span class="p">}</span> <span class="p">{</span><span class="nx">tab</span> <span class="o">===</span> <span class="dl">"</span><span class="s2">settings</span><span class="dl">"</span> <span class="o">&amp;&amp;</span> <span class="o">&lt;</span><span class="nx">Settings</span> <span class="o">/&gt;</span><span class="p">}</span> <span class="o">&lt;</span><span class="sr">/</span><span class="err">&gt; </span> <span class="p">);</span> <span class="p">}</span> </code></pre> </div> <p>👉 Problem: when you switch tabs, the inactive component is destroyed. If you typed something in “Settings”, it resets every time.</p> <p><strong>With <code>&lt;Activity /&gt;</code></strong><br> </p> <div class="highlight js-code-highlight"> <pre class="highlight javascript"><code><span class="kd">function</span> <span class="nf">App</span><span class="p">()</span> <span class="p">{</span> <span class="kd">const</span> <span class="p">[</span><span class="nx">tab</span><span class="p">,</span> <span class="nx">setTab</span><span class="p">]</span> <span class="o">=</span> <span class="nf">useState</span><span class="p">(</span><span class="dl">"</span><span class="s2">home</span><span class="dl">"</span><span class="p">);</span> <span class="k">return </span><span class="p">(</span> <span class="o">&lt;&gt;</span> <span class="o">&lt;</span><span class="nx">button</span> <span class="nx">onClick</span><span class="o">=</span><span class="p">{()</span> <span class="o">=&gt;</span> <span class="nf">setTab</span><span class="p">(</span><span class="dl">"</span><span class="s2">home</span><span class="dl">"</span><span class="p">)}</span><span class="o">&gt;</span><span class="nx">Home</span><span class="o">&lt;</span><span class="sr">/button</span><span class="err">&gt; </span> <span class="o">&lt;</span><span class="nx">button</span> <span class="nx">onClick</span><span class="o">=</span><span class="p">{()</span> <span class="o">=&gt;</span> <span class="nf">setTab</span><span class="p">(</span><span class="dl">"</span><span class="s2">settings</span><span class="dl">"</span><span class="p">)}</span><span class="o">&gt;</span><span class="nx">Settings</span><span class="o">&lt;</span><span class="sr">/button</span><span class="err">&gt; </span> <span class="o">&lt;</span><span class="nx">Activity</span> <span class="nx">mode</span><span class="o">=</span><span class="p">{</span><span class="nx">tab</span> <span class="o">===</span> <span class="dl">"</span><span class="s2">home</span><span class="dl">"</span> <span class="p">?</span> <span class="dl">"</span><span class="s2">visible</span><span class="dl">"</span> <span class="p">:</span> <span class="dl">"</span><span class="s2">hidden</span><span class="dl">"</span><span class="p">}</span><span class="o">&gt;</span> <span class="o">&lt;</span><span class="nx">Home</span> <span class="o">/&gt;</span> <span class="o">&lt;</span><span class="sr">/Activity</span><span class="err">&gt; </span> <span class="o">&lt;</span><span class="nx">Activity</span> <span class="nx">mode</span><span class="o">=</span><span class="p">{</span><span class="nx">tab</span> <span class="o">===</span> <span class="dl">"</span><span class="s2">settings</span><span class="dl">"</span> <span class="p">?</span> <span class="dl">"</span><span class="s2">visible</span><span class="dl">"</span> <span class="p">:</span> <span class="dl">"</span><span class="s2">hidden</span><span class="dl">"</span><span class="p">}</span><span class="o">&gt;</span> <span class="o">&lt;</span><span class="nx">Settings</span> <span class="o">/&gt;</span> <span class="o">&lt;</span><span class="sr">/Activity</span><span class="err">&gt; </span> <span class="o">&lt;</span><span class="sr">/</span><span class="err">&gt; </span> <span class="p">);</span> <span class="p">}</span> </code></pre> </div> <p>👉 Now:</p> <ul> <li>Switching tabs is instant (state preserved).</li> <li>Hidden tab doesn’t keep running effects.</li> <li>State updates in hidden tab are stored → when visible, UI is up to date.</li> </ul> <h2> Example 2: Notifications Component </h2> <div class="highlight js-code-highlight"> <pre class="highlight javascript"><code><span class="kd">function</span> <span class="nf">Notifications</span><span class="p">()</span> <span class="p">{</span> <span class="kd">const</span> <span class="p">[</span><span class="nx">count</span><span class="p">,</span> <span class="nx">setCount</span><span class="p">]</span> <span class="o">=</span> <span class="nf">useState</span><span class="p">(</span><span class="mi">0</span><span class="p">);</span> <span class="nf">useEffect</span><span class="p">(()</span> <span class="o">=&gt;</span> <span class="p">{</span> <span class="nx">console</span><span class="p">.</span><span class="nf">log</span><span class="p">(</span><span class="dl">"</span><span class="s2">🔔 Fetching notifications...</span><span class="dl">"</span><span class="p">);</span> <span class="kd">const</span> <span class="nx">id</span> <span class="o">=</span> <span class="nf">setInterval</span><span class="p">(()</span> <span class="o">=&gt;</span> <span class="p">{</span> <span class="nf">setCount</span><span class="p">(</span><span class="nx">c</span> <span class="o">=&gt;</span> <span class="nx">c</span> <span class="o">+</span> <span class="mi">1</span><span class="p">);</span> <span class="p">},</span> <span class="mi">2000</span><span class="p">);</span> <span class="k">return </span><span class="p">()</span> <span class="o">=&gt;</span> <span class="nf">clearInterval</span><span class="p">(</span><span class="nx">id</span><span class="p">);</span> <span class="p">},</span> <span class="p">[]);</span> <span class="k">return</span> <span class="o">&lt;</span><span class="nx">p</span><span class="o">&gt;</span><span class="nx">You</span> <span class="nx">have</span> <span class="p">{</span><span class="nx">count</span><span class="p">}</span> <span class="nx">notifications</span><span class="p">.</span><span class="o">&lt;</span><span class="sr">/p&gt;</span><span class="err">; </span><span class="p">}</span> <span class="kd">function</span> <span class="nf">App</span><span class="p">()</span> <span class="p">{</span> <span class="kd">const</span> <span class="p">[</span><span class="nx">open</span><span class="p">,</span> <span class="nx">setOpen</span><span class="p">]</span> <span class="o">=</span> <span class="nf">useState</span><span class="p">(</span><span class="kc">false</span><span class="p">);</span> <span class="k">return </span><span class="p">(</span> <span class="o">&lt;&gt;</span> <span class="o">&lt;</span><span class="nx">button</span> <span class="nx">onClick</span><span class="o">=</span><span class="p">{()</span> <span class="o">=&gt;</span> <span class="nf">setOpen</span><span class="p">(</span><span class="nx">o</span> <span class="o">=&gt;</span> <span class="o">!</span><span class="nx">o</span><span class="p">)}</span><span class="o">&gt;</span><span class="nx">Toggle</span> <span class="nx">Notifications</span><span class="o">&lt;</span><span class="sr">/button</span><span class="err">&gt; </span> <span class="o">&lt;</span><span class="nx">Activity</span> <span class="nx">mode</span><span class="o">=</span><span class="p">{</span><span class="nx">open</span> <span class="p">?</span> <span class="dl">"</span><span class="s2">visible</span><span class="dl">"</span> <span class="p">:</span> <span class="dl">"</span><span class="s2">hidden</span><span class="dl">"</span><span class="p">}</span><span class="o">&gt;</span> <span class="o">&lt;</span><span class="nx">Notifications</span> <span class="o">/&gt;</span> <span class="o">&lt;</span><span class="sr">/Activity</span><span class="err">&gt; </span> <span class="o">&lt;</span><span class="sr">/</span><span class="err">&gt; </span> <span class="p">);</span> <span class="p">}</span> </code></pre> </div> <ul> <li>Visible → interval runs, fetching every 2s</li> <li>Hidden → interval cleaned up (no fetch while hidden)</li> <li>Re-open → notifications count resumes with latest state</li> </ul> <p><strong>Advantages</strong></p> <ul> <li>Preserves state (no reset on tab switch)</li> <li>Preloads modules → user sees screen instantly when switching</li> <li>Pauses background work → no wasted API calls or event listeners</li> <li>Better UX → smooth transitions without heavy remounting</li> </ul> <p><strong>Disadvantages</strong></p> <ul> <li>Memory cost → components stay mounted in memory</li> <li>Extra complexity if overused → e.g. keeping dozens of activities hidden may bloat memory</li> </ul> <blockquote> <p><em>In Simple terms, you can think of it like: <strong> as minimizing an app</strong>:</em><br> <em>Not visible, but memory and state are kept.</em><br> <em>CPU work is paused until you “maximize” it again.</em></p> </blockquote> <p>🚀 This is just one of the new features in React 19.2. In the next article of this series, we’ll explore <strong>useEffectEvent — a new hook that helps you avoid stale closures in event handlers</strong>.</p> <p>👋 <strong>Hey, I’m Preethi!</strong></p> <p>I’m that frontend engineer who gets way too excited about pixel-perfect UIs, funky CSS tricks, and the newest React toys (yup, including React 19.2 ✨). <em>When I’m not squashing bugs, I’m probably writing about them—or building design systems that behave better than my coffee machine ☕.</em></p> <p>If you enjoyed this read, stick around—I’ve got more React 19.2 goodness coming your way. Let’s learn, laugh, and ship cool stuff together 🚀.</p> react frontend webdev tutorial 25 Extremely Modern Layouts Using CSS Grid✨ Preethi⚡ Wed, 20 Jul 2022 11:45:00 +0000 https://dev.to/preethi_dev/25-extremely-modern-layouts-using-css-grid-10ek https://dev.to/preethi_dev/25-extremely-modern-layouts-using-css-grid-10ek <p>Hey There👋🏽, it's really after a long time writing an article. I spent more than a couple of months on intense research of CSS Grid. More advanced techniques are added in CSS Specification which makes our life easier. </p> <p>I developed 25 extremely modern layouts made on <strong>CSS Grid and Flexbox</strong>.</p> <h3> Do yo Know?? </h3> <p>✅ Every Layout following <strong>Mobile First Approach</strong>.</p> <p>✅ Responsive to all breakpoints.</p> <p>❌ No Absolute or Relative positioning used.</p> <p>✅ Only use CSS Grid techniques. </p> <p><a href="proxy.php?url=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%2F2emlkgmtywa169e2iiv7.jpg" class="article-body-image-wrapper"><img src="proxy.php?url=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%2F2emlkgmtywa169e2iiv7.jpg" alt="Image description"></a></p> <h3> Not Showcasing Only, For Practicing also </h3> <p>Hey, This 25 layout make a best practice for modern layouts from beginner to advanced level. </p> <p>For Every layout, I list GitHub link🔗 and Preview Link🔗.</p> <p><em>Design Credits to <a href="proxy.php?url=https://www.linkedin.com/in/markojotic/" rel="noopener noreferrer">Marko Jotic</a></em> and get it on <a href="proxy.php?url=https://joticmarko.gumroad.com/l/fontsandlayouts" rel="noopener noreferrer">Gumroad</a></p> <h2> 3 steps to practice this modern layout </h2> <p>✅<strong>Step 01</strong> - Fork the repo.<br> ✅<strong>Step 02</strong> - Understand the HTML Grouping and CSS Layout technique used.<br> ✅<strong>Step 03</strong> - ReCreate the layout on your own .</p> <h2> Layout 01 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-01" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-01/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fuwri5wx09r501cw52te7.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fuwri5wx09r501cw52te7.png" alt="Layout 01"></a></p> <h2> Layout 02 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-02" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-02/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fi532de72zm4twso59p5d.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fi532de72zm4twso59p5d.png" alt="Layout 02"></a> </p> <h2> Layout 03 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-03" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-03/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fyby1tk8liihapck8hrw3.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fyby1tk8liihapck8hrw3.png" alt="Layout 03"></a></p> <h2> Layout 04 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-04" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-04/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fbico0ztuqcg2y6kpvtnj.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fbico0ztuqcg2y6kpvtnj.png" alt="Layout 04"></a></p> <h2> Layout 05 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-05" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-05/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2F33be9nairlrvaaoxaxla.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2F33be9nairlrvaaoxaxla.png" alt="Layout 05"></a> </p> <h2> Layout 06 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-06" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-06/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fc2ipzdk3rinbt6s6hwcp.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fc2ipzdk3rinbt6s6hwcp.png" alt="Image description"></a> </p> <h2> Layout 07 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-07" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-07/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2F63kcuu7i24o71bz56gjk.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2F63kcuu7i24o71bz56gjk.png" alt="Layout 07"></a> </p> <h2> Layout 08 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-08" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-08/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fqi9vkwkek8v9c0xo44da.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fqi9vkwkek8v9c0xo44da.png" alt="layout 08"></a> </p> <h2> Layout 09 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-09" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-09/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fjg109r5tqsk0s9l5558a.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fjg109r5tqsk0s9l5558a.png" alt="layout 09"></a> </p> <h2> Layout 10 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-10" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-10/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fuguf6vdlewhlruabugty.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fuguf6vdlewhlruabugty.png" alt="layout 10"></a> </p> <h2> Layout 11 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-11" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-11/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fdkwdy28vo5qylz3j5anz.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fdkwdy28vo5qylz3j5anz.png" alt="layout 11"></a> </p> <h2> Layout 12 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-12" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-12/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Falhde3vtqfnqe1fh0w32.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Falhde3vtqfnqe1fh0w32.png" alt="layout 12"></a> </p> <h2> Layout 13 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-13" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-13/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fxte9pjhwmpjlcxk1b691.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fxte9pjhwmpjlcxk1b691.png" alt="layout 13"></a> </p> <h2> Layout 14 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-14" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-14/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fovgd667kydt00ex0bwer.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fovgd667kydt00ex0bwer.png" alt="layout 14"></a> </p> <h2> Layout 15 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-15" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-15/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fu5u5zdgyt8oxw814ep4h.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fu5u5zdgyt8oxw814ep4h.png" alt="layout 15"></a> </p> <h2> Layout 16 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-16" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-16/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fxdxzih2agi0xphjt4l29.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fxdxzih2agi0xphjt4l29.png" alt="layout 16"></a> </p> <h2> Layout 17 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-17" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-17/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fd57p8x3i92i5i0x951el.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fd57p8x3i92i5i0x951el.png" alt="layout 17"></a> </p> <h2> Layout 18 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-18" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-18/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fjmbceqvmecn023pjo8on.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fjmbceqvmecn023pjo8on.png" alt="layout 18"></a> </p> <h2> Layout 19 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-19" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-19/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2F94fxejm5qkywgcbjyfw5.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2F94fxejm5qkywgcbjyfw5.png" alt="layout 19"></a> </p> <h2> Layout 20 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-20" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-20/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fkcbfdj8tcs0cznkhohfr.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fkcbfdj8tcs0cznkhohfr.png" alt="Image description"></a> </p> <h2> Layout 21 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-21" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-21/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2F88pzihlne2b9hdgnqoer.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2F88pzihlne2b9hdgnqoer.png" alt="layout 21"></a> </p> <h2> Layout 22 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-22" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-22/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fngrl8etydrwyjtnkprlf.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fngrl8etydrwyjtnkprlf.png" alt="layout 22"></a> </p> <h2> Layout 23 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-23" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-23/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fsra5rora4qdn14w7x9hx.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fsra5rora4qdn14w7x9hx.png" alt="layout 23"></a> </p> <h2> Layout 24 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-24" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-24/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fupecsx3ncvw3qshjoouj.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fupecsx3ncvw3qshjoouj.png" alt="layout 24"></a> </p> <h2> Layout 25 </h2> <p>| <a href="proxy.php?url=https://github.com/Preethi-Dev/Modern-Layout-25" rel="noopener noreferrer">GitHub Link</a> | <a href="proxy.php?url=https://preethi-dev.github.io/Modern-Layout-25/" rel="noopener noreferrer">Preview Link</a> |</p> <p><a href="proxy.php?url=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%2Fwjvpc6qwy74r1vkvsnjd.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fwjvpc6qwy74r1vkvsnjd.png" alt="layout 25"></a> </p> <p>Practice make a perfect layout!!</p> <h3> Find Me on <a href="proxy.php?url=https://github.com/Preethi-Dev" rel="noopener noreferrer"><strong>GitHub</strong></a> <a href="proxy.php?url=https://twitter.com/Preethi39195942" rel="noopener noreferrer"><strong>Twitter</strong></a> </h3> showdev css github webdev My brand new GitHub Profile - Did you💖it? Preethi⚡ Wed, 09 Mar 2022 14:03:33 +0000 https://dev.to/preethi_dev/my-brand-new-github-profile-did-youit-49eb https://dev.to/preethi_dev/my-brand-new-github-profile-did-youit-49eb <p>Hey dev👋🏻👋🏻,</p> <p>Hope you are doing well. Days of old I planned to customize my GitHub profile. </p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwo89rtpvlwl5zfv28ssz.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwo89rtpvlwl5zfv28ssz.gif" alt="Image description" width="494" height="242"></a> </p> <p>Before that, started to explore on </p> <ul> <li> <strong>Markdown</strong> </li> <li><strong>GitHub actions</strong></li> <li><strong>Third-party services</strong></li> </ul> <p>While the learning journey, Sometimes feel scary😨. But, It's not much complicated as I think. The course <strong><a href="proxy.php?url=https://www.eddiejaoude.io/" rel="noopener noreferrer"><br> How to customise your GitHub Profile</a></strong> really helped in this journey.</p> <p>You seems curious to see my brand new GitHub portfolio. So, Don't want to waste your time.</p> <h2> Click to see <a href="proxy.php?url=https://github.com/Preethi-Dev" rel="noopener noreferrer">my brand new GitHub portfolio✨</a> </h2> <blockquote> <p><em>Hey Dev, Don't forgot to share your 💖 and thoughts as regard of my GitHub portfolio✨ which really aid me lot</em></p> </blockquote> <p>By <br> <a href="proxy.php?url=https://twitter.com/Preethi39195942" rel="noopener noreferrer">Preethi</a></p> showdev discuss git github Cosmic burden behind "The Title-Winning of my 1st hackathon👩🏻‍💻" Preethi⚡ Tue, 01 Mar 2022 15:28:01 +0000 https://dev.to/preethi_dev/cosmic-burden-behind-the-title-winning-of-my-1st-hackathon-51ab https://dev.to/preethi_dev/cosmic-burden-behind-the-title-winning-of-my-1st-hackathon-51ab <p>Hey there, Feel cheerful to see you in my blog and it's my pleasure to disclosing my experience for International women's day and for #shecoded. </p> <blockquote> <p><em>I'm sure after reading the blog, You will get to know how much burden the word "burden" is.</em></p> </blockquote> <h1> A twist that breaks my patience </h1> <p>I stand by 4 years, For get an opportunity to participate in the Smart India hackathon. Smart India hackathon is a world's biggest innovation model and can participate in academic periods only. <b>My final proposal also get rejected in my final year of engineering</b>. Hope you may sense how I downhearted. </p> <p>In the COVID 19 pandemic, SIH2020 was conducted in online mode. Some team members started to way out from their selected team due to some personal Cause and enough members not there. Oh my goodness, At the moment I got a chance to join the team in spite of left person. Hey, You didn't expect that twist right. Even I am also having the same feel😍. </p> <h1> Did you know🧐🧐?? </h1> <p>I have not joined the team as solitarily. I joined as duplet👩🏻‍💻👩🏻‍💻. She is also exactly like me. <b>she is not my friend, not my junior, not my senior</b>. Haha, you seems like,</p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzrlfqsxbkxwwpw9fccvk.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzrlfqsxbkxwwpw9fccvk.gif" alt="Image description" width="160" height="196"></a></p> <p>Uh, She is my twin sister and I am twins. I am developer and she is a designer. So, changing the term "I" to "we"😉.</p> <h1> Around 16 - 18 days to the end </h1> <p>While we joining the team, There is around 16 - 20 days only left for grand final. There is nothing in our hand except problem statement and proposal. We take 1 - 2 days for understanding the problem statement. Unfortunately, Necessary to upgrade our skills to more advanced because of project complexity. Our mentor have not in good health condition and situation be like no one there.</p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffm8gh6bmv4zuw2xxcxz0.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffm8gh6bmv4zuw2xxcxz0.gif" alt="Image description" width="498" height="258"></a></p> <p>Things getting more and more complex. If we delayed for an hour which really makes the best way to risk. You may feel how it make nervousness. Finally, we made a decision.</p> <h1> A merciless decision </h1> <p>Yes, We made a merciless decision because need to upgrade our skills within 7 days and Now you know why I use the word "merciless" because <b>after 7 days, we take 1hour rest per day till grand final</b>. </p> <blockquote> <p><em>In simple words, <b>The sleepless coding</b></em>.</p> </blockquote> <p>Yaa I get your thought that how it's possible?? If anyone of us getting health serious cause of sleepless. Another one take their responsibility also. Many nights, I write coding with shed tears behind there is a single reason <b>"If I also take rest which means I take my team to knock the door of failure"</b>.</p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh19rjwwp2on9e9b7r1my.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh19rjwwp2on9e9b7r1my.gif" alt="Image description" width="400" height="225"></a></p> <h1> A bottle of lemon juice🍋 </h1> <p>The new burden started we can't take our food even we are in hungry because <b>stomach starts to reject the foods</b> due to sleepless. If we take a small fruit, which make heavy vomiting sensation and can't breathe normally. If we start taking foods, which stop our coding. Can you imagine how painful it is. The days turns be like Burden made burden.</p> <p>Every day, we take a bottle of lemon juice only. There are so much of physical burden started.</p> <h1> Climbed the grand final </h1> <p>At the end of the burdens, We done with our projects. We step into the grand final with full of hope. It was a three days of Grand final. </p> <p>Did you guess what the panel members told?? They said "<em>we can see from your project how much of hard work you did</em>". The three days spent with reviews and changes. </p> <h1> Didn't expect final pain </h1> <p>In 3rd day of morning session, Panel member said that "<em> There is no more alteration or no need of feature</em>" which really going good. Before final session of final day, need to submit our project. During process, accidentally some part of the project get deleted. Can you imagine how the heart beat getting start to beat.</p> <p>There is few minutes for code submission. At the same moment, The final evaluation will start soon. I need to demo the whole project, If it start to break the flow of project. Can't even imagine the result. At that moment, We really understand the word of "depression".<br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftor8sxpmc9yfc7vi2j5f.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftor8sxpmc9yfc7vi2j5f.gif" alt="Image description" width="498" height="354"></a> </p> <p>I said my team, Again retrieve the code from backup and try to submit it without loosing your hope. I started to fix the breaks how much I can. There is only 10min for final evaluation. After 5min, I left out the room for disclosing my emotion loudly. But I stopped myself before disclosing my emotion. I said myself "<em> don't getting nervous, Relax Preethi relax relax relax relax Preethi. You can, you can, you can, you can.</em>" </p> <p>Before entering the meeting, That 16 - 20 days efforts and pain getting rewind. <b>If I getting emotion which made a stone and forced to break my success glass</b>. Consequently, I presented my project with full of hope. </p> <h1> Tear with smile </h1> <p>All of our efforts are done. The day we are awaited for, They announced our team as winner and we also titled as "<b>Smart India Hackathon 2020 Title Winner". While I hearing the word "winner", I forgot my head pain, hungry and my physical burden and tears with smile".</b></p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftljzdevwv12fyfd4qqqn.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftljzdevwv12fyfd4qqqn.gif" alt="Image description" width="498" height="393"></a></p> <h1> We did it. Yes, We did it😌 </h1> <p>Treasure made with our pain.</p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxsj3ojbls6jzfy90d59k.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxsj3ojbls6jzfy90d59k.png" alt="Image description" width="800" height="480"></a></p> <p>After reading this blog. If You feel how much burden the word "burden" is. Give your heart💖 and write your comment💌 from your heart. Feel really proud to disclosing my experience for #shecoded.</p> <p><b>By</b><br> <a href="proxy.php?url=https://twitter.com/Preethi39195942" rel="noopener noreferrer">Preethi</a></p> wecoded webdev beginners programming Write a single line😮 for tinting your brand color Preethi⚡ Tue, 25 Jan 2022 14:45:56 +0000 https://dev.to/preethi_dev/write-a-single-line-for-tinting-your-brand-color-565o https://dev.to/preethi_dev/write-a-single-line-for-tinting-your-brand-color-565o <p>Hey There, Feel afresh to see you again and we may think sometimes as can I change default colors of form elements🤔?? or can I at least change the color while focusing state or while selection state🤔??. The answer is <b>YES</b>.</p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsqznjnp48bdb88pm4bqo.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsqznjnp48bdb88pm4bqo.gif" alt="Image description" width="498" height="253"></a><br> Haha, which is possible by two ways, By customization of default style by lines &amp; lines of code or <b>By writing a single line of code(exactly a property or a pseudo class or a pseudo element)</b>. Hey you seems getting very curated😍. So, wish to save your time and Let's get this ride on the road🎉.</p> <h2> Possible ways to reach on </h2> <ul> <li>Changing color on form elements by accent-color🌈</li> <li>Changing color while focusing by :focus-visible🧐</li> <li>Changing color while selection by ::selection🔍</li> </ul> <h2> Changing color on form elements by <code>accent-color</code>🌈<a></a> </h2> <p><code>accent-color</code> saving you from customization efforts by providing a way to bring your brand into elements.</p> <p>Still, Can't get my point. It's completely fine and you will grasp the point by a unambiguous example.<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight html"><code><span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"checkbox"</span> <span class="na">checked</span> <span class="nt">/&gt;</span> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"checkbox"</span> <span class="na">class=</span><span class="s">"custom"</span> <span class="na">checked</span> <span class="nt">/&gt;</span> </code></pre> </div> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">input</span><span class="p">{</span> <span class="py">accent-color</span><span class="p">:</span> <span class="nb">auto</span><span class="p">;</span> <span class="p">}</span> <span class="nt">input</span><span class="nc">.custom</span> <span class="p">{</span> <span class="py">accent-color</span><span class="p">:</span> <span class="no">deeppink</span><span class="p">;</span> <span class="p">}</span> </code></pre> </div> <blockquote> <p><em>Recommended to practice on codepen</em></p> </blockquote> <p><iframe height="600" src="proxy.php?url=https://codepen.io/preethi-dev/embed/zYPOppx?height=600&amp;default-tab=result&amp;embed-version=2"> </iframe> </p> <p>Currently, <code>accent-color</code> property supported on <b>four elements only</b>.</p> <ul> <li>checkbox</li> <li>radio</li> <li>range</li> <li>progress</li> </ul> <p>The <code>accent-color</code> property also do their job with <code>color-scheme</code> effectively, allowing to tint both the light and dark elements. </p> <blockquote> <p><b><em>If you not aware of <code>color-scheme</code>. Don't start to suffer and <a href="proxy.php?url=https://dev.to/preethi_dev/automatic-enabling-dark-modecss-only-2m1h">explore now</a>.</em></b></p> </blockquote> <p>For Instance,<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight html"><code><span class="nt">&lt;div</span> <span class="na">color-scheme=</span><span class="s">"light"</span><span class="nt">&gt;</span> <span class="nt">&lt;label&gt;</span> Default <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"radio"</span> <span class="na">checked</span><span class="nt">&gt;</span> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"radio"</span><span class="nt">&gt;</span> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"radio"</span><span class="nt">&gt;</span> <span class="nt">&lt;/label&gt;</span> <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"accented"</span><span class="nt">&gt;</span> Brand <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"radio"</span> <span class="na">checked</span><span class="nt">&gt;</span> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"radio"</span><span class="nt">&gt;</span> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"radio"</span><span class="nt">&gt;</span> <span class="nt">&lt;/label&gt;</span> <span class="nt">&lt;/div&gt;</span> <span class="nt">&lt;div</span> <span class="na">color-scheme=</span><span class="s">"dark"</span><span class="nt">&gt;</span> <span class="nt">&lt;label&gt;</span> Default <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"radio"</span> <span class="na">checked</span><span class="nt">&gt;</span> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"radio"</span><span class="nt">&gt;</span> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"radio"</span><span class="nt">&gt;</span> <span class="nt">&lt;/label&gt;</span> <span class="nt">&lt;label</span> <span class="na">class=</span><span class="s">"accented"</span><span class="nt">&gt;</span> Brand <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"radio"</span> <span class="na">checked</span><span class="nt">&gt;</span> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"radio"</span><span class="nt">&gt;</span> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"radio"</span><span class="nt">&gt;</span> <span class="nt">&lt;/label&gt;</span> <span class="nt">&lt;/div&gt;</span> </code></pre> </div> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nd">:root</span> <span class="p">{</span> <span class="py">--brand-color</span><span class="p">:</span> <span class="no">deeppink</span><span class="p">;</span> <span class="p">}</span> <span class="nc">.accented</span> <span class="p">{</span> <span class="py">accent-color</span><span class="p">:</span> <span class="n">var</span><span class="p">(</span><span class="n">--brand-color</span><span class="p">);</span> <span class="p">}</span> <span class="o">[</span><span class="nt">color-scheme</span><span class="o">=</span><span class="s1">"dark"</span><span class="o">]</span> <span class="nc">.accented</span> <span class="p">{</span> <span class="py">accent-color</span><span class="p">:</span> <span class="n">hsl</span><span class="p">(</span><span class="m">328</span> <span class="m">100%</span> <span class="m">80%</span><span class="p">);</span> <span class="p">}</span> </code></pre> </div> <p>See the magic✨ below,</p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fced7qoxrs95ztaiw6177.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fced7qoxrs95ztaiw6177.png" alt="Image description" width="345" height="353"></a></p> <p>I can get your thought😁, <em>"hey for practice this, I need a new file or a codepen. So, give me a sample codepen"</em>. Hm ok, I appended the codepen and start to play around on it. </p> <p><iframe height="600" src="proxy.php?url=https://codepen.io/preethi-dev/embed/zYPYGqB?height=600&amp;default-tab=result&amp;embed-version=2"> </iframe> </p> <h3> Browser Support for <code>accent-color</code> </h3> <p><code>accent-color</code> supported on modern web browsers.<br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F15oft566ekay1av9096l.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F15oft566ekay1av9096l.png" alt="Image description" width="800" height="218"></a></p> <h2> Changing color while focusing by <code>:focus-visible</code>🧐<a></a> </h2> <p>Simply, means <b>change the outline style of focus ring by using <code>:focus-visible</code> pseudo class</b>.</p> <p>For instance,<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nd">:focus-visible</span> <span class="p">{</span> <span class="nl">outline-color</span><span class="p">:</span> <span class="n">var</span><span class="p">(</span><span class="n">--brand-color</span><span class="p">);</span> <span class="p">}</span> </code></pre> </div> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fieq0wo3y3xlgpvpdqn57.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fieq0wo3y3xlgpvpdqn57.png" alt="Image description" width="337" height="128"></a><br> Recommended to play on the codepen and it's a good practice to make a way for familiar with new thing✨.</p> <p><iframe height="600" src="proxy.php?url=https://codepen.io/preethi-dev/embed/zYPYGqB?height=600&amp;default-tab=result&amp;embed-version=2"> </iframe> </p> <h2> Changing color while selection by <code>::selection</code>🔍<a></a> </h2> <p>The CSS pseudo-element <code>::selection</code> changes <b>the styling that is highlighted by the user (means allows you to style how selected text looks)</b>, such as when you highlight the text using a mouse or another pointing device.</p> <blockquote> <p><em>Seems interesting right. So early I did a dedicated article on <code><a href="proxy.php?url=https://dev.to/preethi_dev/improve-your-brand-startegy-using-selection-pseudo-element-3p18">::selection</a></code></em></p> </blockquote> <p><b>It's really a subtle work for maintain the brand and I am sure which definitely impress your client.</b> If you loved this subtle blog, Then give a endearing heart💝 which really lot to me. I love the discussion with you.</p> <p>Thanks for Reading!!<br> <a href="proxy.php?url=https://dev.to/preethi_dev"><b>Preethi</b></a><br> <em>- Make your CSS life easier</em></p> html css webdev todayilearned Emmet for forms - drive too fast 🚀 Preethi⚡ Wed, 19 Jan 2022 08:41:59 +0000 https://dev.to/preethi_dev/emmet-for-forms-drive-too-fast-1i23 https://dev.to/preethi_dev/emmet-for-forms-drive-too-fast-1i23 <p>Well hello there👋🏻👋🏻, Emmet syntax's produce 2X coding speed. Often usage of forms in websites for <b>login, signup, surveys and the like</b>. So, Try to adapt for maximum possible form fields by Emmet short syntax. </p> <p>I will make it as series since care about keep you away from overwhelmed and make a way to slurred your brain. Let's get this ride on the road🎉.</p> <h2> Generate Common text fields </h2> <ul> <li>Generate Text box</li> <li>Generate email💌 field</li> <li>Generate password field</li> <li>Generate Search🔎 field</li> <li>Generate URL🔗 field</li> <li>Generate Number🔢 field</li> <li>Color picker🌈</li> <li>File uploader📁</li> <li>Login form Generation➡️</li> </ul> <h3> Generate Text box<a></a> </h3> <p>Just type <code>input</code> and hit <code>enter</code> or <code>Tab</code> which auto generate,</p> <p><a href="proxy.php?url=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%2Fta7b0y21ml76vtp1hgte.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fta7b0y21ml76vtp1hgte.png" alt="Image description"></a></p> <p>Type <code>inp</code> or <code>input:text</code> or <code>input:t</code> and hit <code>enter</code> or <code>Tab</code> which auto generate like below,</p> <p><a href="proxy.php?url=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%2Fp3z3fzld5et5yu2muoco.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fp3z3fzld5et5yu2muoco.png" alt="Image description"></a></p> <h3> Generate email💌 field<a></a> </h3> <p>Type <code>input:email</code> and hit <code>enter</code> or <code>Tab</code> which auto generate like below,</p> <p><a href="proxy.php?url=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%2Fz96skhki0upw729sy5xr.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fz96skhki0upw729sy5xr.png" alt="Image description"></a></p> <h3> Generate password field<a></a> </h3> <p>Type <code>input:password</code> or <code>input:p</code> and hit <code>enter</code> or <code>Tab</code> which auto generate like below👇🏻,</p> <p><a href="proxy.php?url=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%2F80n0fg2i5tcuanc6l9x1.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2F80n0fg2i5tcuanc6l9x1.png" alt="Image description"></a></p> <h3> Generate Search🔎 field<a></a> </h3> <p>Type <code>input:search</code> and hit <code>enter</code> or <code>Tab</code> which auto generate like below,</p> <p><a href="proxy.php?url=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%2Fyg877mhttb6ycvph0tjn.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fyg877mhttb6ycvph0tjn.png" alt="Image description"></a></p> <h3> Generate URL🔗 field<a></a> </h3> <p>Type <code>input:url</code> and hit <code>enter</code> or <code>Tab</code> which auto generate like below,</p> <p><a href="proxy.php?url=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%2Fp7ctgbun20dmd7rnsk88.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fp7ctgbun20dmd7rnsk88.png" alt="Image description"></a></p> <h3> Generate Number🔢 field<a></a> </h3> <p>Type <code>input:number</code> and hit <code>enter</code> or <code>Tab</code> which auto generate like below,</p> <p><a href="proxy.php?url=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%2F005ekhe40ueg71gt8r09.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2F005ekhe40ueg71gt8r09.png" alt="Image description"></a></p> <h3> Color picker🌈<a></a> </h3> <p>Type <code>input:color</code> and hit <code>enter</code> or <code>Tab</code>. See the magic👇🏻,</p> <p><a href="proxy.php?url=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%2Fyhea57ckqe3gdg7yljft.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fyhea57ckqe3gdg7yljft.png" alt="Image description"></a></p> <h3> File uploader📁<a></a> </h3> <p>Type <code>input:file</code> or <code>input:f</code> and hit <code>enter</code> or <code>Tab</code>. See the magic,</p> <p><a href="proxy.php?url=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%2Fzjdj8i0fov2aeeq65lnv.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fzjdj8i0fov2aeeq65lnv.png" alt="Image description"></a></p> <blockquote> <p><b><em>In simple words, You just remember like <code>input:text_field_type</code>. Make sense right😉</em></b><br> <a href="proxy.php?url=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%2Fhwnnkbr5d2uk9090zr7s.gif" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fhwnnkbr5d2uk9090zr7s.gif" alt="Image description"></a></p> </blockquote> <h3> Login form Generation➡️<a></a> </h3> <p>Hope you grasped the idea behind the text field generation. Start to generate login form which completely Derived from learned concepts. </p> <p><b>Recommended to generate login form(like below) on your own pace by Emmet syntax.</b> If can't generate similarly, completely fine😉 which means expect more practice on Emmet syntax.</p> <div class="highlight js-code-highlight"> <pre class="highlight html"><code> <span class="nt">&lt;form</span> <span class="na">action=</span><span class="s">""</span> <span class="na">class=</span><span class="s">"login"</span><span class="nt">&gt;</span> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">placeholder=</span><span class="s">"enter name.."</span> <span class="na">name=</span><span class="s">"username"</span><span class="nt">&gt;</span> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"text"</span> <span class="na">placeholder=</span><span class="s">"enter password"</span> <span class="na">name=</span><span class="s">"password"</span><span class="nt">&gt;</span> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">"submit"</span> <span class="na">value=</span><span class="s">"submit"</span><span class="nt">&gt;</span> <span class="nt">&lt;/form&gt;</span> </code></pre> </div> <blockquote> <p><b>Note: </b><em>use <code>[]</code> for custom attributes like <code>[name="username"]</code>. If more than one custom attribute give <b>space</b> between two attribute within bracket like <code>[placeholder="enter name.." name="username"]</code></em></p> </blockquote> <p>Below Emmet syntax generate login form in a seconds⏱️. Seems interesting right💖.</p> <p><a href="proxy.php?url=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%2Fgp0dtdylsczvmsq3rijk.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fgp0dtdylsczvmsq3rijk.png" alt="Image description"></a></p> <p><b>If you loved this blog, Then give an endearing heart💝and drop your thought about this blog😍 which really a lot to me. I love the discussion with you, If you feel not comfortable at styling concepts or have any doubts.</b></p> <blockquote> <p><em>Hope we will meet on upcoming series😊 and If you not experiment with <b><a href="proxy.php?url=https://dev.to/preethi_dev/understanding-of-css-bem-26gg">CSS BEM Naming Convention</a></b>, Start to explore now.</em></p> </blockquote> <p>Thanks for Reading!!<br> <a href="proxy.php?url=https://dev.to/preethi_dev"><b>Preethi</b></a><br> <em>- Make your CSS life easier</em></p> html css productivity webdev Emmet Series2💰 - Uplift your productivity Preethi⚡ Wed, 12 Jan 2022 15:10:16 +0000 https://dev.to/preethi_dev/emmet-series2-uplift-your-productivity-4f5b https://dev.to/preethi_dev/emmet-series2-uplift-your-productivity-4f5b <p>Hey There, Series1 make your writing code faster in 2X speed right. I swear to you that contiguous series will change your current speed will be doubling😊. Now, Looking for little tricky Emmet syntax. Though, which does not make you feel freaky. Let's get this ride on the road🎉.</p> <h3> Table Of Contents </h3> <ul> <li>Class and id generator</li> <li>climb-up the elements</li> <li>Generating text</li> <li>Numbering the item</li> <li>Lorem ipsum generator🎉</li> <li>Bonus Secret info😉😉</li> </ul> <h2> Class and id generator <a></a> </h2> <p>Hope you know in CSS, Use <code><b>.</b></code> for <code>class</code> and Use <code><b>#</b></code> for <code>id</code> right. The same mechanism followed in Emmet world because try to avoid making you fatigue.</p> <p>If you want to generate <code>class</code>, Use <code><b>.</b></code><br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">a</span><span class="nc">.button</span><span class="o">&gt;</span><span class="nt">span</span><span class="nc">.button__prepend</span><span class="o">+</span><span class="nt">span</span><span class="nc">.button__body</span> </code></pre> </div> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8gukg957lkps0f1eyxgq.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8gukg957lkps0f1eyxgq.png" alt="Image description" width="800" height="366"></a></p> <p>If you want to generate <code>id</code>, Use <code><b>#</b></code><br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">a</span><span class="nf">#button</span><span class="o">&gt;</span><span class="nt">span</span><span class="nf">#button__prepend</span><span class="o">+</span><span class="nt">span</span><span class="nf">#button__body</span> </code></pre> </div> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu5h7pmle2td1onajk2g5.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu5h7pmle2td1onajk2g5.png" alt="Image description" width="800" height="366"></a></p> <p>You can also combine <code>class</code> and <code>id</code><br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">form</span><span class="nf">#search</span><span class="nc">.wide</span> </code></pre> </div> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp0ff60xdtkz2ydt2nu40.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp0ff60xdtkz2ydt2nu40.png" alt="Image description" width="800" height="287"></a></p> <h2> Climb-up the elements<a></a> </h2> <p>sometime we need to uplift the element to one or two or more levels. By that situation, Just use <code><b>^</b></code> for uplift to one level or need to uplift for 2 levels then use <code><b>^^</b></code>.</p> <blockquote> <p><em>If you cant find the symbol<code><b>^</b></code>, Chill which is in number 6 button. press <code> shift + 6 </code></em></p> </blockquote> <p>If you can't get the concept, Don't get stressed. You will grasped the point by example below.<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">div</span><span class="nc">.container</span><span class="o">&gt;</span><span class="nt">p</span><span class="o">^</span><span class="nt">div</span><span class="nc">.containerTwo</span> </code></pre> </div> <p>If you want <code>div.containerTwo</code> to uplift for <b>one level (use <code>^</code>)</b> which is sibling to <code>div.container</code>. Really interesting right😲😲.<br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fje73nhbg156s80osb5cl.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fje73nhbg156s80osb5cl.png" alt="Image description" width="800" height="366"></a></p> <blockquote> <p><b><em>In simple words, how many level you want to uplift, increase the <code><b>^</b></code></em></b>.</p> </blockquote> <p>For another instance,<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">div</span><span class="nc">.container</span><span class="o">&gt;</span><span class="nt">div</span><span class="nc">.sub-container</span><span class="o">&gt;</span><span class="nt">p</span><span class="o">+</span><span class="nt">span</span><span class="o">^^</span><span class="nt">div</span><span class="nc">.containerTwo</span> </code></pre> </div> <p>If you want <code>div.containerTwo</code> to uplift for <b>two levels (use <code>^^</code>)</b> which is sibling to <code>div.container</code>.</p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv8l5lte0cge69nex6wk6.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv8l5lte0cge69nex6wk6.png" alt="Image description" width="800" height="443"></a></p> <h2> Generating Text<a></a> </h2> <p>Often need to gave plenty of text inside the elements and that plenty of text render in the browser. We can generate that text using <code>{}</code>.</p> <p>For instance,<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">ul</span><span class="o">&gt;</span><span class="nt">li</span><span class="p">{</span><span class="err">item</span> <span class="err">name</span><span class="p">}</span><span class="o">*</span><span class="err">5</span> </code></pre> </div> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3yhhmicbah1jcvnp14un.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3yhhmicbah1jcvnp14un.png" alt="Image description" width="800" height="443"></a></p> <p>Use this feature like<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">ul</span><span class="o">&gt;</span><span class="nt">li</span><span class="p">{</span><span class="err">item$</span><span class="p">}</span><span class="o">*</span><span class="err">5</span> </code></pre> </div> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyvqutf0k34uxtdeghhhi.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyvqutf0k34uxtdeghhhi.png" alt="Image description" width="800" height="443"></a></p> <h2> Numbering the item<a></a> </h2> <p>You can numbering the item in single or more digit by Emmet syntax. you know numbering the item by using <code><b>$</b></code>. Which is fine to single digit. If you need 2 digit numbering, how to do??.<br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg0kx3kkddcp7kk847f5h.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg0kx3kkddcp7kk847f5h.gif" alt="Image description" width="498" height="498"></a><br> Simple, use <code><b>$$</b></code> for 2-digit numbering which means <b><em>how many digit you want, increase the <code><b>$</b></code></em></b>.</p> <p>For instance,<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">ul</span><span class="o">&gt;</span><span class="nt">li</span><span class="nc">.item</span><span class="err">$$</span><span class="o">*</span><span class="err">5</span> </code></pre> </div> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsyhea0f7x8gnpuxlh3pu.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsyhea0f7x8gnpuxlh3pu.png" alt="Image description" width="800" height="443"></a></p> <h2> Lorem ipsum generator<a></a> </h2> <p>This is the most stunning feature which make painless effort to searching dummy content before the copy we received from the concern team. Seems cheerful feature right😍.</p> <blockquote> <p><em>Just type <code>lorem</code> followed by number which convey <b>how many words need to be generated</b>,</em><br> </p> </blockquote> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">p</span><span class="o">&gt;</span><span class="nt">lorem10</span> </code></pre> </div> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F01d4xo2khry8zzfjiw46.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F01d4xo2khry8zzfjiw46.png" alt="Image description" width="800" height="312"></a></p> <h2> Bonus Secret info😉😉<a></a> </h2> <p>Before leak the secret, let me ask a question "<em>How to create div with container class??🤔</em>". I get your answer from your brain secretly😁 which is <code> div.container</code> right. Nothing wrong with your answer which is 💯 right.</p> <p>But, There is another way to do that. Just type <code>.container</code> and hit <code>enter</code> or <code>tab</code>, Emmet guy have <b>auto-sense</b> which generate </p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhvqhbn51b8va291iv9k7.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhvqhbn51b8va291iv9k7.png" alt="Image description" width="800" height="287"></a></p> <p>if you may use this feature like,<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">ul</span><span class="o">&gt;</span><span class="nc">.item</span><span class="err">$</span><span class="o">*</span><span class="err">4</span> </code></pre> </div> <p>observe the output closely, <code>li</code> generated automatically. Can't believe the feature like magic🪄. <br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo28ruwokvmqaybjgro4z.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo28ruwokvmqaybjgro4z.png" alt="Image description" width="800" height="418"></a></p> <blockquote> <p><em>Hope we will meet on upcoming series😊</em></p> </blockquote> <p>If you loved this blog, Then give an endearing heart💝and drop your thought about this blog😍 which really a lot to me. I love the discussion with you, If you feel not comfortable at styling concepts or have any doubts.</p> <p>If you not experiment with <b><a href="proxy.php?url=https://dev.to/preethi_dev/a-new-two-value-syntax-for-display-property-1p1e">A new two-value syntax for <code>display</code> property</a></b>, Start to explore now.</p> <p>Thanks for Reading!!<br> <a href="proxy.php?url=https://dev.to/preethi_dev"><b>Preethi</b></a><br> <em>- Make your CSS life easier</em></p> productivity webdev html css Emmet Series1🎉- Boost your productivity Preethi⚡ Mon, 10 Jan 2022 13:37:19 +0000 https://dev.to/preethi_dev/emmet-series1-boost-your-productivity-2l34 https://dev.to/preethi_dev/emmet-series1-boost-your-productivity-2l34 <p>Hey There, Header seems weird right😵. Don't panic it's not heavy handed. Sometimes feel getting infuriated to structuring our markup😩 and we have plenty of styles waiting to make website look pretty neat. Start to take advantage of <b>emmet</b> which bring off what they promise, you can use short expressions to generate HTML markup, CSS. So, Get this show on the road🎉.</p> <blockquote> <p><em>📝<b>Note:</b> I hold on to series. Desire to take you from overwhelmed and make feel consistent. We just Start uncomplicated to little complicated level.</em></p> </blockquote> <h3> Table Of Contents </h3> <ul> <li>Generating HTML Skeleton</li> <li>Generating Child Element</li> <li>Generating Sibling Element</li> <li>Grouping the elements</li> <li>Replicate the elements</li> <li>Bonus info🎉🎉</li> </ul> <h3> Generating HTML Skeleton<a></a> </h3> <p>Often need to create new <code>.html</code> file, Every time we can't write the starter code. At that frustrating level, can't explain in words😵.<br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiavndtlxjkrm8wf4t6of.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiavndtlxjkrm8wf4t6of.gif" alt="Image description" width="220" height="156"></a> <br> Uh, we are in emmet world which changed the pain points by just type <code><b>!</b></code> or <code><b>doc</b></code> and hit <code>enter</code> or <code>tab</code>. Hurray🎉, which grant starter code in a seconds.<br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fenw1iuzhjko1n4oke2fg.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fenw1iuzhjko1n4oke2fg.png" alt="Image description" width="800" height="571"></a></p> <h3> Generating Child Element<a></a> </h3> <p>In Markup, All are in <b>parent-child relationship</b>. In simple words, Building nested elements By using <code>&gt;</code> symbol.<br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fznl5t9ywufskj121912w.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fznl5t9ywufskj121912w.png" alt="Image description" width="800" height="349"></a><br> Hope you grasped the idea💡behind the <code>&gt;</code>.</p> <p>For instance,<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">nav</span><span class="o">&gt;</span><span class="nt">ul</span><span class="o">&gt;</span><span class="nt">li</span><span class="o">&gt;</span><span class="nt">a</span> </code></pre> </div> <p>After typing in IDE (<em>In the fullness of time, I love Visual Studio Code💖</em>), hit <code>enter</code> or <code>tab</code>. whoopee, Emmet guy done their job in a light speed.</p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnz9zpii25p7oka2mliqg.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnz9zpii25p7oka2mliqg.png" alt="Image description" width="800" height="531"></a><br> I can get your question. Incase of child or parent have sibling then how can I do in Emmet. Uh, That's also possible which means we can generating sibling element also.</p> <h3> Generating Sibling Element<a></a> </h3> <p>Simply, Use <code>+</code> symbol for sibling guys.<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">header</span><span class="o">+</span><span class="nt">main</span><span class="o">+</span><span class="nt">footer</span> </code></pre> </div> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcwq16p0t2q8hlw6nskh6.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcwq16p0t2q8hlw6nskh6.png" alt="Image description" width="640" height="484"></a></p> <h3> Grouping the elements.<a></a> </h3> <p>Grouping idea is outstanding and really handy in plenty of places.<br> Just group the element by using <code>()</code> irrespective of relationships.<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="o">(</span><span class="nt">header</span><span class="o">&gt;</span><span class="nt">nav</span><span class="o">&gt;</span><span class="nt">ul</span><span class="o">&gt;</span><span class="nt">li</span><span class="o">&gt;</span><span class="nt">a</span><span class="o">)+</span><span class="nt">main</span><span class="o">+</span><span class="nt">footer</span> </code></pre> </div> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr2kn5wim38os8f48rwzn.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr2kn5wim38os8f48rwzn.png" alt="Image description" width="800" height="753"></a></p> <h3> Replicate the elements<a></a> </h3> <p>In some situations, Requirement to duplicate the elements by the time, Often press <code>ctrl + c</code> then <code>ctrl + v</code> or <code>shift+alt+down-arrow</code>.<br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F03r8xztu1bpnpgpcllm4.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F03r8xztu1bpnpgpcllm4.gif" alt="Image description" width="498" height="344"></a><br> Just chill, Not a big deal. Emmet guy already grant the multiplication <code>*</code> symbol which <b>multiply the elements like the way you want</b>.<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">nav</span><span class="o">&gt;</span><span class="nt">ul</span><span class="o">&gt;(</span><span class="nt">li</span><span class="o">&gt;</span><span class="nt">a</span><span class="o">)*</span><span class="err">5</span> </code></pre> </div> <blockquote> <p><em>Just hit <code>enter</code> or <code>tab</code>. whoopee, Emmet guy done their job already, you didn't noticed it below😉.</em><br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqnw6ye36sjz76bowvlgh.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqnw6ye36sjz76bowvlgh.png" alt="Image description" width="800" height="531"></a></p> </blockquote> <p>Wow, Still with me which proof again and again that's you are big fan of learning new things. Proud of you man👏🏻👏🏻. Then It's my pleasure to give you a bonus info(keep it secret😉).</p> <h3> Bonus Info🎉🎉<a></a> </h3> <p>We can <b>order that duplicated items</b> which is really costly💰. Haha, Just use <code>$</code> to order.</p> <blockquote> <p><em>Note: <code>$</code> is only applicable when multiplication <code>*</code> implemented in end</em></p> </blockquote> <p>Before see the instance. One more info, use <code><b>.</b></code> for <b>class</b> and <code><b>#</b></code> for <b>id</b><br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">ul</span><span class="o">&gt;</span><span class="nt">li</span><span class="nc">.link</span><span class="err">$</span><span class="o">*</span><span class="err">5</span> </code></pre> </div> <p>Results really make painless feel.</p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F344fzkciurnf8j0w2mqx.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F344fzkciurnf8j0w2mqx.png" alt="Image description" width="800" height="474"></a></p> <p>If you order in <b>decreasing order</b>, that also possible😎 by using <code>@-</code> beside the <code>$</code>. Seems weird, You will get my point by instance below.<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code> <span class="nt">ul</span><span class="o">&gt;</span><span class="nt">li</span><span class="nc">.link</span><span class="err">$</span><span class="k">@-</span><span class="err">*</span><span class="m">5</span> </code></pre> </div> <p>See the magic🪄</p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpsvb9grq1kgr1lum9vl1.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpsvb9grq1kgr1lum9vl1.png" alt="Image description" width="800" height="474"></a></p> <blockquote> <p><em>Hope we will meet on upcoming series😊</em></p> </blockquote> <p>If you loved this blog, Then give an endearing heart💝and drop your thought about this blog😍 which really a lot to me. I love the discussion with you, If you feel not comfortable at styling concepts or have any doubts.</p> <p>If you not experiment with <b><a href="proxy.php?url=https://dev.to/preethi_dev/a-new-two-value-syntax-for-display-property-1p1e">A new two-value syntax for <code>display</code> property</a></b>, Start to explore now.</p> <p>Thanks for Reading!!<br> <a href="proxy.php?url=https://dev.to/preethi_dev"><b>Preethi</b></a><br> <em>- Make your CSS life easier</em></p> webdev html css productivity A new Two-value syntax for display property🪄 Preethi⚡ Sat, 08 Jan 2022 14:14:01 +0000 https://dev.to/preethi_dev/a-new-two-value-syntax-for-display-property-1p1e https://dev.to/preethi_dev/a-new-two-value-syntax-for-display-property-1p1e <p>Hey There, Plenty of CSS updates try to drain our infuriating level. Likewise, we aware of <code>inline</code>, <code>block</code>,<code>inline-block</code> ,<code>flex</code>, <code>flex</code> values of <code>display</code> property and <b>a brand new way syntax helps to make new combinations</b>. For instance, <code>inline-flex</code>or <code>inline flex</code> which seems little bit weird right. Uh, Don't worry which is not much complicated as you think about it😉.</p> <blockquote> <p><em><b>Disclaimer:</b> Recommended to use <a href="proxy.php?url=https://www.mozilla.org/en-US/firefox/developer/?utm_source=wesbos&amp;utm_campaign=cssgrid&amp;utm_content=web" rel="noopener noreferrer">FireFox Developer Browser</a>.</em></p> </blockquote> <p>So, Hope continue reading and after you feel like,<br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F26n83q4tpswrve2a21e4.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F26n83q4tpswrve2a21e4.gif" alt="Image description" width="498" height="274"></a><br> Before move directly into two-value syntax. First, We need to mastering on <b>outer and inner value</b>. Then we make the undisturbed road to Two-value syntax.</p> <h1>Outer and Inner value</h1> <ul> <li>Outer value describe whether the parent is <code>block-level</code> or <code>inline-level</code>.</li> </ul> <blockquote> <p>(<em>Outer value technically call as <b>Box Value</b></em>).</p> </blockquote> <ul> <li>Inner value describe how the children of that box behave (<b>which means determine the formatting context of children</b>).</li> </ul> <p>I can get your thought. what is formatting context🤔??<em>So, Just pause the inner and outer value topic for few seconds⏱️</em>.</p> <p>Formatting context means??. In simple terms, <b>How they behave</b> and there are several types of formatting context, including <b> block formatting contexts, inline formatting contexts, flex formatting contexts</b>.</p> <p>For instance,<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight html"><code><span class="nt">&lt;p&gt;</span>Before that night—<span class="nt">&lt;strong&gt;</span>a memorable night<span class="nt">&lt;/strong&gt;</span>, as it was to prove—hundreds of millions of people had watched the rising smoke-wreaths of their fires without drawing any special inspiration from the fact.”<span class="nt">&lt;/p&gt;</span> </code></pre> </div> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">strong</span> <span class="p">{</span> <span class="nl">margin</span><span class="p">:</span> <span class="m">20px</span><span class="p">;</span> <span class="nl">padding</span><span class="p">:</span> <span class="m">20px</span><span class="p">;</span> <span class="nl">border</span><span class="p">:</span> <span class="m">5px</span> <span class="nb">solid</span> <span class="n">rebeccapurple</span><span class="p">;</span> <span class="p">}</span> </code></pre> </div> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpl0dt5y24buqs2buqegc.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpl0dt5y24buqs2buqegc.png" alt="Image description" width="800" height="130"></a></p> <p>The above example illustrate the <b>inline formatting context</b>. Just try to understand the behaviour of inline formatting context from above instance,</p> <ul> <li>The box model does not fully apply to items participating in an inline formatting context(which means <code>margin</code> above and below the element will not be applied).</li> <li>Horizontal <code>padding</code>, <code>border</code> and <code>margin</code> will be applied to the element and push the text away left and right.</li> <li>Vertical <code>padding</code> and <code>borders</code> will be applied but may overlap content above and below.</li> </ul> <p>Hope you grasped the inline formatting context. Just like that, other formatting context guys behave their own way. Make sense right💡.</p> <p>Let's rebound to Outer and Inner value, if we declare as<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nc">.parent-container</span> <span class="p">{</span> <span class="nl">display</span><span class="p">:</span> <span class="n">flex</span><span class="p">;</span> <span class="p">}</span> </code></pre> </div> <p>or we can rewrite as,<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nc">.parent-container</span> <span class="p">{</span> <span class="nl">display</span><span class="p">:</span> <span class="nb">block</span> <span class="n">flex</span><span class="p">;</span> <span class="p">}</span> </code></pre> </div> <p>Actually Both are same. Haha, feels like<br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyjcwy8opa21kljm2qf3c.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyjcwy8opa21kljm2qf3c.gif" alt="Image description" width="396" height="498"></a><br> Nothing wrong with this <code>display: block flex;</code>. Because If we declare as <code>display: flex</code> which default <b>outer value</b> as <code>block</code> and <b>inner value</b> as <code>flex</code>. <br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb522lkzb4gkyjg99a83y.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb522lkzb4gkyjg99a83y.png" alt="Image description" width="800" height="359"></a> <br> Exactly means, <b>when we use <code>display: flex</code> we create a block-level container (that is parent container will hold other element are stack on each other), with flex children (children participating in flex formatting contect)</b>. </p> <p>For instance, <br> <iframe height="600" src="proxy.php?url=https://codepen.io/preethi-dev/embed/YzrjmwQ?height=600&amp;default-tab=result&amp;embed-version=2"> </iframe> </p> <p>Observe carefully, The text "I can't join with them🥺" after the flex container reside like stack on each other pattern (not next to each other pattern).</p> <p>If we want parent container behave as next to each other pattern, Just change the outer value. Can you guess what's that?? means change to inline??🤔.</p> <p>If you guessed inline, You are right👏🏻👏🏻. Otherwise, not a giant problem. <code>display: inline-flex</code> or <code>display: inline flex</code> which convey the parent container behave as next to each other pattern.</p> <p>For instance,<br> <iframe height="600" src="proxy.php?url=https://codepen.io/preethi-dev/embed/OJxwKZa?height=600&amp;default-tab=result&amp;embed-version=2"> </iframe> </p> <p>Now you get a clear impression with outer and inner value. So, Then what is two-value syntax??. Actually you already learned just before few seconds.</p> <div class="table-wrapper-paragraph"><table> <thead> <tr> <th>Single Value</th> <th>Two Value</th> </tr> </thead> <tbody> <tr> <td>flex</td> <td>block flex</td> </tr> <tr> <td>inline-flex</td> <td>inline flex</td> </tr> <tr> <td>grid</td> <td>block grid</td> </tr> <tr> <td>inline-grid</td> <td>inline grid</td> </tr> <tr> <td>block</td> <td>block flow</td> </tr> <tr> <td>inline</td> <td>inline flow</td> </tr> </tbody> </table></div> <h2> Two value syntax = explicitly define outer value and inner value </h2> <blockquote> <p><em>By this way, you can create more new combination values for <code>display</code> property</em>.</p> </blockquote> <h2> Browser Support </h2> <p>Not 100% work on all browser. Which is in experimental mode, Expect to change the future CSS life😍.<br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbaf3u1l6eb32gx0qs5wg.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbaf3u1l6eb32gx0qs5wg.png" alt="Image description" width="800" height="331"></a> <br> If you loved this blog, Then give an endearing heart💝and drop your thought about this blog😍 which really a lot to me. I love the discussion with you, If you feel not comfortable at styling concepts or have any doubts.</p> <p>If you not experiment with <b><a href="proxy.php?url=https://dev.to/preethi_dev/automatic-enabling-dark-modecss-only-2m1h">Auto Enabling dark mode(CSS only)</a></b>, Start to explore now.</p> <p>Thanks for Reading!!<br> <a href="proxy.php?url=https://dev.to/preethi_dev"><b>Preethi</b></a><br> <em>- Make your CSS life easier</em></p> html css webdev tutorial Auto Enabling dark mode(CSS only)🎉🎉 Preethi⚡ Tue, 04 Jan 2022 15:05:37 +0000 https://dev.to/preethi_dev/automatic-enabling-dark-modecss-only-2m1h https://dev.to/preethi_dev/automatic-enabling-dark-modecss-only-2m1h <p>Hey There, Most of the users(specially developers) are the huge fan of dark mode and try to use it on all apps and software. <b>They will definitely expect enabling dark mode on web content also. So, we can get their theme preference by their OS(In this blog, technically call as "UA" means User Agent) without need to toggle</b>😲😲. </p> <blockquote> <p><em><b>Dark mode</b> is better for your eyes in low-light environments and is better for your device battery</em>.</p> </blockquote> <p>We can achieve these without asking help to JavaScript🎉 which really sounds good (<em>Disclaimer: I'm not mean JS is complicated, But we enable these feature as simple as possible</em>). Seems be like, <br> <a href="proxy.php?url=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%2F3dycljzy5u4zgg3yc9ic.gif" class="article-body-image-wrapper"><img src="proxy.php?url=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%2F3dycljzy5u4zgg3yc9ic.gif" alt="Image description"></a> <br> NO, I'm not kidding😅. Seriously possible.</p> <h1>A magical media query🪄</h1> <p>Using <code>@media (prefers-color-scheme: dark)</code> media query, We can detect if the user has requested a light or dark color theme by User Agent(based on OS settings).</p> <p>For instance,</p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code> <span class="k">@media</span> <span class="p">(</span><span class="n">prefers-color-scheme</span><span class="p">:</span> <span class="n">dark</span><span class="p">)</span> <span class="p">{</span> <span class="nd">:root</span> <span class="p">{</span> <span class="py">--main-bg-color</span><span class="p">:</span> <span class="m">#040404</span><span class="p">;</span> <span class="py">--card-bg-color</span><span class="p">:</span> <span class="m">#3a3a38</span><span class="p">;</span> <span class="py">--icon-bg-color</span><span class="p">:</span> <span class="m">#f7d1a2</span><span class="p">;</span> <span class="py">--main-light-onColor</span><span class="p">:</span> <span class="m">#aeb4bd</span><span class="p">;</span> <span class="py">--main-dark-onColor</span><span class="p">:</span> <span class="m">#777676</span><span class="p">;</span> <span class="p">}</span> <span class="p">}</span> <span class="c">/* we can also style for light mode*/</span> <span class="k">@media</span> <span class="p">(</span><span class="n">prefers-color-scheme</span><span class="p">:</span> <span class="n">dark</span><span class="p">)</span> <span class="p">{</span> <span class="p">}</span> </code></pre> </div> <p>Above instance illustrate that, </p> <ul> <li>If <b>OS theme preference</b> is dark, Then it will be changed to dark mode. Otherwise, It will stuck with light mode.</li> </ul> <p><a href="proxy.php?url=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%2Fc72db8cjli2lpvj70wzb.png" class="article-body-image-wrapper"><img src="proxy.php?url=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%2Fc72db8cjli2lpvj70wzb.png" alt="Image description"></a></p> <ul> <li>If <b>OS theme preference</b> is light, Then it will be changed to light mode. <img src="proxy.php?url=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%2Fsuir4wfphwy5tmoyc19b.png" alt="Image description"> <code>:root</code> Selects the root element of the document: in the case of HTML and defined the <code>custom property</code> inside <code>:root</code> means which can be declared and used globally in document. Use <code>Custom property</code> is a best practice which save our loads of time like Life saver.</li> </ul> <blockquote> <p><em>If you not aware of <code>Custom property</code>, Not a big issue. I will explain, else you just skip this fold and pass on to next fold.</em></p> </blockquote> <h2>CSS Custom Property(Variables)</h2> <p>Declaring a custom property is done using a custom property name that <b>begins with a double hyphen (--), and a property value that can be any valid CSS value</b>.</p> <blockquote> <p><em>A common best practice is to define custom properties on the <code>:root</code> pseudo-class, so that it can be applied globally across your HTML document</em>.</p> </blockquote> <div class="highlight js-code-highlight"> <pre class="highlight css"><code> <span class="nd">:root</span> <span class="p">{</span> <span class="py">--main-bg-color</span><span class="p">:</span> <span class="no">brown</span><span class="p">;</span> <span class="p">}</span> </code></pre> </div> <p>Uh, Creating a <code>custom property</code> is pretty easy right. Likewise, Use this custom property is painless process😉. Just you use the custom property value by specifying your <code>custom property</code> name inside the <code>var()</code> function, in place of a regular property value.</p> <p>For instance,</p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code> <span class="nt">header</span><span class="p">{</span> <span class="nl">background-color</span><span class="p">:</span> <span class="n">var</span><span class="p">(</span><span class="n">--main-bg-color</span><span class="p">);</span> <span class="p">}</span> </code></pre> </div> <p>Hope you grasped the concept and let's get a ride on next..</p> <p>Hey still with me, Proud to see your curiosity about learning new things✨. It's my pleasure to give you a bonus info and some additional resource for practice.</p> <h2> <code>color-scheme</code> - Must include</h2> <p>We need to add styles for even form controls, scrollbars and so on. It's may be painful process. So, Using <code>color-scheme</code> changes the default text and background colors of the page to match the <b>current system appearance, standard form controls, scrollbars and other named system colors also change their look automatically</b>.</p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code> <span class="nd">:root</span> <span class="p">{</span> <span class="py">color-scheme</span><span class="p">:</span> <span class="n">dark</span> <span class="n">light</span><span class="p">;</span> <span class="p">}</span> </code></pre> </div> <div class="highlight js-code-highlight"> <pre class="highlight css"><code> <span class="c">/* possible property values */</span> <span class="nt">color-scheme</span><span class="o">:</span> <span class="nt">normal</span><span class="o">;</span> <span class="nt">color-scheme</span><span class="o">:</span> <span class="nt">light</span><span class="o">;</span> <span class="nt">color-scheme</span><span class="o">:</span> <span class="nt">dark</span><span class="o">;</span> <span class="nt">color-scheme</span><span class="o">:</span> <span class="nt">light</span> <span class="nt">dark</span><span class="o">;</span> </code></pre> </div> <p><code>color-scheme</code> specifying the values <b>light</b> and <b>dark</b> on the root element. let's the rendering engine known both modes are supported by the document. </p> <p>I recommend you to practice on codepen or fork <a href="proxy.php?url=https://github.com/Preethi-Dev/dark_mode" rel="noopener noreferrer">my repository</a>🎁 and practice on you own pace.</p> <p><iframe height="600" src="proxy.php?url=https://codepen.io/preethi-dev/embed/GRMxJXM?height=600&amp;default-tab=result&amp;embed-version=2"> </iframe> </p> <p>If you loved this blog, Then give an endearing heart💝and drop your thought about this blog😍 which really a lot to me. I love the discussion with you, If you feel not comfortable at styling concepts or have any doubts.</p> <p>If you not experiment with <b><a href="proxy.php?url=https://dev.to/preethi_dev/claymorphism-on-2022-css-only-4am">Claymorphism</a></b>, Start to explore now.</p> <p>Thanks for Reading!!<br> <a href="proxy.php?url=https://dev.to/preethi_dev"><b>Preethi</b></a><br> <em>- Make your CSS life easier</em></p> css html webdev todayilearned Claymorphism on 2022🎁 (CSS only) Preethi⚡ Sun, 02 Jan 2022 13:54:37 +0000 https://dev.to/preethi_dev/claymorphism-on-2022-css-only-4am https://dev.to/preethi_dev/claymorphism-on-2022-css-only-4am <p>Hey There, Hope this new year✨ give you a fabulous moments. There are some trends for every year like <b>Skeuomorphism</b> ➡️ <b>Neumorphism</b> ➡️<b>Glassmorphism</b> ➡️Now, The brand new trend is <b>Claymorphism</b>🎉. </p> <blockquote> <p><em>Due to accessibility issues, Some trends can't be hero of the year in real-time😥. Uh, Don't worry guys Claymorphism didn't make any accessibility issues</em>. </p> </blockquote> <h2>Why Claymorphism🤔</h2> <p>Really getting bored with flat designs and world excited for changing UI to 3D. From 2022, we introduce that 3D feel in web world. Sounds amazing right✨ and we can introduce this Claymorphism from pages to atom components. I care to save developer time and let's get this show on the road🎉.</p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F707rymbpb9yf0u6gqojs.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F707rymbpb9yf0u6gqojs.png" alt="Image description" width="800" height="300"></a></p> <h2>Claymorphism made by 4 styles</h2> <ol> <li>Light, pastel, and vivid colors</li> <li>Big rounded corners</li> <li>Double inner shadow</li> <li>Outer shadow</li> </ol> <h2>In-depth on box-shadow</h2> <p><b><code>box-shadow</code></b> is the main guy for that magical shadow effect. So, we need aware of that.</p> <p>Specify a single <code>box-shadow</code> using:</p> <ul> <li> <b>Two, three, or four values</b>. If only two values are given, they are interpreted as <b>offset-x</b> and <b>offset-y</b> values. If a third value is given, it is interpreted as a <b>blur-radius</b>. If a fourth value is given, it is interpreted as a <b>spread- radius</b>.</li> </ul> <blockquote> <p><em>To specify multiple shadows, provide a <b>comma-separated list of shadows</b></em>.</p> </blockquote> <ul> <li>Optionally, the <code>inset</code> keyword.</li> <li>Optionally, a <b>color</b> value.</li> </ul> <blockquote> <p><em>Note: <b>Claymorphism</b> is made up of <b>inner shadow</b> and <b>outer shadow</b></em></p> </blockquote> <h2>How do we create inner shadows</h2> <p>It’s actually effortless😍. We need to add special value <code>inset</code> before our shadow. This will inform our browser that this particular shadow is an inner shadow. By default, we create outer shadows. Below code snippet, illustrate the claymorphism made by <b>one outer shadow and at least two inner shadows</b>.<br> </p> <div class="highlight js-code-highlight"> <pre class="highlight css"><code><span class="nt">box-shadow</span><span class="o">:</span> <span class="err">24</span><span class="nt">px</span> <span class="err">24</span><span class="nt">px</span> <span class="err">48</span><span class="nt">px</span> <span class="nt">rgba</span><span class="o">(</span><span class="err">174</span><span class="o">,</span> <span class="err">210</span><span class="o">,</span> <span class="err">236</span><span class="o">,</span> <span class="err">0</span><span class="o">.</span><span class="err">4</span><span class="o">),</span> <span class="nt">inset</span> <span class="err">12</span><span class="nt">px</span> <span class="err">12</span><span class="nt">px</span> <span class="err">24</span><span class="nt">px</span> <span class="nf">#e7f2f9</span><span class="o">,</span> <span class="nt">inset</span> <span class="nt">-24px</span> <span class="nt">-24px</span> <span class="err">48</span><span class="nt">px</span> <span class="nf">#b8d8ee</span><span class="o">;</span> </code></pre> </div> <p>Now I thought, you are be like😉<br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fopx5q4xya3lh5r4t0wao.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fopx5q4xya3lh5r4t0wao.gif" alt="Image description" width="498" height="498"></a> <br> Hey still with me. You really curious about trends like trend lovers💖. So, it's my pleasure to give you the live experience and you will playing with that magical shadows🪄.</p> <p><iframe height="600" src="proxy.php?url=https://codepen.io/preethi-dev/embed/rNGdvMz?height=600&amp;default-tab=result&amp;embed-version=2"> </iframe> </p> <p>Or you just fork <a href="proxy.php?url=https://github.com/Preethi-Dev/Claymorphism" rel="noopener noreferrer">my repository</a>🎁 and practice in your own pace.</p> <p>If you loved this blog, Then give an endearing heart💝and drop your thought about this blog😍 which really a lot to me. I love the discussion with you, If you feel not comfortable at styling concepts or have any doubts.</p> <p>Thanks for Reading!!<br> <b>Preethi</b><br> <em>- Make your CSS life easier</em></p> html css webdev todayilearned Mastering on flex-basis behaviour Preethi⚡ Fri, 31 Dec 2021 06:25:57 +0000 https://dev.to/preethi_dev/mastering-on-flex-basis-behaviour-56a2 https://dev.to/preethi_dev/mastering-on-flex-basis-behaviour-56a2 <p>Hey Gang, Feel lucky to see you again. when start to learning on flexbox, feel like the least well-explained property in Flexbox tutorials. start to getting confused😥 like what exactly <code>flex-basis</code> behavior?? what's the difference between <code>width</code> and <code>flex-basis</code>?? etc.,</p> <p>Uh, increase our frustartion rate right. After reading lots of blog and did some exprimentation. Finally grasped the answer for all question🎉🎉. Then I'm get ready to make you mastering on <code>flex-basis</code> behaviour and let's get this show on the road. So, Be feel like</p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgxj5yoe0n9lrjytcffv0.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgxj5yoe0n9lrjytcffv0.gif" alt="Image description" width="498" height="460"></a></p> <p>Before understanding of <code>flex-basis</code>. Need to aware of </p> <ol> <li> <b>Main axis</b> of flexbox.</li> <li>Flex items formula</li> </ol> <h2>Main axis of flexbox</h2> <ul> <li>If <code>flex-direction: row</code> or <code>flex-direction: row-reverse</code>, your <code>main-axis</code> will run left to right or right to left of the page in the inline direction (horizontally). <img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5h5wywuoo7cb5xntqasu.png" alt="Image description" width="522" height="152"> </li> <li>If <code>flex-direction: column</code> or <code>flex-direction: column-reverse</code>, your <code>main-axis</code> will run top to bottom or bottom to top of the page in the block direction (vertically). <img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx9liam9aifn9hf5jt977.png" alt="Image description" width="709" height="227"> </li> </ul> <h2>Flex item formula</h2> <p>Flex item(which means elements inside the flex container) following specific formula,<br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvuvya31pioueoctmf15b.png" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvuvya31pioueoctmf15b.png" alt="Image description" width="520" height="143"></a><br> Which conveys that,</p> <blockquote> <p><em>If no <code><b>flex-basis</b></code> is specified, then the <code>flex-basis</code> falls back to the item's <code>width</code> property.<br> If no <code>width</code> is specified, then the <code>flex-basis</code> falls back to the computed width of the item's contents</em>.</p> </blockquote> <h2>flex-basis</h2> <p>The default value of <code>flex-basis</code> is <b>auto</b>. <code>flex-basis</code> take an element’s size across the main axis. which means,</p> <ul> <li>if <code>flex-direction</code> will be <b>row</b> and flex-basis is 250px, then main axis is in inline direction(horizontally) and it take 250px in <b>width</b>.</li> <li>if <code>flex-direction</code> will be <b>column</b> and flex-basis is 250px, then main axis is in block direction(vertically) and it take 250px in <b>height</b>.</li> </ul> <p>Hope you get my point😍. If can't, don't worry. You can understood through below example,<br> <a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi51kmnwotu59f2nefv81.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi51kmnwotu59f2nefv81.gif" alt="Image description" width="800" height="295"></a><br> if <code>flex-direction</code> will be <b>row</b> and flex-basis is 160px, then main axis is in inline direction(horizontally) and it take 160px in <b>width</b>. If we change the flex direction to <b>column</b>, then main axis is in block direction(vertically) and it take 160px in <b>height</b>.</p> <blockquote> <p><em><b><code>Flex-basis</code> thus alternately determines width or height, depending on <code>flex-direction</code></b>. Seems like <b>dynamic</b> in nature</em>.</p> </blockquote> <p>I recommend you to practice in codpen like just swtich the <code>flex-direction</code> and see the effect lively..</p> <p><iframe height="600" src="proxy.php?url=https://codepen.io/preethi-dev/embed/bGoLOqe?height=600&amp;default-tab=result&amp;embed-version=2"> </iframe> </p> <p>Hey, Still with me🥳. I can understood, You are getting very curious about <code>flex-basis</code> behaviour. So, It's my pleasure to show you <b>4 key behaviours of flex-basis</b>.</p> <h2>4 key behaviours of flex-basis</h2> <ol> <li> <code>Flex-basis</code> controls either “<code>width</code>” or “<code>height</code>” based on the <code>flex-direction</code>.</li> <li> <code>Flex-basis</code> will override any other <code>width</code> or <code>height</code> properties if specifically declared anything other than <code>flex-basis: auto;</code>.</li> <li> <code>flex-basis</code> will still obey <code>min-width</code> and <code>max-width</code> or height settings, which is based on <code>flex-direction</code>.</li> <li>When <code>flex-basis</code> is set to <b>auto</b>, it first checks for a <code>width</code> or <code>height</code> property (based on direction) if none, it uses the elements content sizing.(just remember that flex-item formula <b>content &lt;- width &lt;- flex-basis</b>)</li> </ol> <blockquote> <p><b>Note:</b> <code>flex-basis</code> is: the size of flex items before they are placed into a flex container(which means before the flex-shrink or flex-grow getting applied). <b>It's the ideal or hypothetical size of the items</b>. After placing the flex item in flex container, things may getting changed based on flex container size. Because flex container won't have enough space(<code>flex-shrink</code> start to shrinking the items), or will have extra space(<code>flex-grow</code> start to growing the items).</p> </blockquote> <p>uh😅, <code>flex-basis</code> guy have so much of behaviour and Congratulations,You reached the destination.</p> <p><a href="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh9dbaimtu10jph7n1455.gif" class="article-body-image-wrapper"><img src="proxy.php?url=https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh9dbaimtu10jph7n1455.gif" alt="Image description" width="498" height="300"></a> </p> <p>Please execuse me, I will end up with a bonus info.</p> <blockquote> <p><em><b>A best practice is to just use flex-basis instead of width or height</b>. Especially since Safari still has an old flexbox bug where it won't apply flex-shrink properly to items that use height instead of flex-basis</em>. </p> </blockquote> <p>If i continue now, which make you feel overwhelmed😥. <b>So, If you feel need live example for key behaviours of flex-basis and just drop a comment </b>which make a way to know about your thought and I will start to build part-2.</p> <p>If you loved this blog, Then give an endearing heart💝and drop your thought about this blog😍 which really a lot to me. I love the discussion with you, If you feel not comfortable at styling concepts or have any doubts.</p> <p>Thanks for Reading!!<br> <b>Preethi</b><br> <em>- Make your CSS life easier</em></p> html css webdev todayilearned