<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sarshij Karn</title>
    <description>The latest articles on DEV Community by Sarshij Karn (@sarshijkarn).</description>
    <link>https://dev.to/sarshijkarn</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3688669%2Fbd6823be-4297-4f75-8032-420122b8859e.jpeg</url>
      <title>DEV Community: Sarshij Karn</title>
      <link>https://dev.to/sarshijkarn</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sarshijkarn"/>
    <language>en</language>
    <item>
      <title>SARSHIJ: How I Built a Cyberpunk Portfolio with Tailwind &amp; GSAP (From Scratch)🚀</title>
      <dc:creator>Sarshij Karn</dc:creator>
      <pubDate>Thu, 01 Jan 2026 15:24:14 +0000</pubDate>
      <link>https://dev.to/sarshijkarn/how-i-built-a-cyberpunk-portfolio-with-tailwind-gsap-from-scratch-pk4</link>
      <guid>https://dev.to/sarshijkarn/how-i-built-a-cyberpunk-portfolio-with-tailwind-gsap-from-scratch-pk4</guid>
      <description>&lt;p&gt;&lt;em&gt;By &lt;strong&gt;Sarshij Karn&lt;/strong&gt; — &lt;a href="https://sarshijkarn.com.np" rel="noopener noreferrer"&gt;sarshijkarn.com.np&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;When I set out to build my personal portfolio, I didn't just want another "clean" template. I wanted something that screamed &lt;strong&gt;Cyberpunk&lt;/strong&gt;, &lt;strong&gt;Future-Tech&lt;/strong&gt;, and &lt;strong&gt;Innovation&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;As an Electronics Engineer who codes, I needed a site that felt like a dashboard from a sci-fi movie but loaded instantly on a 3G mobile connection.&lt;/p&gt;

&lt;p&gt;Here is the deep dive into how I built &lt;a href="https://sarshijkarn.com.np" rel="noopener noreferrer"&gt;sarshijkarn.com.np&lt;/a&gt;, achieving a &lt;strong&gt;98/100 Accessibility Score&lt;/strong&gt; and perfectly utilizing &lt;strong&gt;Tailwind CSS&lt;/strong&gt; + &lt;strong&gt;GSAP&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎨 The Aesthetic: "Neon-Glass"
&lt;/h2&gt;

&lt;p&gt;The core design philosophy was simple: &lt;strong&gt;Dark Mode Only&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I used a deep void background (&lt;code&gt;#0a0a0a&lt;/code&gt;) acts as the canvas for neon accents.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Primary Neon&lt;/strong&gt;: &lt;code&gt;#b366ff&lt;/code&gt; (Cyber Purple)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Secondary Neon&lt;/strong&gt;: &lt;code&gt;#00fafe&lt;/code&gt; (Electric Cyan)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The "Glow" Effect with Tailwind
&lt;/h3&gt;

&lt;p&gt;One of my favorite tricks was stacking &lt;code&gt;drop-shadow&lt;/code&gt; to create a realistic neon glow on text without using images.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="c"&gt;/* style.css */&lt;/span&gt;
&lt;span class="nc"&gt;.neon-cyan&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#00fafe&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;text-shadow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt; &lt;span class="m"&gt;4px&lt;/span&gt; &lt;span class="nb"&gt;rgb&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt; &lt;span class="m"&gt;250&lt;/span&gt; &lt;span class="m"&gt;254&lt;/span&gt; &lt;span class="p"&gt;/&lt;/span&gt; &lt;span class="m"&gt;0.35&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt; &lt;span class="m"&gt;8px&lt;/span&gt; &lt;span class="nb"&gt;rgb&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;0&lt;/span&gt; &lt;span class="m"&gt;250&lt;/span&gt; &lt;span class="m"&gt;254&lt;/span&gt; &lt;span class="p"&gt;/&lt;/span&gt; &lt;span class="m"&gt;0.1&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This simple CSS class gives that "humming electric light" vibe to my stats and headings.&lt;/p&gt;

&lt;h2&gt;
  
  
  ⚡ The Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;HTML5&lt;/strong&gt;: Semantic &amp;amp; Accessible (Main landmarks, Aria-labels).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tailwind CSS&lt;/strong&gt;: For rapid utility-first styling.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GSAP (GreenSock)&lt;/strong&gt;: For high-performance, timeline-based animations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vanilla JS&lt;/strong&gt;: No heavy frameworks (React/Vue) needed for a static portfolio.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🎞️ Animations with GSAP
&lt;/h2&gt;

&lt;p&gt;I utilized &lt;code&gt;GSAP ScrollTrigger&lt;/code&gt; to reveal elements as the user explores the page. The key was checking for device types to ensure mobile users didn't get overwhelmed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="cm"&gt;/* script.js snippet */&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;isMobile&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;innerWidth&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;768&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nx"&gt;gsap&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;.hero-content-left&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// Slide in from left&lt;/span&gt;
  &lt;span class="na"&gt;opacity&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;ease&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;power2.out&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;delay&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This logic creates a smooth entrance for the Hero section, validating the visitor's attention immediately.&lt;/p&gt;

&lt;h2&gt;
  
  
  🦾 Accessibility (A11y) Matters
&lt;/h2&gt;

&lt;p&gt;A portfolio is useless if people can't navigate it. I spent time optimizing for screen readers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Semantic Landmarks&lt;/strong&gt;: Wrapping content in &lt;code&gt;&amp;lt;main&amp;gt;&lt;/code&gt; tags.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Color Contrast&lt;/strong&gt;: I manually tweaked my Neon colors (e.g., brightening &lt;code&gt;#8a2be2&lt;/code&gt; to &lt;code&gt;#b366ff&lt;/code&gt;) to ensure they passed the &lt;strong&gt;4.5:1&lt;/strong&gt; contrast ratio on dark backgrounds.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Labels&lt;/strong&gt;: Adding &lt;code&gt;aria-label="Sidebar Navigation"&lt;/code&gt; to the sidebar so users know exactly where they are.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  📈 The Result
&lt;/h2&gt;

&lt;p&gt;The final result is a blazingly fast, highly interactive site that represents my personality as an engineer.&lt;/p&gt;

&lt;p&gt;You can check out the live site here: &lt;strong&gt;&lt;a href="https://sarshijkarn.com.np" rel="noopener noreferrer"&gt;sarshijkarn.com.np&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you are an aspiring dev, I highly recommend building your own site "from scratch" at least once. It teaches you the fundamentals that frameworks often hide!&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Connect with me on &lt;a href="https://github.com/SarshijKarn" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; or &lt;a href="https://www.linkedin.com/in/sarshij-karn-1a7766236/" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>design</category>
      <category>tailwindcss</category>
      <category>showdev</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
