Skip to content

Draft improvements from assistant conversations: clarify custom CSS loading#6383

Open
mintlify[bot] wants to merge 2 commits into
mainfrom
mintlify/b4a61ee2
Open

Draft improvements from assistant conversations: clarify custom CSS loading#6383
mintlify[bot] wants to merge 2 commits into
mainfrom
mintlify/b4a61ee2

Conversation

@mintlify

@mintlify mintlify Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Clarify how custom CSS files are loaded and how to use custom class names in MDX, based on recurring confusion in the theme customization assistant bucket.

Changes

  • Rewrite the intro of the "Add custom CSS" section in customize/custom-scripts.mdx to state explicitly that any .css file in the content directory is automatically included on every page (mirroring the existing behavior documented for .js files).
  • Add a short example showing how to define a class in a .css file and use it via className in an MDX file.
  • Note that custom classes can be combined with Tailwind CSS classes on the same element.

Context

Assistant conversations in the theme customization bucket showed users unsure whether custom CSS files are auto-loaded and how to reference custom class names from MDX. The behavior existed but was not spelled out on the page.


Note

Low Risk
Documentation-only updates to the custom scripts guide; no product or runtime behavior changes.

Overview
Add custom CSS in customize/custom-scripts.mdx (and es, fr, zh locales) is expanded so readers know how .css files are picked up and how to use custom classes in MDX.

The section now states that any .css file under the content directory is automatically included on every page, the same way as custom .js files, with no import in docs.json or MDX. It adds steps to place a file such as style.css at any depth in the content tree, a .my-callout CSS + className MDX example, and a note that custom classes can be mixed with Tailwind on one element.

Reviewed by Cursor Bugbot for commit 5f12269. Bugbot is set up for automated code reviews on this repo. Configure here.

@mintlify

mintlify Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
mintlify 🟢 Ready View Preview Jul 3, 2026, 4:16 PM

@mintlify

mintlify Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
smartac 🟢 Ready View Preview Jul 3, 2026, 4:19 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@mintlify

mintlify Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
testsignup415 🟢 Ready View Preview Jul 3, 2026, 4:21 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@mintlify

mintlify Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
adminroletesting 🟢 Ready View Preview Jul 3, 2026, 4:25 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@mintlify

mintlify Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
hfh-d7a4d643 🟢 Ready View Preview Jul 3, 2026, 4:28 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@mintlify

mintlify Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
gwgwgw 🟢 Ready View Preview Jul 3, 2026, 4:30 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@mintlify

mintlify Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
tomee 🟢 Ready View Preview Jul 3, 2026, 4:33 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

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.

1 participant