PixelPilot uiux-flutter.instructions.md

Instructions for applying the OpenCode UI/UX 2026 design system in Flutter, Google’s framework for building app interfaces. They explain how to turn design tokens such as colors and spacing into Flutter themes and use them across an app.

In plain words
What is it for?
Use it to set up Flutter colors, typography, spacing, navigation, alerts, gestures, and platform-adaptive behavior.
Why use it?
It helps keep the interface consistent and makes light and dark themes easier to manage.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/dev-lou/pixelpilot/uiux-flutter
Clone the repo
git clone --depth 1 https://github.com/dev-lou/PixelPilot

Made for: GitHub Copilot.

Per session 3,595 This file is loaded in full into every session.
When invoked 3,595 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.03595 $0.03595
Opus 5 $0.01798 $0.01798
Sonnet 5 $0.00719 $0.00719
Haiku 4.5 $0.00360 $0.00360

Measured 2d ago against content hash c36290e70800, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

PixelPilot uiux-flutter.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 2d 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-flutter.instructions.md · 490 lines

How it starts

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

OpenCode UI/UX 2026 — Flutter Integration Skill

This skill provides guidelines and best practices for integrating the OpenCode UI/UX 2026 design system within Flutter applications. It covers mapping design tokens to Flutter's ThemeData, implementing dark/light modes, handling navigation, displaying alerts, managing gestures, and adapting to platform-specific behaviors.

1. Design Tokens → ThemeData Mapping

Flutter's ThemeData is the central place to define the visual properties of your application. Mapping OpenCode design tokens (like var(--accent), var(--space-4)) to ThemeData ensures consistency and allows for easy theming.

Manual Mapping

For smaller projects or specific needs, you can manually map design tokens to ThemeData properties.

Step-by-step Instructions
  1. Define a ThemeData object: Create a ThemeData instance and populate its properties (colors, text styles, spacing) using values derived from your design tokens.
  2. Use Theme.of(context): Access these properties throughout your widget tree using Theme.of(context).colorScheme.primary or Theme.of(context).textTheme.bodyMedium.
Code Example
// lib/theme/app_theme.dart
import 'package:flutter/material.dart';

class AppTheme {
  static final Color _primaryColor = Color(0xFF0066FF); // Corresponds to var(--accent)
  static final Color _backgroundColor = Color(0xFFFFFFFF); // Corresponds to var(--bg) light
  static final Color _textColor = Color(0xFF0F1117); // Corresponds to var(--text) light

  static ThemeData lightTheme = ThemeData(
    brightness: Brightness.light,
    primaryColor: _primaryColor,
    colorScheme: ColorScheme.light(
      primary: _primaryColor,
      background: _backgroundColor,
      onBackground: _textColor,
      surface: Color(0xFFF7F8FA), // Corresponds to var(--surface) light
    ),
    textTheme: TextTheme(
      bodyMedium: TextStyle(color: _textColor, fontSize: 16.0), // Corresponds to var(--text-base)
      // Map other text styles
    ),
    // Define spacing using constants or extensions
    // For example, using a custom extension for spacing:
    // extension BuildContextExtension on BuildContext {
    //   double get space1 => 4.0;
    //   double get space2 => 8.0;
    // }
  );

  static ThemeData darkTheme = ThemeData(
    brightness: Brightness.dark,
    primaryColor: Color(0xFF4D8EFF), // Corresponds to var(--accent) dark
    colorScheme: ColorScheme.dark(
      primary: Color(0xFF4D8EFF),
      background: Color(0xFF0A0B0E), // Corresponds to var(--bg) dark
      onBackground: Color(0xFFEDF0F5), // Corresponds to var(--text) dark
      surface: Color(0xFF13151A), // Corresponds to var(--surface) dark
    ),
    textTheme: TextTheme(
      bodyMedium: TextStyle(color: Color(0xFFEDF0F5), fontSize: 16.0),
    ),
  );
}

// Usage in a widget:
// Text(
//   'Hello OpenCode',
//   style: Theme.of(context).textTheme.bodyMedium,
// )
// Container(
//   color: Theme.of(context).colorScheme.primary,
//   padding: EdgeInsets.all(context.space4), // If using custom spacing extension
// )

Read the full file on GitHub · 490 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. 2d ago First seen · 490 lines · 3,595 tokens per session scan A c36290e70800

Subscribe to this mod's changes

PixelPilot uiux-flutter.instructions.md is an instructions file published in the GitHub repository dev-lou/PixelPilot (2 stars, last pushed 4mo ago), licensed MIT. It adds 3,595 tokens to every session, about $0.0180 per session on Opus 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-08-31.

Related

Other instructions, from other repositories

lovable-boilerplate design.instructions.md

Instructions for chihebnabil/lovable-boilerplate, covering design system guidelines, critical design rules, never create, always create and core design philosophy.

chihebnabil/lovable-boilerplate · 4,058 tokens

arai AGENTS.md

Instructions for taniwhaai/arai, covering agents.md — arai, core discipline (non-negotiable), taniwha / subagent rules, work style and tool usage.

taniwhaai/arai · 1,340 tokens

android-harness-kit AGENTS.md

Instructions for rabee-elkholy/android-harness-kit, covering android-harness-kit — agent instructions, environment, delivery gate (do not skip), on-demand specialists and phase boundaries & high-signal chat.

rabee-elkholy/android-harness-kit · 1,006 tokens

flutter-design-engineer AGENTS.md

Instructions for musabekisakov-imj/flutter-design-engineer, a project described as: Agent skills for product-aware, adaptive, accessible, and visually verified Flutter UI design engineering.

musabekisakov-imj/flutter-design-engineer · 283 tokens

ui-ux-design-pro-skill CLAUDE.md

Instructions for saifyxpro/ui-ux-design-pro-skill, covering project overview, cli commands, full design system generation (markdown output), search across all databases (sub-50ms) and audit ui code quality.

saifyxpro/ui-ux-design-pro-skill · 618 tokens

syncai copilot-instructions.md

Instructions for dmtrkzntsv/syncai, covering claude.md, build & run, architecture, lifecycle and identify is the routing decision.

dmtrkzntsv/syncai · 1,229 tokens