YL

BUTTON

第三方登录按钮Social Login Button

白底描边的一排登录方式,品牌色只留在左侧图标槽里。

中英对照

中文
第三方登录按钮
英文
Social Login Button
别名
社交登录、微信登录按钮、OAuth Button
一句话
白底描边的一排登录方式,品牌色只留在左侧图标槽里。

效果预览

常见变体

竖排全宽Stacked Full-width

移动端或窄登录卡片里改为上下排列、每颗撑满宽度,服务名改成「使用微信登录」这类完整句子。

适合用在哪

登录注册页、结账前的快捷登录、需要降低注册摩擦的入口。

不适合:只允许企业单点登录(SSO)的内部系统,以及目标用户普遍不用这些社交账号的产品:放一排用不上的第三方入口只会制造选择负担;如果只支持一种第三方登录,直接把它做成页面的主按钮即可。

和相近模式的区别

图标文字按钮Icon Label Button

第三方登录按钮是图标文字按钮的特化:图标槽固定 22px、颜色用品牌色而不是 currentColor,按钮整体保持白底中性、不跟随站点主色;普通图标文字按钮的图标和文字同色,可以是实心主按钮。

容易踩的坑

  • 每颗按钮整颗涂成品牌色,一排五个颜色互相打架,页面像广告条。
  • 一次展开五六个登录方式,主路径被淹没,注册摩擦不降反升。
  • 只有图标能点,文字区域没有命中,移动端很难点中。

设计提示词 · Prompt

第三方登录按钮(Social Login Button):一排等高按钮(44-48px),左边 22px 图标槽、右边服务名,间距 8px,整行可点。按钮本体白底 + 1px 中性描边 + 深色字,品牌色只出现在图标上,不要整颗涂成微信绿或 GitHub 黑,否则一排颜色互相打架。顺序按目标用户的常用程度排,展开不超过 3 个,其余收进「更多方式」。图标用接近官方标识的简化形。悬停只加深描边和浅灰底,不要放大。
Social Login Button: a row of equal-height buttons (44-48px) with a 22px icon slot on the left and the service name on the right, 8px gap, and the whole row is clickable. The body stays white with a 1px neutral border and dark text; brand color lives only in the icon. Don't paint the entire button WeChat green or GitHub black, or a row of them fights itself. Order them by what this audience actually uses, show at most 3, and fold the rest into "More ways". Use a simplified mark close to the official one. Hover only darkens the border and adds a light gray fill — don't scale the button up.

可复制 CSS

自包含的最小实现,粘贴到空白页面即可生效;类名可以按项目规范改名。

/* <div class="social-row"><button class="social-btn" type="button"><svg class="social-btn__icon" aria-hidden="true" viewBox="0 0 24 24">…</svg>微信登录</button></div> */
.social-row { display: flex; flex-wrap: wrap; gap: 12px; }
.social-btn {
  display: inline-flex;
  flex: 1 1 160px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font: 600 15px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.social-btn__icon { display: block; flex: none; width: 22px; height: 22px; }
.social-btn:hover { background: #f9fafb; border-color: #9ca3af; }
.social-btn:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .social-btn { transition: none; }
}

演示 HTML 结构

<div class="s d-socialrow">
  <button class="d-socialbtn" type="button"><span class="d-socialbtn__mark d-socialbtn__mark--wx" aria-hidden="true">微</span>微信登录</button>
  <button class="d-socialbtn" type="button"><span class="d-socialbtn__mark" aria-hidden="true">GH</span>GitHub</button>
</div>

无障碍要点

  • 品牌图标加 aria-hidden="true",名称来自文字「微信登录」;如果做成只有图标的紧凑版,必须给按钮加 aria-label。
  • 按钮之间留 12px 间距,避免在移动端误触到相邻的登录方式。

常见问题

第三方登录按钮的英文是什么?

第三方登录按钮的英文是 Social Login Button。常见英文别名还包括 OAuth Button。

Social Login Button 的中文是什么?

Social Login Button 的中文是「第三方登录按钮」。常见中文别名还包括 社交登录、微信登录按钮。白底描边的一排登录方式,品牌色只留在左侧图标槽里。

第三方登录按钮可以随意改品牌颜色和图标吗?

不建议。Google、Apple 等平台都发布了登录按钮的品牌规范,对允许的配色、Logo 尺寸与留白、按钮文案都有要求,上线前要按对应平台的官方规范核对;白底中性按钮 + 官方 Logo 通常是各家规范都允许的样式。

第三方登录按钮用 <a> 还是 <button>?

看实现方式。直接跳转到授权页的 OAuth 流程可以用 <a href> 指向你的登录入口地址,没有 JS 也能工作;用 JS SDK 弹出授权窗口或扫码弹层时用 <button>。两种写法都可以套同一套样式。

常见搭配

同一页面里经常和「第三方登录按钮」一起出现的模式,可以收藏后用「组合收藏为整页提示词」一起交给 AI。

标签