12 CSS Neon Designs10 / 12

Pure CSSMIT licensed

Neon SVG Icons

Six non-rectangular SVG icons each glowing with stacked CSS filter: drop-shadow() — the glow hugs every contour with no rectangular halo, plus a side-by-side comparison of box-shadow vs drop-shadow showing the failure mode. Shield (cyan), lightning bolt (pink), hexagon with center circle (amber), 10-point star (green), crosshair/target (violet), and warning triangle (red). Each item has a pulse ring that expands on hover and a stronger 4-layer drop-shadow stack that fires on hover. The bottom comparison panel puts the same star side-by-side: left uses `box-shadow` (glows the bounding rectangle, looks broken), right uses `filter: drop-shadow()` (traces the actual alpha geometry). The whole demo is the textbook proof that drop-shadow is the only correct choice for non-rect SVG glow. DM Mono + Syne. Best for icon-library demos, cyberpunk dashboards, security/IoT UIs, dev blog posts about CSS filters.

Published

Live Demo
Try it

The code

<section class="nn-ico" aria-label="Neon SVG icons demo">
  <div class="stage">

    <div class="section-label"><span>filter: drop-shadow() — shape-aware neon glow</span></div>

    <div class="icon-grid">
      <div class="icon-item icon-cyan">
        <div class="icon-wrap">
          <div class="icon-ring" aria-hidden="true"></div>
          <svg class="icon-svg" viewBox="0 0 48 48" fill="none" aria-hidden="true">
            <path d="M24 4L8 11v14c0 9.5 6.8 18.4 16 20.6C33.2 43.4 40 34.5 40 25V11L24 4z" stroke="#00dbde" stroke-width="2.5" stroke-linejoin="round" fill="rgba(0,219,222,0.08)"/>
            <path d="M17 24l5 5 9-9" stroke="#00dbde" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
          </svg>
        </div>
        <span class="icon-name">Shield</span>
      </div>

      <div class="icon-item icon-pink">
        <div class="icon-wrap">
          <div class="icon-ring" aria-hidden="true"></div>
          <svg class="icon-svg" viewBox="0 0 48 48" fill="none" aria-hidden="true">
            <polygon points="26,4 14,28 24,28 22,44 34,20 24,20" stroke="#fc00ff" stroke-width="2.5" fill="rgba(252,0,255,0.1)" stroke-linejoin="round" stroke-linecap="round"/>
          </svg>
        </div>
        <span class="icon-name">Power</span>
      </div>

      <div class="icon-item icon-amber">
        <div class="icon-wrap">
          <div class="icon-ring" aria-hidden="true"></div>
          <svg class="icon-svg" viewBox="0 0 48 48" fill="none" aria-hidden="true">
            <polygon points="24,4 40,14 40,34 24,44 8,34 8,14" stroke="#ffb300" stroke-width="2.5" fill="rgba(255,179,0,0.08)"/>
            <circle cx="24" cy="24" r="6" stroke="#ffb300" stroke-width="2" fill="rgba(255,179,0,0.15)"/>
          </svg>
        </div>
        <span class="icon-name">Module</span>
      </div>

      <div class="icon-item icon-green">
        <div class="icon-wrap">
          <div class="icon-ring" aria-hidden="true"></div>
          <svg class="icon-svg" viewBox="0 0 48 48" fill="none" aria-hidden="true">
            <polygon points="24,4 29,18 44,18 32,27 37,42 24,33 11,42 16,27 4,18 19,18" stroke="#00ff94" stroke-width="2.5" fill="rgba(0,255,148,0.08)" stroke-linejoin="round"/>
          </svg>
        </div>
        <span class="icon-name">Rating</span>
      </div>

      <div class="icon-item icon-violet">
        <div class="icon-wrap">
          <div class="icon-ring" aria-hidden="true"></div>
          <svg class="icon-svg" viewBox="0 0 48 48" fill="none" aria-hidden="true">
            <circle cx="24" cy="24" r="18" stroke="#bf5fff" stroke-width="2.5" fill="none"/>
            <circle cx="24" cy="24" r="10" stroke="#bf5fff" stroke-width="2" fill="rgba(191,95,255,0.08)"/>
            <circle cx="24" cy="24" r="3" fill="#bf5fff"/>
            <line x1="24" y1="4"  x2="24" y2="14" stroke="#bf5fff" stroke-width="2"/>
            <line x1="24" y1="34" x2="24" y2="44" stroke="#bf5fff" stroke-width="2"/>
            <line x1="4"  y1="24" x2="14" y2="24" stroke="#bf5fff" stroke-width="2"/>
            <line x1="34" y1="24" x2="44" y2="24" stroke="#bf5fff" stroke-width="2"/>
          </svg>
        </div>
        <span class="icon-name">Target</span>
      </div>

      <div class="icon-item icon-red">
        <div class="icon-wrap">
          <div class="icon-ring" aria-hidden="true"></div>
          <svg class="icon-svg" viewBox="0 0 48 48" fill="none" aria-hidden="true">
            <path d="M24 6L4 42h40L24 6z" stroke="#ff3c3c" stroke-width="2.5" fill="rgba(255,60,60,0.08)" stroke-linejoin="round"/>
            <line x1="24" y1="20" x2="24" y2="30" stroke="#ff3c3c" stroke-width="3" stroke-linecap="round"/>
            <circle cx="24" cy="36" r="1.5" fill="#ff3c3c"/>
          </svg>
        </div>
        <span class="icon-name">Alert</span>
      </div>
    </div>

    <div class="section-label"><span>box-shadow vs filter: drop-shadow()</span></div>

    <div class="compare-panel">
      <div class="compare-card">
        <div class="compare-title bad">✕ box-shadow — rectangular glow</div>
        <div class="compare-demo">
          <div class="bad-icon-wrap">
            <svg viewBox="0 0 48 48" fill="none" aria-hidden="true">
              <polygon points="24,4 29,18 44,18 32,27 37,42 24,33 11,42 16,27 4,18 19,18" stroke="#fc00ff" stroke-width="2.5" fill="rgba(252,0,255,0.08)" stroke-linejoin="round"/>
            </svg>
          </div>
          <div class="compare-text">
            <p><code class="highlight-bad">box-shadow</code> glows the element's bounding rectangle — a square halo appears around non-rect shapes.</p>
          </div>
        </div>
      </div>

      <div class="compare-card">
        <div class="compare-title good">✓ filter: drop-shadow() — shape-hugging</div>
        <div class="compare-demo">
          <div class="good-icon-wrap">
            <svg viewBox="0 0 48 48" fill="none" aria-hidden="true">
              <polygon points="24,4 29,18 44,18 32,27 37,42 24,33 11,42 16,27 4,18 19,18" stroke="#00ff94" stroke-width="2.5" fill="rgba(0,255,148,0.08)" stroke-linejoin="round"/>
            </svg>
          </div>
          <div class="compare-text">
            <p><code class="highlight-good">filter: drop-shadow()</code> traces the actual alpha shape — glow wraps perfectly around every contour.</p>
          </div>
        </div>
      </div>
    </div>

  </div>
