From 6a9c2ea5393a4370fb269ee965d4da4b2f675546 Mon Sep 17 00:00:00 2001 From: seonghobae <8172694+seonghobae@users.noreply.github.com> Date: Fri, 3 Jul 2026 14:16:38 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20=EB=B0=9D=EC=9D=80=20?= =?UTF-8?q?=EB=B0=B0=EA=B2=BD=EC=9D=98=20=ED=85=8D=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=83=89=EC=83=81=20=EB=8C=80=EB=B9=84=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ๐Ÿ’ก What: `.dikw-grid span` ์š”์†Œ์˜ ํ…์ŠคํŠธ ์ƒ‰์ƒ์„ `--gold`์—์„œ `--teal`๋กœ ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค. ๐ŸŽฏ Why: ๊ธฐ์กด์˜ `--gold` ์ƒ‰์ƒ์€ ๋ฐ์€ ๋ฐฐ๊ฒฝ(ํฐ์ƒ‰) ์œ„์—์„œ WCAG AA ๋ช…๋„ ๋Œ€๋น„ ๊ธฐ์ค€(4.5:1)์„ ์ถฉ์กฑํ•˜์ง€ ๋ชปํ•˜์—ฌ(๋ช…๋„ ๋Œ€๋น„ ์•ฝ 2.18:1), ์‹œ๋ ฅ์ด ๋‚ฎ๊ฑฐ๋‚˜ ํ™”๋ฉด์„ ๋ณด๊ธฐ ์–ด๋ ค์šด ํ™˜๊ฒฝ์˜ ์‚ฌ์šฉ์ž์—๊ฒŒ ํ…์ŠคํŠธ ๊ฐ€๋…์„ฑ์ด ๋–จ์–ด์ง€๋Š” ์ ‘๊ทผ์„ฑ ๋ฌธ์ œ๊ฐ€ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค. ์ด๋ฅผ ๊ฐœ์„ ํ•˜๊ธฐ ์œ„ํ•ด ๋ช…๋„ ๋Œ€๋น„๊ฐ€ ์ถฉ๋ถ„ํžˆ ๋†’์€ `--teal` ์ƒ‰์ƒ์œผ๋กœ ๋ณ€๊ฒฝํ•˜์—ฌ ์ธ์ง€ ๋ถ€ํ•˜๋ฅผ ์ค„์ด๊ณ  ์ ‘๊ทผ์„ฑ์„ ํ–ฅ์ƒ์‹œ์ผฐ์Šต๋‹ˆ๋‹ค. ๐Ÿ“ธ Before/After: Before: `color: var(--gold);` (๋ช…๋„ ๋Œ€๋น„ ์•ฝ 2.18:1, WCAG AA ์‹คํŒจ) After: `color: var(--teal);` (๋ช…๋„ ๋Œ€๋น„ ๊ธฐ์ค€ ์ถฉ์กฑ) โ™ฟ Accessibility: WCAG 2.1 AA ๊ธฐ์ค€์— ๋ถ€ํ•ฉํ•˜๋„๋ก ํ…์ŠคํŠธ์™€ ๋ฐฐ๊ฒฝ์˜ ๋ช…๋„ ๋Œ€๋น„๋ฅผ ๊ฐœ์„ ํ•˜์—ฌ ํ…์ŠคํŠธ์˜ ๊ฐ€๋…์„ฑ๊ณผ ์Šคํฌ๋ฆฐ ๋ฆฌ๋” ํ™˜๊ฒฝ ์™ธ์˜ ์‹œ๊ฐ์  ์ ‘๊ทผ์„ฑ์„ ๋†’์˜€์Šต๋‹ˆ๋‹ค. --- .Jules/palette.md | 4 ++++ styles.css | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.Jules/palette.md b/.Jules/palette.md index b6a4027..1b7e22b 100644 --- a/.Jules/palette.md +++ b/.Jules/palette.md @@ -9,3 +9,7 @@ ## 2026-06-25 - Fix Header Overlap **Learning:** When using a sticky header, clicking anchor links can cause the target element to scroll under the header, hindering the user experience. **Action:** Use `scroll-padding-top` on the `html` element with the height of the sticky header to ensure anchor links scroll to a position just below the header. + +## 2024-07-03 - Improve color contrast for readability +**Learning:** Using the `--gold` variable for text on white/light backgrounds fails WCAG AA contrast standards (ratio ~2.18:1). +**Action:** Avoid `--gold` on white backgrounds and use higher-contrast alternatives like `--teal` to ensure accessibility and readability. diff --git a/styles.css b/styles.css index 3cca9f9..620abf6 100644 --- a/styles.css +++ b/styles.css @@ -442,7 +442,7 @@ h1 { .dikw-grid span { display: block; margin-bottom: 38px; - color: var(--gold); + color: var(--teal); font-size: 14px; font-weight: 900; }