Skip to content

Style scanner misses tailwind/package.json in monorepo subdirectories #25

Description

@Garabed96

Problem

start.sh style scanner looks for tailwind.config.* and package.json at the project root, but in monorepo/subdirectory layouts these files live deeper (e.g. src/app/).

Scanner output:

[1/3] Scanning tailwind config...
  No tailwind config found
[3/3] Scanning package.json...
  No package.json found

Actual locations:

  • src/app/tailwind.config.js — Tailwind v3, shadcn/ui HSL vars, custom font
  • src/app/package.json — dependencies including flowbite, radix, etc.
  • src/app/styles/globals.css — custom font-family

Expected Behavior

The scanner should walk common monorepo patterns (src/*/, apps/*/, packages/*/) or accept a --app-dir flag to point at the right subdirectory.

Impact

Factory pages render with system fonts instead of project fonts. Style profile is incomplete — missing tailwind theme tokens, color vars, and component library detection.

Environment

  • ctx-plugin 0.2.9.3
  • Next.js monorepo with app in src/app/
  • Worktree detected, pages root correctly set to main repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions