PixelPilot: Instructions file for GitHub Copilot

vscode/.github/instructions/uiux-tokens.instructions.md

PixelPilot uiux-tokens.instructions.md is an instructions file for GitHub Copilot from dev-lou/PixelPilot. It costs 5,914 tokens per session, scanned A, original, MIT.

A shared system of named values for colors, spacing, fonts, shadows, and animation settings in an interface. These values are stored as CSS variables so designs stay consistent.

In plain words
What is it for?
Use it to define brand styles and apply consistent design rules across pages and components.
Why use it?
It prevents each component from choosing its own visual values and makes themes and global design changes easier to manage.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is dev-lou/PixelPilot's own configuration. It tells GitHub Copilot how to work on PixelPilot itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything PixelPilot configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dev-lou/PixelPilot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dev-lou/PixelPilot/main/vscode/.github/instructions/uiux-tokens.instructions.md
Clone the repo
git clone --depth 1 https://github.com/dev-lou/PixelPilot

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for PixelPilot uiux-tokens.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dev-lou/pixelpilot/uiux-tokens/github.svg)](https://agentmods.dev/instructions/dev-lou/pixelpilot/uiux-tokens)
Your own site
<a href="https://agentmods.dev/instructions/dev-lou/pixelpilot/uiux-tokens"><img src="https://agentmods.dev/badge/instructions/dev-lou/pixelpilot/uiux-tokens/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for PixelPilot uiux-tokens.instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dev-lou/pixelpilot/uiux-tokens"><img src="https://agentmods.dev/badge/instructions/dev-lou/pixelpilot/uiux-tokens.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,914 This file is loaded in full into every session.
When invoked 5,914 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.05914 $0.05914
Opus 5.5 $0.02366 $0.02366
Sonnet 5.5 $0.01183 $0.01183
Haiku 4.5 $0.00591 $0.00591

Measured 2mo ago against content hash ee2153d1cb33, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

PixelPilot uiux-tokens.instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

vscode/.github/instructions/uiux-tokens.instructions.md · 450 lines

How it starts

The opening of the file, as written. The whole thing — 450 lines — stays where its author put it; the contents beside it link to each section on GitHub.

UI/UX Tokens & Design System

Brand token system, 3-tier token architecture (Figma-aligned), CSS variables, gradient rules, font pairings, shadow/elevation tokens, animation tokens.


TOKEN ARCHITECTURE — 3 Tiers (Figma-aligned, W3C standard)

Based on Figma Variables best practice: Primitive → Semantic → Component. Only semantic tokens go in components. Never use primitives directly in UI.

Tier 1 — PRIMITIVE (raw values, never applied directly)
  --primitive-blue-500: #3B82F6
  --primitive-space-4:  16px

Tier 2 — SEMANTIC (how/where to use — these are your CSS vars)
  --accent:   var(--primitive-blue-500)   → "the primary action color"
  --space-4:  var(--primitive-space-4)    → "standard spacing unit"

Tier 3 — COMPONENT (optional, large teams / complex systems)
  --btn-bg:         var(--accent)
  --btn-bg-hover:   color-mix(in srgb, var(--accent) 85%, black)

For most projects: Tier 1 + Tier 2 is enough. Add Tier 3 only when the same semantic token is used differently in many components.


STEP 1 — Brand Token System (CONSISTENCY ACROSS ALL PAGES)

This is the #1 consistency rule. Define ALL tokens once in :root / a global CSS file / theme provider. Import it on every page. Never redefine brand colors inline.

Token Architecture

/* ================================================
   BRAND TOKEN FILE — tokens.css (import everywhere)
   One file. All pages. Never override.
   ================================================ */

:root {
  /* FONTS — set once, use everywhere */
  --font-display: 'YOUR_DISPLAY_FONT', serif;
  --font-body:    'YOUR_BODY_FONT', sans-serif;
  --font-mono:    'YOUR_MONO_FONT', monospace;

  /* TYPE SCALE — never use raw px in components */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-hero: clamp(3rem, 8vw, 8rem);

  /* SPACING — 8px grid, never use arbitrary values */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;
  --space-4: 16px;  --space-6: 24px;  --space-8: 32px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px;
  --space-24: 96px; --space-30: 120px;--space-40: 160px;

  /* RADIUS — set per design language, never change per-page */
  --radius-sm: Xpx;  /* set from table below */
  --radius-md: Xpx;
  --radius-lg: Xpx;
  --radius-full: 9999px;

  /* EASING */
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sharp:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-luxury:  cubic-bezier(0.25, 0.1, 0, 1);

  /* LAYOUT */
  --container-max:    1280px; /* set per language */
  --container-gutter: 24px;   /* set per language, responsive */
  --section-space-sm: 48px;   /* mobile */
  --section-space-md: 64px;   /* tablet */
  --section-space-lg: 96px;   /* desktop */

  /* TRANSITIONS */
  --transition-fast:   150ms var(--ease-sharp);
  --transition-base:   250ms var(--ease-out);
  --transition-slow:   400ms var(--ease-luxury);
  --transition-spring: 350ms var(--ease-spring);

  /* MICRO-INTERACTION TOKENS */
  --transition-micro:    100ms ease;
  --transition-tactile:  250ms cubic-bezier(0.2, 0.9, 0.4, 1.1);
  --transition-reveal:   600ms var(--ease-out);

  /* ANIMATION DURATION TOKENS */
  --duration-instant:  100ms;
  --duration-fast:     200ms;
  --duration-base:     350ms;
  --duration-slow:     600ms;
  --duration-lazy:     900ms;

  /* ELEVATION (shadow) TOKENS — values set per language below */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.18), 0 8px 16px rgba(0,0,0,0.08);
  --shadow-inner: inset 0 2px 8px rgba(0,0,0,0.08);
  --shadow-none:  none;

  /* THIRD-PARTY BRAND COLORS (v10.1) — use for social share, integrations */
  --brand-twitter:          #1DA1F2;
  --brand-twitter-hover:    #1a8cd8;
  --brand-linkedin:         #0A66C2;
  --brand-linkedin-hover:   #095196;
  --brand-facebook:         #1877F2;
  --brand-facebook-hover:   #166fe5;
  --brand-whatsapp:         #25D366;
  --brand-whatsapp-hover:   #22c35e;
  --brand-youtube:          #FF0000;
  --brand-youtube-hover:    #cc0000;
  --brand-instagram:        #E4405F;
  --brand-instagram-hover:  #d62e4c;
  --brand-github:           #181717;
  --brand-github-hover:     #333333;
  --brand-discord:          #5865F2;
  --brand-discord-hover:    #4752c4;
}

/* THEME COLORS — both modes, always together */
[data-theme="light"] {
  --bg:          #XXXXXX;  /* fill from table below */
  --surface:     #XXXXXX;
  --surface-up:  #XXXXXX;
  --text:        #XXXXXX;
  --text-2:      #XXXXXX;
  --muted:       #XXXXXX;
  --border:      rgba(X,X,X,0.XX);
  --accent:      #XXXXXX;
  --accent-h:    #XXXXXX;  /* hover state */
  --overlay:     rgba(X,X,X,0.XX);
  --gradient:    /* set from gradient table below */;
}
[data-theme="dark"] { /* same tokens, dark values */ }

Read the full file on GitHub · 450 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 450 lines · 5,914 tokens per session scan A ee2153d1cb33

Subscribe to this mod's changes

PixelPilot uiux-tokens.instructions.md is an instructions file published in the GitHub repository dev-lou/PixelPilot (2 stars, last pushed 7mo ago), licensed MIT. It adds 5,914 tokens to every session, about $0.0237 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

PixelPilot uiux-tokens.instructions.md compared with instructions from other repositories

PixelPilot uiux-tokens.instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
PixelPilot uiux-tokens.instructions.mddev-lou/PixelPilotInstructions file27mo agoMITA5,914GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode