agentleFS
ekajaya740ekajaya740/skills/design-system/SKILL.md

design-system

Skill1 starsChanged 56 days agoMITView on GitHub

The design system for workofekajaya.com (Work of Ekajaya) — an Astro 6 + React 19 + Tailwind v4 dark portfolio. Use when building, editing, reviewing, or extending any UI on this site: new sections, components, pages, OG images, or visual polish. Provides the exact tokens, typography roles, section anatomy, component patterns, motion rules, and anti-patterns that keep new work indistinguishable from the existing site.

108 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-engine, playtest-report and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CoralGameSkill

    setup-engine

    Configure the project's game engine and version. Pins the engine in CLAUDE.md, detects knowledge gaps, and populates engine reference docs via WebSearch when the version is beyond the LLM's training data.

    Also in 7 projects that use this

  • CoralGameSkill

    playtest-report

    Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.

    Also in 6 projects that use this

  • cenconq25Skill

    asset-spec

    Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.

    Also in 5 projects that use this

  • cenconq25Skill

    create-control-manifest

    Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.

    Also in 5 projects that use this

  • +3 more from CoralGame
  • +5 more from cenconq25

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 5 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 98 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read this before making aesthetic decisions.

    line 19
  2. Very specific:

    All tokens are declared in the @theme block of src/styles/global.css.

    line 60
  3. Very specific:

    Never pure black (#000) or pure white (#fff).

    line 92
  4. Distinctive:

    Never gray text on a colored background — use a shade of the background instead.

    line 93
  5. Distinctive:

    Never gradient text. Solid fills only.

    line 94
  6. Very specific:

    Add 0.05–0.1 to line-height for light-on-dark body text — light type reads as lighter weight.

    line 151
  7. Very specific:

    Always pair text-balance on headings and text-pretty on body paragraphs.

    line 154
  8. Distinctive:

    Every portfolio section follows the same skeleton.

    line 160
  9. Distinctive:

    Never make every button primary.

    line 211
  10. Very specific:

    New lucide icons: must be added to the include.lucide allowlist in astro.config.mjs — astro-icon inlines only allowlisted icons at build …

    line 302
  11. Very specific:

    React islands: prefer .astro components. Only reach for React when you need state, effects, or a browser-only library (shaders, motion).

    line 305

“Common” is measured: kept by at least 6 in 10 of the 98 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Work of Ekajaya — Design System

A dark-first, high-contrast portfolio system. Near-black canvas, a single scarce red accent, three typographic roles, and a heat-shader monogram as the signature asset.

Stack contract: Astro 6 (SSG) · React 19 islands · Tailwind CSS v4 via @tailwindcss/vite (no tailwind.config.js — tokens live in @theme) · Bun runtime · astro-icon + @iconify-json/lucide.


1. Design Context

Read this before making aesthetic decisions. It is the "why" behind every token below.

Users

AudienceContextWhat they need
Recruiters / hiring managers (primary)Mobile, several tabs open, skimming a shortlistIdentity, role, seniority, location in ~2 seconds
Prospective freelance clientsEmail or Slack threadCapability and trust, a hint of what he builds
Peer developersX, Reddit, shared linksCraft, memorability, evident skill

Brand personality

Bold, kinetic, technical.

  • Bold — full-bleed, high-contrast, commits to scale rather than hedging.
  • Kinetic — heat, drift, a beam that tracks scroll. Energy is identity, not garnish.
  • Technical — monospace labels, hairline rules, precise alignment, a palette taken from a shader's color stops.

Voice: first-person, plain, unembellished. Short declarative sentences. No marketing inflation.

Design principles

  1. Identity in two seconds. Name, role, location resolve before decoration is parsed.
  2. Accent is a scarcity economy. Red works because it is rare. ~10% of visual weight.
  3. Type does the work. Hierarchy from scale contrast and weight — not boxes, borders, shadows.
  4. On-system or absent. New artifacts must look like a crop of the existing site.
  5. Motion implies life, never noise. One or two orchestrated gestures; always reduced-motion safe.

Anti-references

  • Generic SaaS gradient cards — purple-to-blue wash, floating laptop mockup, soft shadow, centered logo. The single most important thing to avoid.
  • Busy portfolio collages — screenshot grids, skill-badge soup, competing type sizes.
  • Dark-neon developer cliché — terminal chrome, blinking cursor, green-on-black, code rain. Dark does not mean cyberpunk.

2. Tokens

All tokens are declared in the @theme block of src/styles/global.css. Tailwind v4 generates utilities from them automatically (--color-accent → bg-accent, text-accent, border-accent).

Color

TokenValueUtilityRole
--color-background#141414bg-backgroundPage field
--color-foreground#f5f5f5text-foregroundPrimary type
--color-card#1c1c1cbg-cardRaised surfaces
--color-card-foreground#f5f5f5—Type on card
--color-border#2e2e2eborder-borderAll hairlines
--color-input#2e2e2e—Field borders
--color-primary#f5f5f5—Primary button fill
--color-primary-foreground#0a0a0a—Type on primary
--color-secondary#1e1e1ebg-secondaryHover fills, chips
--color-secondary-foreground#f5f5f5—Type on secondary
--color-muted#2a2a2a—Muted fills
--color-muted-foreground#a0a0a0text-muted-foregroundBody copy, metadata
--color-accent#dd0303text-accentIdentity accent (red)
--color-accent-foreground#f5f5f5—Type on accent
--color-destructive#dd0303—Errors (shares accent)
--color-ring#3a3a3a—Focus rings
--color-accent-yellow#fbff1atext-accent-yellowHeat core
--color-accent-blue#1472fftext-accent-blueHeat edge
--color-accent-warm#dd0303—Alias of accent

Heat triad — #dd0303 → #fbff1a → #1472ff are the three stops of the WoeHeatmap shader. Yellow and blue appear only where heat is literally being depicted (shader, tracing beam, code highlights). Never as general-purpose accents.

Rules

  • Never pure black (#000) or pure white (#fff). The field is #141414; type is #f5f5f5.
  • Never gray text on a colored background — use a shade of the background instead.
  • Never gradient text. Solid fills only.

Radius

TokenValueUtility
--radius-sm4pxrounded-sm
--radius-md8pxrounded-md
--radius-lg12pxrounded-lg
--radius-xl16pxrounded-xl

Pills and chips use rounded-full. Cards use rounded-xl. Buttons use rounded-md.

Spacing

Tailwind's 4pt scale. The system's recurring rhythm:

  • Section vertical: py-24 md:py-32
  • Container: max-w-3xl mx-auto px-6
  • Section header to content: mb-12 / mb-16
  • Card interior: p-6 md:p-8
  • Chip gaps: gap-2 / gap-3

Breakpoints

sm: 640 · md: 768 · lg: 1024 · xl: 1280. Section padding steps at md. Hero shader responds to aspect ratio (not breakpoints) via useContainerSize + getPreset.


3. Typography

Three families, three non-overlapping jobs. Never blur the roles.

TokenFamilyJobUtility
--font-displayGoldmanHeadings, the namefont-[family-name:var(--font-display)]
--font-sansSansationBody copy (default on body)inherited
--font-monoShare Tech MonoEyebrows, metadata, timestamps, buttonsfont-mono

Fonts load via Fontsource CSS imports at the top of global.css: @fontsource/sansation/{300,400,700}.css, @fontsource/goldman/{400,700}.css, @fontsource/share-tech-mono/400.css.

Scale in use

RoleClasses
Hero nameinline fontSize 1.875rem (mobile) → 3.75rem, lineHeight: 1.05, letterSpacing: -0.025em
Section headingtext-3xl md:text-5xl font-bold text-balance
Sub-heading / card titletext-lg font-bold
Bodytext-sm / base, leading-relaxed, text-pretty
Eyebrow / labeltext-xs tracking-[0.3em] text-accent
Micro-chiptext-[10px] font-mono

Rules

  • At least a 1.25 ratio between heading steps. Fewer sizes with more contrast beats many near-identical sizes.
  • Add 0.05–0.1 to line-height for light-on-dark body text — light type reads as lighter weight.
  • Cap body measure at 65–75ch (max-w-3xl at this scale).
  • All-caps only for short labels and eyebrows — never long passages.
  • Always pair text-balance on headings and text-pretty on body paragraphs.

4. Section anatomy

Every portfolio section follows the same skeleton. Deviating breaks the site's rhythm.

---
// Optional: import { Icon } from 'astro-icon/components';
---

<section id="SECTION_ID" class="relative z-20 bg-background border-t border-border">
  <div class="max-w-3xl mx-auto px-6 py-24 md:py-32">
    <header class="mb-12 md:mb-16">
      <p class="font-mono text-xs tracking-[0.3em] text-accent mb-3">EYEBROW</p>
      <h2 class="font-[family-name:var(--font-display)] text-3xl md:text-5xl font-bold text-foreground text-balance">
        Sentence-case heading.
      </h2>
    </header>

    <!-- content -->
  </div>
</section>

Invariants

  • id must match a nav dot's data-section in BaseLayout.astro. Valid ids: hero, about, experience, projects, skills, contact.
  • relative z-20 keeps content above the hero shader; bg-background paints over it.
  • border-t border-border is the section separator. Do not substitute shadows or gaps.
  • The eyebrow is uppercase; the heading is sentence case with a period.

5. Component patterns

See reference/components.md for full copy-paste snippets. Summary of the vocabulary:

PatternSignature
Eyebrowfont-mono text-xs tracking-[0.3em] text-accent mb-3, uppercase
Tech chiptext-xs font-mono px-3 py-1 border border-border rounded-full text-muted-foreground + hover:border-accent hover:text-accent
Micro chiptext-[10px] font-mono px-2 py-1 border border-border rounded-full text-muted-foreground
Cardp-6 md:p-8 border border-border rounded-xl hover:border-accent transition-colors
Primary CTApx-6 py-3 bg-foreground text-background rounded-md font-mono text-sm font-medium active:scale-[0.96] transition-transform
Secondary CTApx-6 py-3 border border-border rounded-md font-mono text-sm font-medium hover:bg-secondary hover:border-foreground active:scale-[0.96] transition-colors
Entry rowflex flex-col md:flex-row md:items-baseline md:justify-between gap-1 mb-3 with <h3> + <time class="font-mono text-xs text-muted-foreground">
Bullet list itemflex items-start gap-2 with a w-1 h-1 rounded-full bg-muted-foreground mt-1.5 dot
Section dot navFixed right-center, IntersectionObserver-driven, label on hover

Interaction rules

  • Interactive surfaces get transition-colors (or transition-transform for scale feedback).
  • Buttons use active:scale-[0.96] — a small, fast press response.
  • Hover on clickable titles moves color to text-accent; hover on outlined elements moves border-border → border-accent.
  • Never make every button primary. Mix primary, secondary, and text links for hierarchy.

6. Signature devices

These are what make the site recognizable. Reuse them; do not invent parallel motifs.

Heat shader (hero)

WoeHeatmap.tsx wraps @paper-design/shaders-react's <Heatmap>, driving logo.webp through a red/yellow/blue heat field. Rendered as the only React island in the hero (client:only="react").

  • Aspect-driven presets via getPreset(aspect) (5 buckets, <0.75 → >=2.2).
  • Media-query overrides for mobile portrait, tablet portrait, and short screens.
  • Defaults: colors ['#dd0303','#fbff1a','#1472ff'], colorBack '#1c1c1c', speed 0.96, contour 0.23, noise 0.27, fit 'contain'.

Tracing beam (experience)

TracingBeam.tsx draws a scroll-linked SVG beam through the experience list: a dim path plus a gradient-lit path whose y1/y2 are spring-smoothed from scrollYProgress. Gradient runs #dd0303 → #fbff1a → #1472ff.

Scroll progress bar

A 2px bg-accent bar at the top of BaseLayout, scaleX-driven by scroll position.

Eyebrow label

The most repeated structural motif. font-mono text-xs tracking-[0.3em] text-accent, uppercase, above every section heading.


7. Motion

See reference/motion.md.

  • Easing: exponential deceleration (ease-out-quart/quint/expo). No bounce, no elastic.
  • Animate: transform and opacity only. Never width, height, padding, margin.
  • For height changes: transition grid-template-rows, not height.
  • Reduced motion: the global @media (prefers-reduced-motion: reduce) block in BaseLayout.astro collapses animation and transition durations. Scroll-driven decorative paths additionally carry motion-reduce:hidden.
  • One orchestrated gesture beats scattered micro-interactions.
  • Measure element geometry with ResizeObserver (useContainerSize), and re-measure when the element can change size after mount — a one-shot useEffect measurement will drift.

8. Accessibility

Non-negotiable, already established in BaseLayout.astro:

  • Skip link (.skip-link) as the first focusable element, targeting #main-content.
  • <main id="main-content" tabindex="-1">.
  • Section nav has aria-label="Section navigation"; each dot has an aria-label.
  • Decorative SVG carries aria-hidden="true".
  • :focus-visible rings via --color-ring.
  • Respect prefers-reduced-motion.
  • Maintain AA contrast: #a0a0a0 on #141414 is the floor for body text; prefer #f5f5f5 for anything small.

9. Anti-patterns

Never in this system:

  • Side-stripe accents — border-left/border-right wider than 1px as a colored stripe on cards, list items, or callouts.
  • Gradient text (background-clip: text + a gradient).
  • Generic SaaS gradient cards, floating laptop mockups, soft drop shadows.
  • Glassmorphism / blur used decoratively rather than functionally.
  • Nested cards. One container level only.
  • Identical card grids repeated endlessly.
  • Centered everything — the system is left-aligned with asymmetric space.
  • Pure #000 / #fff, or gray text on colored backgrounds.
  • Skill-badge soup, screenshot collages, competing type sizes.
  • Terminal chrome, blinking cursors, code rain.
  • Same spacing everywhere — vary rhythm between tight groups and generous separations.
  • Modals when an inline or progressive-disclosure pattern would do.

10. Project conventions

  • Tokens live in @theme in src/styles/global.css. Never add a tailwind.config.js.
  • global.css must be imported in every layout or Tailwind emits nothing.
  • New lucide icons must be added to the include.lucide allowlist in astro.config.mjs — astro-icon inlines only allowlisted icons at build time.
  • Path alias: @/* → ./src/*.
  • React islands: prefer .astro components. Only reach for React when you need state, effects, or a browser-only library (shaders, motion). Use client:only="react" when the component cannot SSR.
  • Class merging: cn() from @/lib/utils, re-exported from the cn package (drop-in replacement for clsx + tailwind-merge).
  • Commit messages: Conventional Commits (feat:, fix:, chore:, docs:, style:, refactor:, ci:, build:, perf:).
  • Runtime: Bun only. bun dev · bun run build · bun run preview.

11. Reference files

FileContents
reference/tokens.mdFull token table, @theme block, global CSS layers
reference/components.mdCopy-paste snippets for every pattern above
reference/og-images.mdTakumi OG image setup, home + blog variants, fonts, meta wiring
reference/motion.mdEasing, durations, scroll-driven patterns, reduced-motion handling

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.