Back to skills
SKILL.md
187 Fn 92 3ec7bee7
ASecurityCreate theme system with dark (default) and light variants.
- 9 stars
- 0 votes
- 0 copies
- 1 view
- Added May 31, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add tools-only/X-Skills --skill 187-fn-92_3ec7bee7 --agent claude-codeAre you the author of 187 Fn 92 3ec7bee7?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-187-fn-92-3ec7bee7)# fn-9.2 Theme system (dark/light)
## Description
Create theme system with dark (default) and light variants.
### Files
- `src/themes/index.ts` - exports, theme switching
- `src/themes/dark.ts` - dark palette
- `src/themes/light.ts` - light palette
### Color palette (256 colors)
Dark theme from spec:
```typescript
const DARK = {
bg: 'terminal default',
border: 239,
text: 252,
dim: 242,
accent: 81, // electric cyan
success: 114, // muted green
progress: 75, // bright blue
warning: 221, // amber
error: 203, // coral red
selectedBg: 236
};
```
### Theme objects needed
- `TaskListTheme` - for SelectList wrapping
- `MarkdownTheme` - for task detail
- Color functions: `text()`, `dim()`, `accent()`, etc.
### Switching
Export `getTheme(isLight: boolean)` function.
## Acceptance
- [ ] `import { getTheme, DARK, LIGHT } from './themes'` works
- [ ] Theme has all required colors from spec
- [ ] pi-tui compatible theme objects exportable
- [ ] Colors render correctly in terminal (visual check)
## Done summary
- Implemented 256-color palette with dark (default) and light themes
- Added color helper functions: text(), dim(), accent(), success(), progress(), warning(), error(), border()
- Created pi-tui compatible theme objects: SelectListTheme, MarkdownTheme, EditorTheme
- Added getTheme(isLight) switching function
Why:
- Terminal TUI needs consistent theming across all components
- 256-color palette ensures compatibility with most terminals
Verification:
- bun test passes (14 tests)
- bun run lint passes
- TypeScript check passes
## Evidence
- Commits: 55d8d24, 70e05a1
- Tests: bun test
- PRs:Files in this skill
- README.md
- skill.md
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.