Skip to content

Create Your First Project

A copy-paste empty states component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Empty StatesHTMLCSSany framework

Create your first project

Projects keep your work organized

Copy into your project

HTML
<!-- Create Your First Project -->
<div class="nuda-es2-first-project" role="status" aria-label="Create your first project">
  <div class="nuda-es2-first-project__scene" aria-hidden="true">
    <svg viewBox="0 0 80 80" fill="none" width="80" height="80">
      <rect class="nuda-es2-first-project__box" x="2" y="2" width="76" height="76" rx="14" stroke="currentColor" stroke-width="2" stroke-dasharray="6 6" />
    </svg>
    <span class="nuda-es2-first-project__plus">
      <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round">
        <path d="M12 5 L12 19" />
        <path d="M5 12 L19 12" />
      </svg>
    </span>
  </div>
  <h3 class="nuda-es2-first-project__title">Create your first project</h3>
  <p class="nuda-es2-first-project__sub">Projects keep your work organized</p>
  <button class="nuda-es2-first-project__cta" type="button">New project</button>
</div>
CSS
.nuda-es2-first-project {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 240px;
  color: rgba(255,255,255,.35);
}

.nuda-es2-first-project__scene {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nuda-es2-first-project__box {
  stroke-dashoffset: 0;
  animation: nuda-es2-first-project-dash 18s linear infinite;
}

.nuda-es2-first-project__plus {
  position: absolute;
  color: #e4ff54;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: nuda-es2-first-project-pulse 2.4s ease-in-out infinite;
}

.nuda-es2-first-project__plus svg {
  width: 26px;
  height: 26px;
}

.nuda-es2-first-project__title {
  font: 600 13px ui-sans-serif,system-ui;
  color: #fafafa;
  margin: 0;
}

.nuda-es2-first-project__sub {
  font: 400 11px ui-sans-serif,system-ui;
  color: #a0a0a8;
  margin: 0;
}

.nuda-es2-first-project__cta {
  margin-top: 6px;
  padding: 8px 16px;
  background: #e4ff54;
  color: #0a0a0a;
  border: 0;
  border-radius: 8px;
  font: 600 11px ui-sans-serif,system-ui;
  cursor: pointer;
  transition: transform .15s ease,filter .2s ease;
  min-height: 32px;
}

.nuda-es2-first-project__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.nuda-es2-first-project__cta:focus-visible {
  outline: 2px solid #e4ff54;
  outline-offset: 2px;
}

@keyframes nuda-es2-first-project-dash {
  to {
    stroke-dashoffset: -120;
  }
}

@keyframes nuda-es2-first-project-pulse {
  0%,100% {
    transform: scale(1);
    opacity: .85;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-es2-first-project__box,.nuda-es2-first-project__plus {
    animation: none !important;
  }
  .nuda-es2-first-project__plus {
    opacity: 1;
    transform: scale(1);
  }
}

How to use Create Your First Project

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More empty states components

← Browse all NudaUI components