Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xD0",
"green" : "0xFA",
"red" : "0xE9"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x01",
"green" : "0x9F",
"red" : "0x5F"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Comment on lines +1 to +20

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

텍스트 사용 시 접근성 대비 기준 확인

Green500는 전경색(텍스트/아이콘) 용도로 쓰일 수 있는 채도/명도입니다. 라이트/다크 배경 각각에서 WCAG 대비(AA/AAA) 충족 여부를 확인해 주세요. 필요 시 다크 모드 변형 추가를 고려하세요.

간단 대비 체크:


🏁 Script executed:

#!/bin/bash
python - <<'PY'
def srgb_to_lin(c): c/=255; return c/12.92 if c<=0.04045*255 else ((c/255+0.055)/1.055)**2.4
def L(r,g,b): 
    rL,gL,bL=map(srgb_to_lin,[r,g,b]); return 0.2126*rL+0.7152*gL+0.0722*bL
def contrast(fg,bg):
    L1,L2=sorted([L(*fg),L(*bg)],reverse=True); return (L1+0.05)/(L2+0.05)
green500=(0x5F,0x9F,0x01)
for bg in ((255,255,255),(0,0,0)):
    print("vs", "white" if bg==(255,255,255) else "black", ":", round(contrast(green500,bg),2))
PY

Length of output: 31


대응 필요 — Green500(0x5F,0x9F,0x01) 전경색 사용 불가

화이트 대비 1.41, 블랙 대비 1.81로 WCAG AA(정상 텍스트 4.5:1) 미충족.

위치: Projects/Presentation/Resources/Colors.xcassets/Green/Green500.colorset/Contents.json

조치: 라이트/다크별 전용 변형을 추가하거나 색상(밝기/채도)을 조정해 각 모드에서 대비 ≥4.5(정상 텍스트) / ≥3.0(큰 텍스트) 확보 후 재검증.

🤖 Prompt for AI Agents
Projects/Presentation/Resources/Colors.xcassets/Green/Green500.colorset/Contents.json
lines 1-20: Green500 (R:0x5F,G:0x9F,B:0x01) fails WCAG contrast (white 1.41,
black 1.81) and cannot be used as foreground; update the asset to provide either
separate light/dark variants or a modified color with sufficient contrast.
Specifically, add appearance-specific color entries (appearance: "luminosity" or
separate "light" and "dark" color dictionaries) or adjust the
RGB/brightness/saturation for each appearance so the computed contrast ratio is
≥4.5:1 for normal text (or ≥3.0:1 for large text), then replace the current
single color entry with those variants in Contents.json and re-run contrast
verification.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xF6",
"green" : "0xF3",
"red" : "0xE2"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x91",
"green" : "0xA7",
"red" : "0x25"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Comment on lines +1 to +20

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

토큰-자산 이름 동기화와 대비 확인

디자인시스템 토큰(mint500)과 자산 이름(Mint500) 매칭을 확인해 주세요. 또한 전경색으로 사용 시 라이트/다크 배경 대비 기준 충족을 점검하는 것이 좋습니다.

빠른 확인:


🏁 Script executed:

#!/bin/bash
# 토큰/이름 사용처 스캔
rg -nP 'Mint500|mint500' -S -C2
# 대비 체크
python - <<'PY'
def srgb_to_lin(c): c/=255; return c/12.92 if c<=0.04045*255 else ((c/255+0.055)/1.055)**2.4
def L(r,g,b): 
    rL,gL,bL=map(srgb_to_lin,[r,g,b]); return 0.2126*rL+0.7152*gL+0.0722*bL
def contrast(fg,bg):
    L1,L2=sorted([L(*fg),L(*bg)],reverse=True); return (L1+0.05)/(L2+0.05)
mint500=(0x25,0xA7,0x91)
for bg in ((255,255,255),(0,0,0)):
    print("vs", "white" if bg==(255,255,255) else "black", ":", round(contrast(mint500,bg),2))
PY

Length of output: 1141


Mint500 토큰↔자산 이름 일치 확인 — 대비 불충분, 수정 필요

  • 매핑: Projects/Presentation/Sources/Common/DesignSystem/BitnagilColor.swift:71 에서 mint500 → UIColor(named: "Mint500") 정의, 사용처: Projects/Presentation/Sources/EmotionRegister/Model/Emotion.swift:101.
  • 대비: 흰색 대비 1.39, 검정색 대비 1.84 — 일반 텍스트용 WCAG AA(≥4.5:1) 미달. 텍스트 전경색으로 사용 불가; 색상 조정 또는 사용 용도(아이콘/배경/보조색 등) 변경 필요.
🤖 Prompt for AI Agents
Projects/Presentation/Resources/Colors.xcassets/Mint/Mint500.colorset/Contents.json
(lines 1-20): the asset currently named/defined as Mint500 has RGB components
that produce insufficient contrast (white 1.39, black 1.84) and thus cannot be
used for foreground text; either (A) change the asset color components to a
darker or lighter value that achieves a WCAG AA contrast ratio ≥4.5:1 against
the intended foreground (or against white/black if used dynamically), or (B)
restrict its usage to non-text roles (icons, backgrounds, accents) and update
any documentation/comments to reflect that; if you choose to rename the asset to
match the token used in code, ensure the asset filename and the UIColor(named:
"...") key in
Projects/Presentation/Sources/Common/DesignSystem/BitnagilColor.swift (line ~71)
are identical (case-sensitive) and update
Projects/Presentation/Sources/EmotionRegister/Model/Emotion.swift usage if
needed.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xFF",
"green" : "0xEC",
"red" : "0xEE"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xD0",
"green" : "0x2B",
"red" : "0x69"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xE0",
"green" : "0xE0",
"red" : "0xFE"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x50",
"green" : "0x51",
"red" : "0xFF"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "emotion_background_graphic@1x.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "emotion_background_graphic@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "emotion_background_graphic@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "ground_graphic@1x.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "ground_graphic@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "ground_graphic@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "fomo_hand_graphic@1x.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "fomo_hand_graphic@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "fomo_hand_graphic@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "fomo_thumb_graphic@1x.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "fomo_thumb_graphic@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "fomo_thumb_graphic@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "marblePomo_graphic@1x.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "marblePomo_graphic@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "marblePomo_graphic@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "marble_gray_graphic@1x.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "marble_gray_graphic@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "marble_gray_graphic@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "marble_green_graphic@1x.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "marble_green_graphic@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "marble_green_graphic@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "marble_mint_graphic@1x.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "marble_mint_graphic@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "marble_mint_graphic@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading