Skip to content

Privacy Setting Row

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

Settings & PreferencesHTMLCSSany framework
Profile visibility
Who can see your profile and activity.
Private

Copy into your project

HTML
<div class="nuda-privacy">
  <div class="nuda-privacy__icon" aria-hidden="true">
    <svg viewBox="0 0 20 20" fill="none">
      <rect x="4" y="9" width="12" height="8" rx="2" stroke="currentColor" stroke-width="1.5" />
      <path d="M7 9V6a3 3 0 0 1 6 0v3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
    </svg>
  </div>
  <div class="nuda-privacy__info">
    <div class="nuda-privacy__name">Profile visibility</div>
    <div class="nuda-privacy__desc">Who can see your profile and activity.</div>
  </div>
  <div class="nuda-privacy__level">
    <span class="nuda-privacy__pill">Private</span>
    <svg class="nuda-privacy__chev" viewBox="0 0 12 12" aria-hidden="true">
      <path d="m4.5 3 3 3-3 3" fill="none" stroke="currentColor"
            stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
    </svg>
  </div>
</div>
CSS
/* Privacy Setting Row
   Lock icon + label + current privacy level pill.
   Customize: --accent, --row-bg */

.nuda-privacy {
  --accent: #e4ff54;
  --row-bg: #0c0c10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--row-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nuda-privacy:hover {
  background: #111114;
  border-color: rgba(255, 255, 255, 0.1);
}

.nuda-privacy__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(228, 255, 84, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nuda-privacy__icon svg {
  width: 18px;
  height: 18px;
}

.nuda-privacy__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.nuda-privacy__name {
  color: #fafafa;
  font-size: 0.875rem;
  font-weight: 500;
}

.nuda-privacy__desc {
  color: #a0a0a8;
  font-size: 0.75rem;
  line-height: 1.4;
}

.nuda-privacy__level {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nuda-privacy__pill {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fafafa;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.1875rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.nuda-privacy__chev {
  width: 12px;
  height: 12px;
  color: #63636e;
}

@media (prefers-reduced-motion: reduce) {
  .nuda-privacy {
    transition: none;
  }
}

How to use Privacy Setting Row

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 settings & preferences components

← Browse all NudaUI components