Skip to content
Back to skills

2026 09 05 Sonnet

ASecurity

```css :root { --bg-page: #ffffff; --bg-card: #ffffff; --border-card: rgba(0, 0, 0, 0.08); --shadow-card: 0 1px 1px rgba(17, 17, 17, 0.04), 0 2px 4px rgba(17, 17, 17, 0.04), 0 4px 24px rgba(17, 17, 17, 0.06); } .dark { /* dark mode is a remap, not an inversion — never pure #000/#fff */ --bg-page: #131f24; --bg-card: #1b2930; /* elevated surface, one step lighter than the ground */ --border-card: rgba(255, 255, 255, 0.09); --shadow-card: 0 0 0 1px var(--border-card); /* shad...

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agents

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 15, 2026

npx -y skills add AgentsORG/design-engineering --skill 2026-09-05-sonnet --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2026 09 05 Sonnet?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2026 09 05 Sonnet
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentsorg-2026-09-05-sonnet-80135d5d/badge)](https://www.skillsdirectory.com/skills/agentsorg-2026-09-05-sonnet-80135d5d)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Repair: cards disappear in dark mode

```css
:root {
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --border-card: rgba(0, 0, 0, 0.08);
  --shadow-card:
    0 1px 1px rgba(17, 17, 17, 0.04),
    0 2px 4px rgba(17, 17, 17, 0.04),
    0 4px 24px rgba(17, 17, 17, 0.06);
}

.dark {
  /* dark mode is a remap, not an inversion — never pure #000/#fff */
  --bg-page: #131f24;
  --bg-card: #1b2930;                    /* elevated surface, one step lighter than the ground */
  --border-card: rgba(255, 255, 255, 0.09);
  --shadow-card: 0 0 0 1px var(--border-card); /* shadows have nothing to fall on in the dark; a hairline ring does the job */
}

body {
  background: var(--bg-page);
}

.card {
  background: var(--bg-card);   /* was missing entirely — card had no surface color of its own */
  box-shadow: var(--shadow-card);
  border-radius: 16px;
  transition: box-shadow 150ms ease-out;
}
```

## Rationale

The card had two compounding bugs, not one: it never declared its own `background`, so in dark mode it inherited the same color as the page and had nothing to visually separate it; and its only separation cue was a `rgba(0,0,0,0.08)` shadow, which is a black-on-black shadow once the page background is also near-black — literally invisible. `.dark { background: #000 }` made both failures total. The fix gives `.card` an explicit elevated surface token (`--bg-card`, one step lighter than the page in dark mode) per [[depth-and-nesting]]'s "themes flip variables, not classes" rule, and swaps the shadow token for a low-opacity white ring in dark mode, since "shadows vanish on dark; a ring does the job" — the same pairing [[shadows-whisper]] specifies for dark-mode elevation. The background itself moves off pure `#000` per [[dark-mode]] ("the single most common dark mode mistake") and, since this install's `pov.md` hard-overrides the exact value ("the dark ground is `#131F24`... never `#000`/`#FFF`"), that token is used rather than the generic `#18181b`/`#1a1a1a` default.

Files in this skill

  • REPORT.md1.3 KB
  • edit-dropdown-01.baseline.md1.2 KB
  • edit-dropdown-01.skill.md2.2 KB
  • edit-hover-01.baseline.md741 B
  • edit-hover-01.skill.md2.6 KB
  • gen-form-01.baseline.md11.2 KB
  • gen-form-01.skill.md16.2 KB
  • gen-modal-01.baseline.md7.2 KB
  • gen-modal-01.skill.md10.7 KB
  • gen-send-sound-01.baseline.md10.4 KB
  • gen-send-sound-01.skill.md10.5 KB
  • gen-toolbar-01.baseline.md5.2 KB
  • gen-toolbar-01.skill.md12.2 KB
  • repair-darkmode-01.baseline.md1.1 KB
  • repair-darkmode-01.skill.md2 KB
  • repair-focus-01.baseline.md1.7 KB
  • repair-focus-01.skill.md2.9 KB
  • repair-input-01.baseline.md1003 B
  • repair-input-01.skill.md1.7 KB
  • repair-spinner-01.baseline.md1.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.