typography-first – skill Thiết kế & UI cho agent AI
Hướng dẫn triển khai Typography First Design cho Web và App. Kích hoạt khi người dùng muốn chữ là yếu tố hình ảnh chính, với giao diện chrome tối giản.
Cài skill typography-first bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/typography-first-8466b.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /typography-first – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/typography-first-8466b.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $typography-first – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/typography-first-8466b.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /typography-first – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/typography-first-8466b.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /typography-first – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Typography First Design
> "The words are the interface. No distractions, just beautiful text."
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. Hyper-Sized Typography: The main headline is so large it becomes an abstract graphic element.
2. Minimal UI Chroming: Buttons and navigation may be visually text-only, but retain semantic controls, usable targets and visible focus.
3. Kinetic Typography: Text that moves, scrolls, or reacts to the user's cursor.
Visual DNA
- Colors: Extreme high contrast. Pure black and white, or a very dark background with a single neon accent color. Midnight Luxury works well.
- Typography: Display fonts with extreme character. Try
Oswald,Anton, orBebas Neuefor impact, or a massive serif. - Layout: Often centers the massive text perfectly in the viewport, cutting off at the edges.
Web Implementation
- Rely on
vwandvhunits for font sizing so the text perfectly fills the screen. - CSS Example:
body {
background-color: #0A0A0A;
color: #F5F5F0;
overflow-x: hidden;
margin: 0;
}
.hero-type {
font-family: 'Anton', sans-serif;
font-size: 25vw; /* Fills the width of the screen */
text-transform: uppercase;
line-height: 0.8;
white-space: nowrap;
/* Outline effect */
color: transparent;
-webkit-text-stroke: 2px #F5F5F0;
transition: color 0.3s;
}
.hero-type:hover {
color: var(--cta-highlight, #F5F5F0);
-webkit-text-stroke: 0;
}
.nav-text-btn {
background: none;
border: none;
color: #F5F5F0;
font-size: 2rem;
font-family: 'Helvetica Neue', sans-serif;
text-decoration: underline;
text-underline-offset: 8px;
cursor: pointer;
}App Implementation
SwiftUI
struct TypographyFirstView: View {
var body: some View {
ZStack {
Color(hex: "0A0A0A").ignoresSafeArea()
VStack {
// Massive Typography Bleeding Off Edge
Text("THE WORDS ARE THE INTERFACE")
.font(.custom("Anton", size: 200)) // Absurdly large
.foregroundColor(Color(hex: "F5F5F0"))
.lineLimit(1)
.fixedSize(horizontal: true, vertical: false) // Force no wrapping
.minimumScaleFactor(1.0) // Prevent auto-shrinking
// Outlined variant
Text("NO CHROMING")
.font(.custom("Anton", size: 150))
.foregroundColor(.clear)
.overlay(
Text("NO CHROMING")
.font(.custom("Anton", size: 150))
.foregroundColor(Color(hex: "0A0A0A"))
// Hack for text stroke in SwiftUI
.shadow(color: Color(hex: "F5F5F0"), radius: 1)
)
.lineLimit(1)
.fixedSize()
}
.frame(maxWidth: .infinity, alignment: .leading)
.padding(.leading, -20) // Intentionally cut off
}
}
}- Use
.fixedSize(horizontal: true, vertical: false)and.lineLimit(1)to force massive fonts to bleed off the edge of the screen rather than wrapping into a paragraph. - Native text-stroke is difficult in SwiftUI; overlapping a masked text or using thin shadows is the common workaround.
Flutter
class TypographyFirstScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: const Color(0xFF0A0A0A),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
// Auto-scaling hero text
FittedBox(
fit: BoxFit.cover,
child: Text(
'THE WORDS ARE',
style: TextStyle(fontFamily: 'Anton', color: const Color(0xFFF5F5F0), height: 0.8),
),
),
// Outlined text
FittedBox(
fit: BoxFit.cover,
child: Stack(
children: [
// Outline
Text(
'THE INTERFACE',
style: TextStyle(
fontFamily: 'Anton', height: 0.8,
foreground: Paint()..style = PaintingStyle.stroke..strokeWidth = 2..color = const Color(0xFFF5F5F0),
),
),
// Solid fill (transparent)
const Text('THE INTERFACE', style: TextStyle(fontFamily: 'Anton', height: 0.8, color: Colors.transparent)),
],
),
),
],
),
),
);
}
}FittedBoxwithBoxFit.coveris your best friend here. It ensures the text takes up the maximum possible width/height regardless of the device screen size.- Flutter makes text outlines easy by using
foreground: Paint()..style = PaintingStyle.strokein theTextStyle.
React Native
const TypographyFirstScreen = () => {
const { width } = useWindowDimensions(); // Update on resize/orientation changes.
return (
<View style={{ flex: 1, backgroundColor: '#0A0A0A', justifyContent: 'center' }}>
{/* Massive Text */}
<Text
numberOfLines={1}
style={{ fontFamily: 'Anton-Regular', fontSize: width * 0.4, color: '#F5F5F0', lineHeight: width * 0.35, marginLeft: -20 }}
>
WORDS ARE
</Text>
{/* Outlined Text (Not supported natively in standard React Native Text, requires SVG or shadows) */}
<Text
numberOfLines={1}
style={{
fontFamily: 'Anton-Regular', fontSize: width * 0.35, color: '#0A0A0A', lineHeight: width * 0.3,
textShadowColor: '#F5F5F0', textShadowOffset: {width: -1, height: 1}, textShadowRadius: 1
}}
>
INTERFACE
</Text>
{/* Typography Button */}
<TouchableOpacity style={{ marginTop: 40, alignSelf: 'center' }}>
<Text style={{ color: '#F5F5F0', fontSize: 24, textDecorationLine: 'underline' }}>
Explore Now
</Text>
</TouchableOpacity>
</View>
);
};- Use
useWindowDimensions().widthto calculate extreme font sizes dynamically (e.g.,fontSize: width * 0.4). - Use
numberOfLines={1}and negative margins to allow the text to act as a graphic element bleeding off the screen.
Jetpack Compose
@Composable
fun TypographyFirstScreen() {
Column(
modifier = Modifier.fillMaxSize().background(Color(0xFF0A0A0A)),
verticalArrangement = Arrangement.Center
) {
// Massive Text
Text(
text = "THE WORDS ARE",
color = Color(0xFFF5F5F0),
fontSize = 120.sp, // Absurd size
fontFamily = FontFamily.SansSerif, // Replace with Anton
lineHeight = 100.sp,
softWrap = false, // Force bleed off edge
modifier = Modifier.offset(x = (-20).dp)
)
// Outlined Text
Text(
text = "THE INTERFACE",
fontSize = 100.sp,
fontFamily = FontFamily.SansSerif,
lineHeight = 90.sp,
softWrap = false,
style = TextStyle(
drawStyle = Stroke(
miter = 10f,
width = 2f,
join = StrokeJoin.Round
)
),
color = Color(0xFFF5F5F0) // The stroke color
)
}
}- Set
softWrap = falseonTextto prevent it from wrapping and ruining the massive headline aesthetic. - Compose fully supports text outlines natively using
style = TextStyle(drawStyle = Stroke(...)).
Do's and Don'ts
- DO: Mix filled text and outlined text (using
-webkit-text-stroke) for visual interest. - DON'T: Wrap the text in cards or containers. Let it bleed into the background.
Limitations
- This is a styling reference and does not replace environment-specific validation, accessibility testing, or expert review.
- Ensure appropriate contrast ratios and responsive behaviors are verified separately.
Oversized clipped headlines are decorative studies. Keep essential copy complete, wrappable and scalable; provide an uncut accessible text equivalent. Thin shadow halos approximate an outline and are not true glyph strokes.
Skill liên quan
- ui-a11y – Kiểm tra component hoặc trang để tìm lỗi khả năng truy cập (accessibility) và sửa chúng.
- ui-component – Tạo component UI mới theo quy ước thiết kế của StyleSeed.
- ui-from-screenshot – Chuyển ảnh chụp màn hình hoặc mockup thành giao diện tương ứng bằng chính các component…
- ui-lint – Lint tự động nhanh — phát hiện các vi phạm design system phổ biến chỉ trong vài giây.
- ui-motion – Áp dụng một chuyển động StyleSeed có tên cho component — hoặc một trong 5 seed tính cách…
- ui-page – Khởi tạo khung trang/màn hình mobile mới theo các pattern layout của StyleSeed.
- ui-pattern – Tạo pattern UI ghép sẵn (bố cục card, danh sách, khối form, grid, v.v.) từ các primitive…
- ui-review – Review code UI về mức tuân thủ design system, khả năng truy cập và các thực hành tốt nhất.