Files
SupplierSystem/skills/uiux-pro-max/styles/github-style.md
T
Ubuntu deb3e72750
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s
chore: 以 AI 生鲜配送系统 当前版本作为 SupplierSystem 起点
来源仓库:jxc/ai-fresh-delivery
来源提交:f0b1a180e2deb7e4673b9d1c8542619f7bc0f73d
快照树:  09f679334ff38f0ff25e907961c94a8223bcaedd(与来源 HEAD 工作树逐字节一致,3801 个文件)

按约定本仓库不带任何历史提交:来源仓库的历史中含真实凭据
(生产 SSH 私钥 deploy/id_rsa_tencent、server/.env、.env.tencent/.env.production/.env.gitea、
deploy/小程序AppSecret.txt,其中 MP_APPSECRET / S3 AccessKey 经哈希比对与线上同值),
整包推送会把这些凭据永久带入本仓库,故只取「当前版本」的单提交快照。
供应商系统后续开发自本提交开始。
2026-10-08 17:35:43 +08:00

4.3 KiB
Raw Blame History

name, version, description, keywords, author, style_type
name version description keywords author style_type
github-style 1.0.0 GitHub Style design style for web interfaces
GitHub
开发者
代码
简洁
灰度
StyleKit visual

GitHub Style Style

Overview

GitHub设计语言风格,简洁的界面层次、柔和的灰度系统、蓝色交互色、等宽代码字体与开发者友好的信息架构。

Philosophy

GitHub Style 是一种源于 GitHub 平台的设计语言,为全球数以千万计的开发者提供清晰、高效、无干扰的工作界面。它的设计哲学是"让内容说话"。

Design Tokens

Border

  • Width: border
  • Color: border-[#d0d7de]
  • Radius: rounded-md

Shadow

  • Small: shadow-[0_1px_0_rgba(27,31,36,0.04)]
  • Medium: shadow-[0_1px_3px_rgba(27,31,36,0.12)]
  • Large: shadow-[0_3px_6px_rgba(140,149,159,0.15)]
  • Hover: hover:shadow-[0_1px_3px_rgba(27,31,36,0.12)]

Typography

  • Heading: font-semibold text-[#1f2328]
  • Body: text-sm text-[#1f2328]
  • Hero: text-3xl md:text-4xl
  • H1: text-2xl md:text-3xl
  • Body: text-sm

Spacing

  • Section: py-6 md:py-8
  • Container: px-4 md:px-6
  • Card: p-3 md:p-4

Colors

  • Primary BG: bg-white
  • Secondary BG: bg-[#f6f8fa]
  • Primary Text: text-[#1f2328]
  • Primary Button: bg-[#1f883d] text-white border border-[#1b7f37]

Component Recipes

Button

  • Base: font-medium leading-5 rounded-md border transition-all duration-150

  • Primary: bg-[#1f883d] text-white border-[#1f883d]

  • Secondary: bg-[#f6f8fa] text-[#24292f] border-[#d0d7de]

  • Danger: bg-[#cf222e] text-white border-[#cf222e]

  • Outline: bg-transparent text-[#0969da] border-[#d0d7de]

  • Hover: hover:brightness-95 hover:shadow-[0_1px_0_rgba(27,31,36,0.04)]

Card

  • Base: bg-white border border-[#d0d7de] rounded-md text-[#24292f] transition-all duration-150

  • Default: ``

  • Muted: bg-[#f6f8fa]

  • Hover: hover:border-[#0969da]/40

Input

  • Base: w-full bg-[#f6f8fa] border border-[#d0d7de] rounded-md text-[#24292f] text-sm placeholder:text-[#6e7781] focus:outline-none transition-all duration-150
  • Default: ``
  • Contrast: bg-white border-[#24292f]/20

Forbidden Patterns

These classes must NEVER be used in GitHub Style style:

  • rounded-2xl

  • rounded-3xl

  • rounded-full

  • bg-gradient-to-r

  • bg-gradient-to-br

  • bg-gradient-to-b

  • shadow-lg

  • shadow-xl

  • shadow-2xl

  • font-serif

  • Pattern: ^rounded-(?:2xl|3xl|full)

  • Pattern: ^bg-gradient

  • Pattern: ^shadow-(?:lg|xl|2xl)

  • Pattern: ^text-(?:[4-9]xl)

  • Pattern: ^blur-

Why:

  • rounded-2xl: GitHub uses consistent rounded-md (6px) corners
  • rounded-full: GitHub reserves rounded-full for avatars and labels only
  • bg-gradient-to-r: GitHub uses flat, solid colors without gradients

Do's

  • 使用 GitHub 蓝 #0969da 作为主交互色
  • 背景使用白色 #ffffff 和浅灰 bg-[#f6f8fa]
  • 文字使用 #1f2328(深灰)和 #656d76(次要灰)
  • 边框统一使用 border-[#d0d7de]
  • 圆角使用 rounded-md(6px),保持一致性
  • 代码块使用等宽字体 font-mono 和 bg-[#f6f8fa]
  • 使用功能色语义:green #1f883d, yellow #9a6700, red #cf222e
  • 保持紧凑但清晰的间距

Don'ts

  • 禁止使用渐变背景或彩色装饰
  • 禁止使用重阴影 shadow-lg, shadow-xl
  • 禁止使用非语义化的装饰色彩
  • 禁止使用衬线字体
  • 禁止使用过大的字体或过宽的间距
  • 禁止使用动感十足的动画效果

Layout Archetypes

  • landing-hero-centered: Centered headline, subtitle, and CTA. Clean and focused.
  • landing-hero-split: Text on left, image/visual on right. Great for product showcases.
  • landing-hero-fullscreen: Full viewport hero with background image or color. High impact.
  • landing-video-hero: Full-screen video background with overlay text. High impact for product demos.
  • landing-saas-pricing: Complete SaaS pricing page with hero, pricing tiers, FAQ, and CTA.
  • landing-waitlist: Minimal pre-launch page with email collection and countdown.

Example Usage

Generate a landing page with:
- Style: github-style
- Archetype: landing-hero-centered
- Sections: hero, features, cta, footer
- Components: heading (hero variant), button (primary, lg), card (default)

Example Prompts:

  • "仓库首页"
  • "Issue 列表"
  • "作品集展示"

Generated by StyleKit · https://stylekit.dev Style: GitHub 风格 (GitHub Style)