Components Success Messages Success Messages Component

Success Messages Component

Success Messages Component with Dark Mode - Features responsive effects and dark theme support. No JavaScript code is needed. For dark mode, CSS support is sufficient.

Preview

HTML Code

<div class="flex items-center justify-center h-screen bg-zinc-950">
  <div class="relative px-4 py-3 pr-10 text-teal-500 bg-teal-900 rounded-lg shadow-md" role="alert">
    <strong class="font-bold select-none">Success!</strong>
    <span class="block sm:inline select-none">Your action was successful.</span>
    <span class="absolute top-0 bottom-0 right-0 flex items-center px-4 py-3">
      <svg class="w-6 h-6 fill-current" role="button" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
        <title>Close</title>
        <path d="M14.348 14.849a1.2 1.2 0 0 1-1.697 0L10 11.819l-2.651 3.029a1.2 1.2 0 1 1-1.697-1.697l2.758-3.15L6.342 6.342a1.2 1.2 0 1 1 1.697-1.697L10 8.183l2.651-3.031a1.2 1.2 0 1 1 1.697 1.697l-2.758 3.152 2.758 3.15a1.2 1.2 0 0 1 0 1.698z" />
      </svg>
    </span>
  </div>
</div>

Related Components

Success Messages Component

Success Messages Component with Neumorphism design, responsive and dark theme support

Open

Success Message Component - Material Design Complementary

A Material Design-styled success message component for a blog/content site, using a complementary color scheme. Responsive with dark theme support. No JavaScript.

Open

Success Messages Component

A responsive success messages component inspired by Material Design with Earth tones and dark theme support, designed for content consumption.

Open