✨ Add design and agents pages with supporting site refactors#52
Open
✨ Add design and agents pages with supporting site refactors#52
Conversation
Move CLAUDE.md symlink to .claude/ subdirectory and remove .claude from .gitignore to track AI configuration files in the repo.
…lette, typography, spacing, and component styles.
Render DESIGN.md as a visual design system page with: - Color swatches for hex values - Typography samples for font families/weights/sizes - Spacing bars for px/rem values - Toggle between preview and raw markdown views Also cleans up unused design tokens (wip-*, code-inline, decorative-shadow) from DESIGN.md.
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a design system and agent instructions by adding DESIGN.md and AGENTS.md files, along with dedicated pages (/design and /agents) to render them. It also includes a new Switch component to toggle between rendered previews and raw Markdown. The review feedback identifies opportunities to improve the codebase by removing dead client-side script logic and replacing fragile manual YAML/frontmatter parsing with Astro's built-in Markdown frontmatter support.
Replace runtime readFile + manual frontmatter parsing with Astro's `frontmatter` export and Vite `?raw` import so the markdown source is bundled at build time. Fixes ENOENT for `dist/AGENTS.md` during `astro build` and removes the dead `a[data-mode-value]` listener loop on both pages. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
📸 Screenshots for PR #52
PR screenshots folder (branch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


















Summary
.claudelayout./designpage that previews colors, typography, spacing, and raw markdown./agentspage with a reusableSwitchcomponent and related site content updates.Test plan
Made with Cursor