Chuyển đến nội dung
Skillpedia
Giao diện (UI/UX)48k · #4401

high-contrast

Skill này làm gì

Hướng dẫn này giải thích cách tạo thiết kế tương phản cao, lý tưởng cho sự rõ ràng và khả năng tiếp cận tối đa. Nó dùng màu mạnh và viền rõ để mọi thứ dễ đọc và dễ dùng.

Khi nào nên dùng

  • ✓Khi bạn cần website hoặc ứng dụng dễ đọc tối đa.
  • ✓Khi bạn muốn đảm bảo người khiếm thị vẫn dùng được sản phẩm của bạn.
  • ✓Khi bạn muốn một phong cách thị giác mạnh và trực diện.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/design-it/high-contrast/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo thiết kế website tương phản cao cho một ứng dụng đọc sách.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Hệ thống dùng các tổ hợp màu có độ chênh lệch lớn (như đen và trắng, hoặc màu rực rỡ) và phông chữ lớn, rõ ràng. Nó cũng thêm viền nhìn thấy được cho nút và hộp để chúng nổi bật.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

High Contrast Design

"Maximum legibility. Stark, powerful, and universally accessible."

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. WCAG AAA Compliance: Every color pairing must exceed a 7:1 contrast ratio.
  2. Clear Boundaries: Interactive elements have highly visible borders and focus states.
  3. No Ambiguity: Avoid subtle greys, low-opacity text, or purely decorative elements that distract from the core content.

Visual DNA

  • Colors: Industrial Chic (Black and White) or Modern Editorial. Often uses a single, highly luminous accent color (like pure Yellow #FFFF00 or Cyan #00FFFF) against black.
  • Typography: Highly legible, robust sans-serifs (Atkinson Hyperlegible, Inter, Roboto). Large base font sizes (18px+).
  • Styling: Solid 2px borders around cards and buttons. Avoid drop shadows as they reduce edge clarity.

Web Implementation

  • Focus heavily on focus states (:focus-visible) and clear active states.
  • CSS Example:
:root {
  --hc-bg: #ffffff;
  --hc-text: #000000;
  --hc-accent: #0000FF; /* Pure blue */
  --hc-focus: #FF00FF; /* High visibility focus ring */
}

body {
  background-color: var(--hc-bg);
  color: var(--hc-text);
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: 18px; /* Larger default */
}

.hc-card {
  background-color: #ffffff;
  border: 3px solid #000000; /* Unmissable boundary */
  padding: 32px;
  border-radius: 8px;
}

.hc-btn {
  background-color: var(--hc-accent);
  color: #ffffff;
  border: 3px solid transparent; /* Reserve space for focus */
  border-radius: 4px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Crucial for high contrast / accessibility */
.hc-btn:focus-visible, a:focus-visible {
  outline: 4px solid var(--hc-focus);
  outline-offset: 4px;
}

a {
  color: var(--hc-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

App Implementation

SwiftUI

struct HighContrastView: View {
    var body: some View {
        VStack(spacing: 32) {
            // High Contrast Card
            VStack(alignment: .leading, spacing: 16) {
                Text("Maximum Legibility")
                    .font(.custom("Atkinson Hyperlegible", size: 24))
                    .fontWeight(.bold)
                    .foregroundColor(.black)
                
                Text("Content is king. Borders are stark. Contrast ratios exceed 7:1.")
                    .font(.custom("Atkinson Hyperlegible", size: 18))
                    .foregroundColor(.black)
            }
            .padding(32)
            .background(Color.white)
            .overlay(
                RoundedRectangle(cornerRadius: 8)
                    .stroke(Color.black, lineWidth: 3)
            )
            
            // High Contrast Action Button
            Button(action: {}) {
                Text("CONFIRM ACTION")
                    .font(.custom("Atkinson Hyperlegible", size: 18))
                    .fontWeight(.black)
                    .foregroundColor(.white)
                    .padding(.vertical, 16)
                    .padding(.horizontal, 32)
                    .background(Color.blue) // Must be a high-contrast blue, e.g., #0000FF
                    .cornerRadius(4)
            }
        }
        .padding()
        .frame(maxWidth: .infinity, maxHeight: .infinity)
        .background(Color.white)
    }
}
  • Rely on thick .stroke(Color.black, lineWidth: 3) overlays.
  • Ensure text is pure .black on pure .white. Do not use .secondary colors if they drop below a 7:1 contrast ratio.
  • Use fonts specifically designed for legibility, like Atkinson Hyperlegible.

Flutter

class HighContrastScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      body: Center(
        child: Padding(
          padding: const EdgeInsets.all(24.0),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              // High Contrast Card
              Container(
                width: double.infinity,
                padding: const EdgeInsets.all(32),
                decoration: BoxDecoration(
                  color: Colors.white,

…
Câu hỏi thường gặp

Tuân thủ WCAG AAA là gì?

Đây là tiêu chuẩn quốc tế đảm bảo website và ứng dụng tiếp cận được với số lượng người tối đa, kể cả người khiếm thị. Độ tương phản cao là một phần quan trọng của tiêu chuẩn này.

Vì sao tránh bóng đổ và màu xám?

Bóng đổ và màu xám có thể giảm sự khác biệt giữa các phần tử, khiến thiết kế kém rõ ràng và khó đọc, đặc biệt với người có thị lực yếu.

Nên dùng những màu nào?

Đen và trắng là nền tảng. Một màu sáng (như vàng tươi hoặc xanh lơ) có thể dùng để làm nổi bật các nút hoặc liên kết quan trọng, luôn đảm bảo tổ hợp màu có độ tương phản rất cao.

Chi tiết

Mô tả gốc của tác giả

Web and App implementation guide for High Contrast Design. Trigger when user wants accessibility-focused design, extreme legibility, or stark visual impact.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#4401
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự