GitHub

Blocks / Settings

Settings beta

A profile settings section: identity first, preferences second, one save bar at the end.

Preview

Profile

AK

PNG or JPG, up to 2 MB.


Preferences

Email notifications
Invoices, mentions and the weekly summary.
Public profile
Anyone with the link can see your projects.

Built from: Avatar, Input, Textarea, Switch, Button, Separator — include their CSS alongside this block.

<div class="settings-card">
  <h3 class="settings-h">Profile</h3>
  <div class="settings-avatar">
    <span class="k-avatar" data-size="lg">AK</span>
    <div>
      <button class="btn btn-sec btn-sm">Change photo</button>
      <p class="settings-note">PNG or JPG, up to 2 MB.</p>
    </div>
  </div>
  <div class="settings-grid">
    <div class="field"><label for="st-name">Full name</label><input class="input" id="st-name" value="Aoi Kimura"></div>
    <div class="field"><label for="st-mail">Email</label><input class="input" id="st-mail" value="[email protected]"></div>
  </div>
  <div class="field"><label for="st-bio">Bio</label><textarea class="k-textarea" id="st-bio" rows="3">Product designer in Kyoto. Working on tools for small teams.</textarea></div>
  <hr class="k-sep">
  <h3 class="settings-h">Preferences</h3>
  <div class="settings-row">
    <div><div class="settings-rl">Email notifications</div><div class="settings-rd">Invoices, mentions and the weekly summary.</div></div>
    <label class="switch"><input type="checkbox" checked><span class="tr"></span></label>
  </div>
  <div class="settings-row">
    <div><div class="settings-rl">Public profile</div><div class="settings-rd">Anyone with the link can see your projects.</div></div>
    <label class="switch"><input type="checkbox"><span class="tr"></span></label>
  </div>
  <div class="settings-foot">
    <button class="btn btn-sec btn-md">Cancel</button>
    <button class="btn btn-pri btn-md">Save changes</button>
  </div>
</div>
.settings-card{background:var(--k-bg);border:1px solid var(--k-line);border-radius:14px;padding:24px;font-family:var(--k-font);color:var(--k-ink);text-align:left;width:100%}
.settings-h{font-size:15px;font-weight:600}
.settings-avatar{display:flex;align-items:center;gap:14px;margin-top:16px}
.settings-note{margin-top:5px;font-size:12px;color:var(--k-ink-3)}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
@media (max-width:640px){.settings-grid{grid-template-columns:1fr}}
.settings-card .field{margin-top:16px}
.settings-grid .field{margin-top:0}
.settings-card .k-sep{margin:22px 0}
.settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px}
.settings-rl{font-size:13.5px;font-weight:550}
.settings-rd{margin-top:2px;font-size:12.5px;color:var(--k-ink-2)}
.settings-foot{display:flex;gap:9px;justify-content:flex-end;margin-top:22px}

Usage

One card per settings group, in the order people look for them. Switches apply immediately in spirit — if yours do not, move them above the save bar.