Introduce one-page career resume alongside the full BP resume, unify brand color across templates, and update monorepo docs and gitignore. Co-authored-by: Cursor <cursoragent@cursor.com>
123 lines
4.2 KiB
Plaintext
123 lines
4.2 KiB
Plaintext
// =====================================================================
|
||
// GreLin 求职简历 · Design Tokens(Tailwind 灰稿)
|
||
// 规范:Tailwind CSS 默认 theme(font-size · spacing · gray palette)
|
||
// 印刷:px × 0.75 → pt(Tailwind 默认 16px = 1rem)
|
||
// 定稿主题色:只改 color-primary 一处即可
|
||
// =====================================================================
|
||
|
||
// --- 主题色 ---
|
||
#let color-primary = rgb("#2850d0")
|
||
#let color-accent = color-primary
|
||
|
||
// --- Tailwind gray 色板 ---
|
||
#let gray-50 = rgb("#f9fafb")
|
||
#let gray-100 = rgb("#f3f4f6")
|
||
#let gray-200 = rgb("#e5e7eb")
|
||
#let gray-300 = rgb("#d1d5db")
|
||
#let gray-400 = rgb("#9ca3af")
|
||
#let gray-500 = rgb("#6b7280")
|
||
#let gray-600 = rgb("#4b5563")
|
||
#let gray-700 = rgb("#374151")
|
||
#let gray-800 = rgb("#1f2937")
|
||
#let gray-900 = rgb("#111827")
|
||
|
||
#let color-page = white
|
||
#let color-heading = gray-900
|
||
#let color-text = gray-600
|
||
#let color-text-light = gray-500
|
||
#let color-meta = gray-400
|
||
|
||
// --- 字体(Tailwind font-sans / font-mono + 中文)---
|
||
#let font-sans = ("Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei")
|
||
#let font-mono = ("Consolas", "Cascadia Mono")
|
||
#let body-font = font-sans
|
||
#let heading-font = font-sans
|
||
#let mono-font = font-mono
|
||
|
||
// --- 字号(Tailwind text-* · 印刷 pt)---
|
||
#let size-xs = 9pt // text-xs 12px
|
||
#let size-sm = 10.5pt // text-sm 14px
|
||
#let size-base = 12pt // text-base 16px
|
||
#let size-lg = 13.5pt // text-lg 18px
|
||
#let size-xl = 15pt // text-xl 20px
|
||
#let size-2xl = 18pt // text-2xl 24px
|
||
#let size-3xl = 22.5pt // text-3xl 30px
|
||
|
||
#let size-name = size-3xl
|
||
#let size-section = size-base
|
||
#let size-body = size-sm
|
||
#let size-secondary = size-sm
|
||
#let size-contact = size-sm
|
||
// 正文:简介 · 联系方式 · 左右栏 bullet / 侧栏列表(统一 text-sm 10.5pt)
|
||
#let size-prose = size-sm
|
||
// size-entry-title 与 size-body 对齐(岗位 · 公司 · 日期 ≡ 侧栏子标题)
|
||
#let size-entry-title = size-body
|
||
|
||
// --- 行距(Tailwind line-height)---
|
||
#let leading-tight-ratio = 1.25 // leading-tight
|
||
#let leading-snug-ratio = 1.375
|
||
#let leading-normal-ratio = 1.5
|
||
#let leading-xs = size-xs * leading-normal-ratio
|
||
#let leading-sm = size-sm * leading-normal-ratio
|
||
#let leading-base = size-base * leading-normal-ratio
|
||
#let leading-body = leading-sm
|
||
// 正文行距
|
||
#let leading-prose = size-prose * leading-tight-ratio
|
||
#let leading-summary = leading-prose
|
||
#let leading-contact = leading-prose
|
||
// 蓝标题(size-section)单行高度
|
||
#let leading-section = size-section * leading-normal-ratio
|
||
// 职位行(size-body)单行高度
|
||
#let leading-entry-title = size-body * leading-tight-ratio
|
||
|
||
// --- 字重(Tailwind font-normal / medium / semibold)---
|
||
#let weight-normal = "regular"
|
||
#let weight-medium = "medium"
|
||
#let weight-semibold = "semibold"
|
||
|
||
// --- 间距(按各层级单行/双行高度定义)---
|
||
#let space-none = 0pt
|
||
#let space-contact-line = space-none
|
||
#let space-inline = 6pt
|
||
#let space-entry-date-gap = space-inline
|
||
|
||
#let space-title-below = leading-section // 蓝标题 → 内容:1 行蓝标题高
|
||
#let space-subtitle-below = leading-prose // 小标题 → 正文:1 行正文行距
|
||
#let space-entry-title-below = leading-entry-title // 职位行 → bullet:1 行职位行高
|
||
#let space-name-summary = leading-prose // 姓名 → 简介:1 行简介行高
|
||
#let space-section = leading-section * 2 // 大模块之间:2 行蓝标题高
|
||
#let space-entry = leading-section // 经历条目之间:1 行蓝标题高
|
||
#let space-subtitle-group = leading-prose // 技能分组 / 侧栏条目:1 行正文行高
|
||
#let space-skill-group = space-subtitle-group
|
||
#let space-sidebar-item = space-subtitle-group
|
||
|
||
// 页眉 → 正文(未指定,沿用 1.5 行蓝标题高)
|
||
#let space-header-bottom = leading-section * 1.5
|
||
|
||
// 双栏间距
|
||
#let space-column-gap = 15pt
|
||
|
||
// --- 列表 ---
|
||
#let list-indent = 0.85em
|
||
#let list-body-indent = 0.4em
|
||
#let list-item-leading = leading-prose
|
||
|
||
// --- 布局 ---
|
||
#let main-column = 2fr
|
||
#let sidebar-column = 1fr
|
||
// 简介最大宽度(主栏内略放宽,避免过早换行)
|
||
#let summary-max-width = 58%
|
||
|
||
// 侧栏证件照
|
||
#let space-photo-below = leading-section
|
||
|
||
#let page-margin = (
|
||
top: 1.5cm,
|
||
bottom: 1.5cm,
|
||
left: 1.5cm,
|
||
right: 1.5cm,
|
||
)
|
||
|
||
// --- 圆角(Tailwind rounded DEFAULT = 4px)---
|
||
#let rounded = 3pt
|