跳到正文
Skillpedia
界面(UI/UX)48k · #4420

tile-design

它能做什么

这份指南介绍如何为网站和应用打造一种视觉风格:使用干净、色彩鲜艳的直角方块来展示信息,方块可以移动或滚动。灵感来自 Windows 的视觉风格。

适用场景

  • ✓想要做出方正的块状元素和鲜艳色彩的设计时。
  • ✓如果你喜欢可以横向滚动以查看更多内容的界面。
  • ✓需要做出现代、数字化风格(如 Windows 8)时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/design-it/tile-design/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/design-it/tile-design/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“创建一个 Windows Metro 风格的开始屏幕设计。”

每周 5 个新技能,1 分钟读完。

工作原理

它的做法是使用没有圆角的方形元素、鲜艳的颜色和深色背景。方块内的信息可以变化,或者屏幕可以水平滚动以显示更多内容。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Tile Design (Metro UI)

"Authentically digital. Clean, sharp squares relying purely on typography and flat color."

When to Use

Use this sub-style when the user's request matches the aesthetic described above. This is a child reference of the design-it skill and is not meant to be triggered directly.

Core Principles

  1. Sharp Corners: Absolutely no border-radius. Everything is a perfect square or sharp rectangle.
  2. Live Data: Tiles flip, scroll, or fade internally to show live updates without the user interacting.
  3. Horizontal Panning: The grid often expands infinitely to the right, encouraging horizontal scrolling.

Visual DNA

  • Colors: High saturation, flat colors. A dark background (pure black) with bright cyan, magenta, orange, and green tiles.
  • Typography: Extremely clean, light sans-serifs (like Segoe UI Light). Text is almost always pure white.
  • Icons: Simple, wireframe, monochromatic glyphs placed centrally or in the corner.

Web Implementation

  • CSS Example:
body {
  background-color: #111;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: auto; /* Horizontal scroll */
}

.tile-group {
  display: grid;
  grid-template-columns: repeat(4, 150px);
  grid-auto-rows: 150px;
  gap: 8px;
  padding: 40px;
}

.tile {
  background-color: #0078D7; /* Classic Windows Blue */
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  
  /* The "tilt" click effect */
  transition: transform 0.1s;
  transform-origin: center;
}

.tile:active {
  transform: scale(0.95);
}

.tile-wide { grid-column: span 2; }
.tile-large { grid-column: span 2; grid-row: span 2; }

/* Live Tile Animation */
.tile-live-content {
  animation: slideUp 5s infinite;
}

@keyframes slideUp {
  0%, 45% { transform: translateY(0); }
  50%, 95% { transform: translateY(-100%); } /* Slides up to reveal next item */
  100% { transform: translateY(0); }
}

App Implementation

SwiftUI

struct TileDesignView: View {
    let rows = [GridItem(.fixed(150), spacing: 8), GridItem(.fixed(150), spacing: 8)]
    
    var body: some View {
        ScrollView(.horizontal, showsIndicators: false) {
            LazyHGrid(rows: rows, spacing: 8) {
                TileView(title: "Mail", color: Color(hex: "0078D7"), icon: "envelope")
                TileView(title: "Photos", color: Color(hex: "00CC6A"), icon: "photo", isLarge: true)
                TileView(title: "Weather", color: Color(hex: "2D7D9A"), icon: "cloud.sun")
                TileView(title: "Calendar", color: Color(hex: "D13438"), icon: "calendar")
            }
            .padding(40)
        }
        .background(Color(hex: "111111").ignoresSafeArea())
    }
}

struct TileView: View {
    let title: String
    let color: Color
    let icon: String
    var isLarge: Bool = false
    
    @State private var isPressed = false
    
    var body: some View {
        VStack(alignment: .leading) {
            Image(systemName: icon)
                .font(.system(size: 32, weight: .light))
                .foregroundColor(.white)
            Spacer()
            Text(title)
                .font(.custom("Segoe UI", size: 16))
                .foregroundColor(.white)
        }
        .padding(16)
        // Sharp corners are mandatory
        .frame(width: isLarge ? 308 : 150, height: isLarge ? 308 : 150, alignment: .leading)
        .background(color)
        .scaleEffect(isPressed ? 0.95 : 1.0)
        .animation(.spring(response: 0.2, dampingFraction: 0.5), value: isPressed)
        .onLongPressGesture(minimumDuration: .infinity, maximumDistance: .infinity, pressing: { pressing in
            isPressed = pressing
        }, perform: {})
    }
}
  • A LazyHGrid inside a horizontal ScrollView perfectly replicates the Windows Phone / Windows 8 start screen.
  • Absolutely NO corner radius.
  • The isPressed state triggering a .scaleEffect(0.95) replicates the physical "tilt" interaction of Metro tiles.

Flutter

class TileDesignScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: const Color(0xFF111111),
      body: SingleChildScrollView(
        scrollDirection: Axis.horizontal,
        padding: const EdgeInsets.all(40),
        child: SizedBox(
          height: 308, // Two rows of 150px + 8px spacing
          child: Wrap(
            direction: Axis.vertical,

…
常见问题

什么是「直角」?

意思是设计中使用的方块和矩形边缘没有弧度,线条完全笔直。

「实时数据」是什么意思?

指的是在方块内自动变化的信息,比如新闻或天气更新,不需要你点击。

为什么屏幕要横向滚动?

这种设计让你可以向右滑动或移动鼠标来查看更多方块和信息,营造出一种无限空间的感觉。

详情

作者的原始描述

Web and App implementation guide for Tile Design. Trigger when user wants Microsoft Metro style, sharp square information units, and horizontal scrolling grids.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4420
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能