</section>
/* ─── 10 Neon SVG Icons — drop-shadow contour glow showcase ────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Syne:wght@700;800&display=swap');

.nn-ico {
  position: relative;
  width: 100%;
  min-height: 720px;
  background: #050512;
  font-family: 'Syne', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.nn-ico *,
.nn-ico *::before,
.nn-ico *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* Violet grid backdrop */

.nn-ico::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(150,100,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(150,100,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

.nn-ico .stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 52px;
  padding: 50px 60px;
  align-items: center;
  max-width: 820px;
  width: 100%;
}

.nn-ico .section-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(180,150,255,0.4);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.nn-ico .section-label::before,
.nn-ico .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180,150,255,0.2), transparent);
}

.nn-ico .icon-grid {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.nn-ico .icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nn-ico .icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.nn-ico .icon-wrap:hover {
  transform: scale(1.14);
}

.nn-ico .icon-svg {
  width: 52px;
  height: 52px;
  transition: filter 0.3s ease;
}

.nn-ico .icon-cyan .icon-svg {
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #00dbde) drop-shadow(0 0 22px #00dbde) drop-shadow(0 0 44px rgba(0,219,222,0.55));
}

.nn-ico .icon-pink .icon-svg {
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #fc00ff) drop-shadow(0 0 22px #fc00ff) drop-shadow(0 0 44px rgba(252,0,255,0.55));
}

.nn-ico .icon-amber .icon-svg {
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #ffb300) drop-shadow(0 0 22px #ffb300) drop-shadow(0 0 44px rgba(255,179,0,0.55));
}

.nn-ico .icon-green .icon-svg {
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #00ff94) drop-shadow(0 0 22px #00ff94) drop-shadow(0 0 44px rgba(0,255,148,0.55));
}

.nn-ico .icon-violet .icon-svg {
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #bf5fff) drop-shadow(0 0 22px #bf5fff) drop-shadow(0 0 44px rgba(191,95,255,0.55));
}

.nn-ico .icon-red .icon-svg {
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #ff3c3c) drop-shadow(0 0 22px #ff3c3c) drop-shadow(0 0 44px rgba(255,60,60,0.55));
}

.nn-ico .icon-cyan:hover .icon-svg {
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #00dbde) drop-shadow(0 0 40px #00dbde) drop-shadow(0 0 80px rgba(0,219,222,0.7));
}

.nn-ico .icon-pink:hover .icon-svg {
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #fc00ff) drop-shadow(0 0 40px #fc00ff) drop-shadow(0 0 80px rgba(252,0,255,0.7));
}

.nn-ico .icon-amber:hover .icon-svg {
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #ffb300) drop-shadow(0 0 40px #ffb300) drop-shadow(0 0 80px rgba(255,179,0,0.7));
}

.nn-ico .icon-green:hover .icon-svg {
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #00ff94) drop-shadow(0 0 40px #00ff94) drop-shadow(0 0 80px rgba(0,255,148,0.7));
}

.nn-ico .icon-violet:hover .icon-svg {
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #bf5fff) drop-shadow(0 0 40px #bf5fff) drop-shadow(0 0 80px rgba(191,95,255,0.7));
}

.nn-ico .icon-red:hover .icon-svg {
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #ff3c3c) drop-shadow(0 0 40px #ff3c3c) drop-shadow(0 0 80px rgba(255,60,60,0.7));
}

.nn-ico .icon-name {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200,200,240,0.4);
}

