msei99/pbgui/pbgui-css-tokens

Claude Code and agent skill by msei99/pbgui

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

PBGui CSS design tokens for FastAPI frontend pages. Use when writing or reviewing CSS in frontend/*.html files, or when migrating hardcoded px/rem font sizes to var(--fs-*) tokens. Covers font sizes (XS–XL), spacing (--sp-*), input/button heights. Trigger: CSS, font-size, spacing, design tokens, --fs-, --sp-, px, rem, frontend HTML.

Install

npx vskill@latest install msei99/pbgui/pbgui-css-tokens

SKILL.md

PBGui CSS Design Tokens

When to Use

  • Writing new CSS for any frontend/*.html page
  • Reviewing/migrating hardcoded px or rem font-size values
  • Adding spacing, padding, gap, margin values to new components
  • Ensuring a new page is consistent with api_keys_editor.html

Token Reference

Typography (6 levels)
TokenSizeUse
--fs-xs11pxTimestamps, status dots, badges, secondary hints, code inside prose
--fs-sm13pxTable headers (uppercase), status lines, labels, TOC items, btn-sm
--fs-base14pxDefault — table cells, inputs, buttons, sidebar buttons, filter fields
--fs-md15pxPanel subtitles, modal titles, close button icon, "All Selected" labels
--fs-lg18pxPage/section headings, primary action buttons (Sync Keys / All)
--fs-xl22pxLarge display headings (rare — empty-state pages, H1 in guide content)
Spacing (4 levels)
TokenSizeUse
--sp-xs4pxTight gaps in compact elements
--sp-sm8pxStandard button padding (horizontal), gaps between inline controls
--sp-md12pxSection spacing, container padding
--sp-lg20pxPanel padding, large outer gaps
Control Heights
TokenSizeUse
--input-h32pxAll text inputs, number inputs, selects
--btn-h32pxAll buttons (same height as inputs)

:root Block (copy verbatim)

css
:root {
--fs-xs: 11px;
--fs-sm: 13px;
--fs-base: 14px;
--fs-md: 15px;
--fs-lg: 18px;
--fs-xl: 22px;
--sp-xs: 4px;
--sp-sm: 8px;
--sp-md: 12px;
--sp-lg: 20px;
--input-h: 32px;
--btn-h: 32px;
}

Migration: Hardcoded → Token

Old valueCorrect token
10px, 11pxvar(--fs-xs)
0.72rem, 0.78rem, 0.8rem, 12px, 13pxvar(--fs-sm)
0.85rem, 0.875rem, 0.9rem, 0.97rem, 14pxvar(--fs-base)
0.95rem, 1rem, 15px, 16pxvar(--fs-md)
1.1rem–1.2rem, 18pxvar(--fs-lg)
1.4rem–1.6rem, 22px–24pxvar(--fs-xl)
4px pad/gapvar(--sp-xs)
8px pad/gapvar(--sp-sm)
12px pad/gapvar(--sp-md)
20px pad/gapvar(--sp-lg)
height: 32px on input/buttonvar(--input-h) / var(--btn-h)

Per-Element Mapping (api_keys_editor.html reference)

ElementToken
.sb-btn sidebar buttons--fs-base
.sb-title "API KEYS" label--fs-sm
.sb-count badge--fs-sm
Table cells (user list, SSH table)--fs-base
Table header (th, uppercase labels)--fs-sm
Filter input--fs-base
input, select--fs-base, height: var(--input-h)
button (.btn)--fs-base, height: var(--btn-h)
.btn-sm--fs-sm
Toast / modal body text--fs-base
Modal title / panel heading--fs-md
Page section heading--fs-lg
Help overlay H1--fs-xl
Help overlay H2--fs-lg
Help overlay H3--fs-md
Help overlay body text--fs-base
Help overlay code--fs-xs
Help TOC items--fs-sm
Search input (#help-search)--fs-sm
Search count / global label--fs-xs

Procedure: Migrating a New Page

  1. Add the :root block (above) inside <style> at the top of the file
  2. Set html, body { font-size: var(--fs-base); }
  3. Search for font-size: in the file and replace each value using the mapping table
  4. Search for padding:, gap:, margin: and replace spacing values using --sp-*
  5. For input, select, button: add height: var(--input-h) / height: var(--btn-h)
  6. Validate: no hardcoded px/rem font-size values should remain (except inside :root)

Notes

  • Source of truth: frontend/api_keys_editor.html :root block (line ~10)
  • --sp-*, --input-h, --btn-h are defined but not yet wired everywhere — wire them as you touch elements
  • No Streamlit pages remain; apply these tokens only to FastAPI-served frontend HTML/CSS.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
157
Repository forks
56
7-day trend score
25

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Jul 2026, 3 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/msei99/pbgui/pbgui-css-tokens/badge)](https://verified-skill.com/skills/msei99/pbgui/pbgui-css-tokens)

Something wrong with this skill or its page? Tell us.