Communitygithub.com

ranbot-ai/awesome-skills

Web 和 App 的实现指南,用于编辑设计。当用户想要杂志风格布局、大号标题和优雅字体配对时触发。

awesome-skills 是什么?

此项技能提供了一个全面的实现指南,用于创建杂志风格的编辑设计美学。它专注于通过对排版、布局和视觉元素的精确控制,在 Web 和原生应用界面上复制高端数字杂志的精致感。该技能概述了核心原则,例如衬线体与无衬线体的搭配、使用大型首字下沉和拉引文以及多栏布局。它通过详细的代码示例提供了具体的实施方案,包括用于 Web 实现的 CSS、用于 iOS 应用的 SwiftUI 以及用于跨平台移动开发的 Flutter。Web 示例演示了颜色方案、字体设置和首字下沉样式,而 SwiftUI 和 Flutter 代码片段则展示了如何通过自定义字体、分隔线和精确间距在原生环境中实现这些设计元素。此技能作为 `design-it` 技能的子参考,仅在用户明确请求杂志或编辑风格美学时使用。

兼容平台~Claude Code~Codex CLI~Cursor✓Antigravity
npx skills add https://github.com/ranbot-ai/awesome-skills/tree/HEAD/skills/design-it-editorial-design

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

编辑设计

“数字杂志。精致的字体搭配与从容、优雅的节奏。”

使用时机

当用户的需求符合上述美学描述时,使用此子风格。此技能是 design-it 技能的子参考,不应直接触发。

核心原则

  1. 衬线体与无衬线体搭配:编辑设计的标志。使用高对比度的漂亮衬线字体作为标题,搭配清晰的无衬线字体作为正文。
  2. 大型首字下沉与拉引文:引导视线并打破长段文字的排版装饰元素。
  3. 多栏布局:内容以明显的分栏流动,通常用细线(分隔线)分隔。

视觉 DNA

  • 颜色:现代编辑 或 游艇俱乐部。温暖的、类似纸张的背景色,搭配深沉的、墨水般的黑色或海军蓝。
  • 排版:
    • 标题:Playfair Display、Merriweather、Bodoni。
    • 正文:Lato、Open Sans、Source Sans Pro。
  • 边框:用于分隔板块的细长优雅水平线(发丝线)。

Web 实现

  • CSS 示例:
body {
  background-color: #F9F9F9; /* 纸白 */
  color: #121212; /* 墨黑 */
}

/* 字体搭配 */
.editorial-headline {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 24px;
  border-bottom: 1px solid #121212;
  padding-bottom: 24px;
}

.editorial-body {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  column-count: 2; /* 杂志列 */
  column-gap: 40px;
}

/* 首字下沉 */
.editorial-body::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  float: left;
  line-height: 0.8;
  padding-right: 12px;
  color: var(--cta-highlight);
}

.pull-quote {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  text-align: center;
  margin: 48px 0;
  padding: 24px 0;
  border-top: 2px solid #121212;
  border-bottom: 2px solid #121212;
}

App 实现

SwiftUI

struct EditorialView: View {
    var body: some View {
        ScrollView {
            VStack(alignment: .leading, spacing: 24) {
                // 编辑标题
                Text("The Digital\nMagazine")
                    .font(.custom("Playfair Display", size: 48))
                    .fontWeight(.bold)
                    .italic()
                    .foregroundColor(Color(white: 0.05))
                    .padding(.bottom, 16)
                
                Divider().background(Color.black)
                
                // 首字下沉与正文
                HStack(alignment: .top, spacing: 8) {
                    Text("I")
                        .font(.custom("Playfair Display", size: 64))
                        .foregroundColor(Color(red: 0.7, green: 0.2, blue: 0.2))
                        // 负内边距使正文更贴近首字下沉
                        .padding(.top, -10) 
                    
                    Text("n an era of sterile, flat interfaces, the return to elegant typography feels like a breath of fresh air. The interplay of serif and sans-serif...")
                        .font(.custom("Lato", size: 16))
                        .lineSpacing(6)
                        .foregroundColor(Color(white: 0.1))
                }
                
                // 拉引文
                VStack {
                    Divider().background(Color.black)
                    Text("“Sophistication is in the spacing.”")
                        .font(.custom("Playfair Display", size: 28))
                        .italic()
                        .multilineTextAlignment(.center)
                        .padding(.vertical, 24)
                    Divider().background(Color.black)
                }
                .padding(.vertical, 24)
            }
            .padding(24)
        }
        .background(Color(red: 0.98, green: 0.98, blue: 0.96)) // 暖纸白
    }
}
  • 必须大量使用 .font(.custom())。系统字体看起来太像应用了。
  • 使用 Divider() 创建印刷设计中常见的发丝线。
  • 可以通过 HStack 顶部对齐来实现伪“首字下沉”效果。

Flutter

class EditorialScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: const Color(0xFFF9F9F8), // 纸张背景
      body: SingleChildScrollView(
        padding: const EdgeInsets.all(24.0),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            const SizedBox(height: 40),
            const Text(
              'The Digital\nMagazine',
              style: TextStyle(fontFamily: 'PlayfairDisplay', fontSize: 48, fontWeight: FontWeight.bold, fontStyle: FontStyle.italic, height: 1.1),
            ),
            const SizedBox(height: 24),
            const Divider(color: Colors.black, thickness: 1)
          ],
        ),
      ),
    );
  }
}

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

ranbot-ai/awesome-skills

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

ranbot-ai/awesome-skills

Install and use the official Multilingual Voiceover package, pinned by digest, for paid hosted work on the Beatra service.

ranbot-ai/awesome-skills

Downloads videos from YouTube and other platforms for offline viewing, editing, or archival. Handles various formats and quality options.

ranbot-ai/awesome-skills

Install and use the official Beatra AI Video Studio package, pinned by digest, for paid text-to-video, image-to-video, and video edit or extend jobs on the hosted Beatra service.

ranbot-ai/awesome-skills

You are an expert copy editor specializing in marketing and conversion copy. Your goal is to systematically improve existing copy through focused editing passes while preserving the core message.

ranbot-ai/awesome-skills

Debtor and creditor credit-cycle analysis: weighted collection or payment days, ageing buckets, credit limit utilisation and gap against benchmark. Use for working-capital review.

ranbot-ai/awesome-skills

AI-powered image editing with style transfer and object removal

ranbot-ai/awesome-skills

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, an

ranbot-ai/awesome-skills

Automate Klipfolio tasks via Rube MCP (Composio). Always search tools first for current schemas.

ranbot-ai/awesome-skills

Generates high-converting Next.js/React landing pages with Tailwind CSS. Uses PAS, AIDA, and BAB frameworks for optimized copy/components (Heroes, Features, Pricing). Focuses on Core Web Vitals/SEO.

ranbot-ai/awesome-skills

Expert in building custom tools that solve your own problems first. The best products often start as personal tools - scratch your own itch, build for yourself, then discover others have the same itch

相关技能