.nn-ico .icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.nn-ico .icon-cyan .icon-ring {
  border-color: #00dbde;
}

.nn-ico .icon-pink .icon-ring {
  border-color: #fc00ff;
}

.nn-ico .icon-amber .icon-ring {
  border-color: #ffb300;
}

.nn-ico .icon-green .icon-ring {
  border-color: #00ff94;
}

.nn-ico .icon-violet .icon-ring {
  border-color: #bf5fff;
}

.nn-ico .icon-red .icon-ring {
  border-color: #ff3c3c;
}

.nn-ico .icon-wrap:hover .icon-ring {
  opacity: 0.5;
  transform: scale(1);
}

.nn-ico .compare-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}

.nn-ico .compare-card {
  background: rgba(10,10,26,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nn-ico .compare-title {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nn-ico .compare-title.bad {
  color: rgba(255,60,60,0.6);
}

.nn-ico .compare-title.good {
  color: rgba(0,255,148,0.6);
}

.nn-ico .compare-demo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nn-ico .bad-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px #fc00ff, 0 0 20px rgba(252,0,255,0.5), 0 0 40px rgba(252,0,255,0.25);
}

.nn-ico .bad-icon-wrap svg {
  width: 40px;
  height: 40px;
}

.nn-ico .good-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #00ff94) drop-shadow(0 0 22px #00ff94) drop-shadow(0 0 44px rgba(0,255,148,0.5));
}

.nn-ico .good-icon-wrap svg {
  width: 40px;
  height: 40px;
}

.nn-ico .compare-text {
  flex: 1;
}

.nn-ico .compare-text p {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  line-height: 1.7;
  color: rgba(190,190,230,0.55);
}

.nn-ico .compare-text code {
  color: rgba(255,179,0,0.85);
}

.nn-ico .compare-text .highlight-bad {
  color: rgba(255,80,80,0.85);
}

.nn-ico .compare-text .highlight-good {
  color: rgba(0,255,148,0.85);
}

@media (max-width: 640px) {
  .nn-ico .compare-panel {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nn-ico .icon-wrap,
    .nn-ico .icon-svg,
    .nn-ico .icon-ring {
    transition: none !important;
  }
}
Paste this into ChatGPT, Claude, Cursor, or any coding assistant. The block below is pre-framed with everything the AI needs to integrate this demo into your project — markup, styles, scoping notes, and the source URL. Hit Copy and paste straight into your chat.
Here's a working CSS Neon Design from CodeFronts. Use it as-is or adapt to your framework. All classes are scoped under a unique prefix so the code won't collide with your existing styles. MIT licensed.
Demo: Neon SVG Icons
Source: https://codefronts.com/design-styles/css-neon/neon-svg-icons/

Six non-rectangular SVG icons each glowing with stacked CSS filter: drop-shadow() — the glow hugs every contour with no rectangular halo, plus a side-by-side comparison of box-shadow vs drop-shadow showing the failure mode. Shield (cyan), lightning bolt (pink), hexagon with center circle (amber), 10-point star (green), crosshair/target (violet), and warning triangle (red). Each item has a pulse ring that expands on hover and a stronger 4-layer drop-shadow stack that fires on hover. The bottom comparison panel puts the same star side-by-side: left uses `box-shadow` (glows the bounding rectangle, looks broken), right uses `filter: drop-shadow()` (traces the actual alpha geometry). The whole demo is the textbook proof that drop-shadow is the only correct choice for non-rect SVG glow. DM Mono + Syne. Best for icon-library demos, cyberpunk dashboards, security/IoT UIs, dev blog posts about CSS filters.
## HTML
```html
<section class="nn-ico" aria-label="Neon SVG icons demo">
  <div class="stage">

    <div class="section-label"><span>filter: drop-shadow() — shape-aware neon glow</span></div>

    <div class="icon-grid">
      <div class="icon-item icon-cyan">
        <div class="icon-wrap">
          <div class="icon-ring" aria-hidden="true"></div>
          <svg class="icon-svg" viewBox="0 0 48 48" fill="none" aria-hidden="true">
            <path d="M24 4L8 11v14c0 9.5 6.8 18.4 16 20.6C33.2 43.4 40 34.5 40 25V11L24 4z" stroke="#00dbde" stroke-width="2.5" stroke-linejoin="round" fill="rgba(0,219,222,0.08)"/>
            <path d="M17 24l5 5 9-9" stroke="#00dbde" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
          </svg>
        </div>
        <span class="icon-name">Shield</span>
      </div>

      <div class="icon-item icon-pink">
        <div class="icon-wrap">
          <div class="icon-ring" aria-hidden="true"></div>
          <svg class="icon-svg" viewBox="0 0 48 48" fill="none" aria-hidden="true">
            <polygon points="26,4 14,28 24,28 22,44 34,20 24,20" stroke="#fc00ff" stroke-width="2.5" fill="rgba(252,0,255,0.1)" stroke-linejoin="round" stroke-linecap="round"/>
          </svg>
        </div>
        <span class="icon-name">Power</span>
      </div>

      <div class="icon-item icon-amber">
        <div class="icon-wrap">
          <div class="icon-ring" aria-hidden="true"></div>
          <svg class="icon-svg" viewBox="0 0 48 48" fill="none" aria-hidden="true">
            <polygon points="24,4 40,14 40,34 24,44 8,34 8,14" stroke="#ffb300" stroke-width="2.5" fill="rgba(255,179,0,0.08)"/>
            <circle cx="24" cy="24" r="6" stroke="#ffb300" stroke-width="2" fill="rgba(255,179,0,0.15)"/>
          </svg>
        </div>
        <span class="icon-name">Module</span>
      </div>

      <div class="icon-item icon-green">
        <div class="icon-wrap">
          <div class="icon-ring" aria-hidden="true"></div>
          <svg class="icon-svg" viewBox="0 0 48 48" fill="none" aria-hidden="true">
            <polygon points="24,4 29,18 44,18 32,27 37,42 24,33 11,42 16,27 4,18 19,18" stroke="#00ff94" stroke-width="2.5" fill="rgba(0,255,148,0.08)" stroke-linejoin="round"/>
          </svg>
        </div>
        <span class="icon-name">Rating</span>
      </div>

      <div class="icon-item icon-violet">
        <div class="icon-wrap">
          <div class="icon-ring" aria-hidden="true"></div>
          <svg class="icon-svg" viewBox="0 0 48 48" fill="none" aria-hidden="true">
            <circle cx="24" cy="24" r="18" stroke="#bf5fff" stroke-width="2.5" fill="none"/>
            <circle cx="24" cy="24" r="10" stroke="#bf5fff" stroke-width="2" fill="rgba(191,95,255,0.08)"/>
            <circle cx="24" cy="24" r="3" fill="#bf5fff"/>
            <line x1="24" y1="4"  x2="24" y2="14" stroke="#bf5fff" stroke-width="2"/>
            <line x1="24" y1="34" x2="24" y2="44" stroke="#bf5fff" stroke-width="2"/>
            <line x1="4"  y1="24" x2="14" y2="24" stroke="#bf5fff" stroke-width="2"/>
            <line x1="34" y1="24" x2="44" y2="24" stroke="#bf5fff" stroke-width="2"/>
          </svg>
        </div>
        <span class="icon-name">Target</span>
      </div>

      <div class="icon-item icon-red">
        <div class="icon-wrap">
          <div class="icon-ring" aria-hidden="true"></div>
          <svg class="icon-svg" viewBox="0 0 48 48" fill="none" aria-hidden="true">
            <path d="M24 6L4 42h40L24 6z" stroke="#ff3c3c" stroke-width="2.5" fill="rgba(255,60,60,0.08)" stroke-linejoin="round"/>
            <line x1="24" y1="20" x2="24" y2="30" stroke="#ff3c3c" stroke-width="3" stroke-linecap="round"/>
            <circle cx="24" cy="36" r="1.5" fill="#ff3c3c"/>
          </svg>
        </div>
        <span class="icon-name">Alert</span>
      </div>
    </div>

    <div class="section-label"><span>box-shadow vs filter: drop-shadow()</span></div>

    <div class="compare-panel">
      <div class="compare-card">
        <div class="compare-title bad">✕ box-shadow — rectangular glow</div>
        <div class="compare-demo">
          <div class="bad-icon-wrap">
            <svg viewBox="0 0 48 48" fill="none" aria-hidden="true">
              <polygon points="24,4 29,18 44,18 32,27 37,42 24,33 11,42 16,27 4,18 19,18" stroke="#fc00ff" stroke-width="2.5" fill="rgba(252,0,255,0.08)" stroke-linejoin="round"/>
            </svg>
          </div>
          <div class="compare-text">
            <p><code class="highlight-bad">box-shadow</code> glows the element's bounding rectangle — a square halo appears around non-rect shapes.</p>
          </div>
        </div>
      </div>

      <div class="compare-card">
        <div class="compare-title good">✓ filter: drop-shadow() — shape-hugging</div>
        <div class="compare-demo">
          <div class="good-icon-wrap">
            <svg viewBox="0 0 48 48" fill="none" aria-hidden="true">
              <polygon points="24,4 29,18 44,18 32,27 37,42 24,33 11,42 16,27 4,18 19,18" stroke="#00ff94" stroke-width="2.5" fill="rgba(0,255,148,0.08)" stroke-linejoin="round"/>
            </svg>
          </div>
          <div class="compare-text">
            <p><code class="highlight-good">filter: drop-shadow()</code> traces the actual alpha shape — glow wraps perfectly around every contour.</p>
          </div>
        </div>
      </div>
    </div>

  </div>
</section>
```
## CSS
```css
/* ─── 10 Neon SVG Icons — drop-shadow contour glow showcase ────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Syne:wght@700;800&display=swap');

.nn-ico {
  position: relative;
  width: 100%;
  min-height: 720px;
  background: #050512;
  font-family: 'Syne', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.nn-ico *,
.nn-ico *::before,
.nn-ico *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* Violet grid backdrop */

.nn-ico::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(150,100,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(150,100,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

.nn-ico .stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 52px;
  padding: 50px 60px;
  align-items: center;
  max-width: 820px;
  width: 100%;
}

.nn-ico .section-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(180,150,255,0.4);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.nn-ico .section-label::before,
.nn-ico .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180,150,255,0.2), transparent);
}

.nn-ico .icon-grid {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.nn-ico .icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nn-ico .icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.nn-ico .icon-wrap:hover {
  transform: scale(1.14);
}

.nn-ico .icon-svg {
  width: 52px;
  height: 52px;
  transition: filter 0.3s ease;
}

.nn-ico .icon-cyan .icon-svg {
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #00dbde) drop-shadow(0 0 22px #00dbde) drop-shadow(0 0 44px rgba(0,219,222,0.55));
}

.nn-ico .icon-pink .icon-svg {
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #fc00ff) drop-shadow(0 0 22px #fc00ff) drop-shadow(0 0 44px rgba(252,0,255,0.55));
}

.nn-ico .icon-amber .icon-svg {
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #ffb300) drop-shadow(0 0 22px #ffb300) drop-shadow(0 0 44px rgba(255,179,0,0.55));
}

.nn-ico .icon-green .icon-svg {
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #00ff94) drop-shadow(0 0 22px #00ff94) drop-shadow(0 0 44px rgba(0,255,148,0.55));
}

.nn-ico .icon-violet .icon-svg {
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #bf5fff) drop-shadow(0 0 22px #bf5fff) drop-shadow(0 0 44px rgba(191,95,255,0.55));
}

.nn-ico .icon-red .icon-svg {
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #ff3c3c) drop-shadow(0 0 22px #ff3c3c) drop-shadow(0 0 44px rgba(255,60,60,0.55));
}

.nn-ico .icon-cyan:hover .icon-svg {
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #00dbde) drop-shadow(0 0 40px #00dbde) drop-shadow(0 0 80px rgba(0,219,222,0.7));
}

.nn-ico .icon-pink:hover .icon-svg {
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #fc00ff) drop-shadow(0 0 40px #fc00ff) drop-shadow(0 0 80px rgba(252,0,255,0.7));
}

.nn-ico .icon-amber:hover .icon-svg {
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #ffb300) drop-shadow(0 0 40px #ffb300) drop-shadow(0 0 80px rgba(255,179,0,0.7));
}

.nn-ico .icon-green:hover .icon-svg {
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #00ff94) drop-shadow(0 0 40px #00ff94) drop-shadow(0 0 80px rgba(0,255,148,0.7));
}

.nn-ico .icon-violet:hover .icon-svg {
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #bf5fff) drop-shadow(0 0 40px #bf5fff) drop-shadow(0 0 80px rgba(191,95,255,0.7));
}

.nn-ico .icon-red:hover .icon-svg {
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #ff3c3c) drop-shadow(0 0 40px #ff3c3c) drop-shadow(0 0 80px rgba(255,60,60,0.7));
}

.nn-ico .icon-name {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200,200,240,0.4);
}

.nn-ico .icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.nn-ico .icon-cyan .icon-ring {
  border-color: #00dbde;
}

.nn-ico .icon-pink .icon-ring {
  border-color: #fc00ff;
}

.nn-ico .icon-amber .icon-ring {
  border-color: #ffb300;
}

.nn-ico .icon-green .icon-ring {
  border-color: #00ff94;
}

.nn-ico .icon-violet .icon-ring {
  border-color: #bf5fff;
}

.nn-ico .icon-red .icon-ring {
  border-color: #ff3c3c;
}

.nn-ico .icon-wrap:hover .icon-ring {
  opacity: 0.5;
  transform: scale(1);
}

.nn-ico .compare-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}

.nn-ico .compare-card {
  background: rgba(10,10,26,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nn-ico .compare-title {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nn-ico .compare-title.bad {
  color: rgba(255,60,60,0.6);
}

.nn-ico .compare-title.good {
  color: rgba(0,255,148,0.6);
}

.nn-ico .compare-demo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nn-ico .bad-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px #fc00ff, 0 0 20px rgba(252,0,255,0.5), 0 0 40px rgba(252,0,255,0.25);
}

.nn-ico .bad-icon-wrap svg {
  width: 40px;
  height: 40px;
}

.nn-ico .good-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #00ff94) drop-shadow(0 0 22px #00ff94) drop-shadow(0 0 44px rgba(0,255,148,0.5));
}

.nn-ico .good-icon-wrap svg {
  width: 40px;
  height: 40px;
}

.nn-ico .compare-text {
  flex: 1;
}

.nn-ico .compare-text p {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  line-height: 1.7;
  color: rgba(190,190,230,0.55);
}

.nn-ico .compare-text code {
  color: rgba(255,179,0,0.85);
}

.nn-ico .compare-text .highlight-bad {
  color: rgba(255,80,80,0.85);
}

.nn-ico .compare-text .highlight-good {
  color: rgba(0,255,148,0.85);
}

@media (max-width: 640px) {
  .nn-ico .compare-panel {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nn-ico .icon-wrap,
    .nn-ico .icon-svg,
    .nn-ico .icon-ring {
    transition: none !important;
  }
}
```

Techniques used in this demo

Search CodeFronts

Loading…