Skip to content

feat: AI.md Documentation (tokens & components)#2620

Draft
joelharkes wants to merge 14 commits intomainfrom
ai-tokens-md
Draft

feat: AI.md Documentation (tokens & components)#2620
joelharkes wants to merge 14 commits intomainfrom
ai-tokens-md

Conversation

@joelharkes
Copy link
Contributor

@joelharkes joelharkes commented Feb 10, 2026

  • This adds documentation that can be used by AI to better work with Fondue.
  • It also add claude commands to regenerate the documentation 🤯

Why?

We can reference to these files/urls in web-app (as they are publicly available).
This hopefully improves our generate code quality.

Considerations

  • I haven't yet tested their effectiveness. (will be on this now)
  • I was thinking about maybe not including Grid/Flex stuff, personally i don't use it a lot, i prefer using just tailwind classes. What do you think?
  • I let it mention the underneath Radix component as I found this is really helpful when debugging weird behaviour with claude.
  • Please read through the documentation if it makes sense, I did an initial read
    • maybe split button could use extra explainer when to use it?

Scope

I left other stuff out of scope:

  • fondue => legacy right? so we better not want to promote this
  • icons => probably better as mcp sever with search (or just let claude check file system in node modules for available icons)
  • chats => haven't used, not sure if it makes sense for ai.md.

Next steps

  1. Do some try runs with this documentation and withouth
  2. Add documentation from figma => tailwind class map that ai can use. (maybe something grep friendly)

@joelharkes joelharkes self-assigned this Feb 10, 2026
@joelharkes joelharkes requested a review from a team as a code owner February 10, 2026 10:31
@changeset-bot
Copy link

changeset-bot bot commented Feb 10, 2026

⚠️ No Changeset found

Latest commit: 78bbd6c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Feb 10, 2026

PR Preview Action v1.6.2

🚀 View preview at
https://Frontify.github.io/fondue/pr-preview/pr-2620/

Built to branch gh-pages at 2026-02-16 07:26 UTC.
Preview will be ready when the GitHub Pages deployment is complete.


Use for paragraph text, labels, descriptions, and general UI copy.

| Class | When to use |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it validated that this aligns with how the designers use it?


Each heading has a **`-strong`** (bold) variant for extra emphasis. Example: `tw-heading-large-strong`

### Font Family (rarely needed directly)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not?


### Primary Colors

For main actions, CTAs, links, and brand elements.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it validated this aligns with design?


| Class | When to use |
|---|---|
| `tw-bg-overlay` | Modal/dialog backdrop scrim |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it validated this aligns with designers usage guides?

**Only** for data visualization (charts, graphs, plots). Do not use for UI elements.

| Class | Purpose |
|---|---|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it validated this aligns with the analytics team?

@@ -0,0 +1,320 @@
# Fondue Design Tokens — Tailwind Class Reference for AI
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too many things are made up. These docs need to be audited carefully to not hallucinate and align with the guidelines by the designers.

Most likely this should be linked the the docs that are currently being created
https://fondue.frontify.com/document/51#/-/colors

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

valid point. the website linked though is very limited. i could make a claude command to extract info from here but i think there is not enough info there yet. ill check with the designers, joanna and bubo how we can best solve this :)

@@ -0,0 +1,455 @@
# Fondue Components — React Component Reference for AI
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These docs are duplicates of the information available within the mcp server.

The docs should be added as component desicriptions to also be available through the mcp, manifest and storybook UI

http://localhost:6006/manifests
http://localhost:6006/mcp

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes its duplicate, the idea is to have a simpler alternative to avoid having to run an mcp server and make it work a bit more out of the box. I totally agree this should align with the designers documentation, i will look into this and improve the docs.

@@ -0,0 +1,455 @@
# Fondue Components — React Component Reference for AI

This document describes the React components exported by `@frontify/fondue-components`. All components are TypeScript-first, support ref forwarding, and are theme-aware via Fondue design tokens. Most interactive components are built on [Radix UI](https://www.radix-ui.com/) primitives for accessibility (keyboard navigation, ARIA attributes, focus management).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Referencing Radix will most likely be misleading for a LLM as it is not relevant for the usage but might lead to it using a radix prop which is not exposed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

valid point, ill do some experimenting and see. I found it was helpful as it does help sometimes suggest that we should start adding a radix prop to make a functionality work. so let me try out some more stuff here.

@joelharkes joelharkes changed the title feat: AI.md Documentation (tokens & compnents) feat: AI.md Documentation (tokens & components) Feb 11, 2026
@joelharkes joelharkes marked this pull request as draft February 16, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments