Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom CSS to be loaded from assets #404

Open
pvande opened this issue Oct 21, 2024 · 0 comments
Open

Allow custom CSS to be loaded from assets #404

pvande opened this issue Oct 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@pvande
Copy link

pvande commented Oct 21, 2024

Proposal: Add support for a new frontmatter property that can refer to a CSS asset file in the documentation, to be linked or injected into the generated content.

Rationale: Custom Components aren't able to take advantage of Tailwind classes. Some projects may want to manipulate the presentational style of built-in components.

Current Workarounds: At present, it is possible to implement custom CSS using a hack like the following:

<style children="dl.not-prose { display: grid; grid: auto-flow / max-content 1fr; gap: 0.8em }" />

While this is functional, it adds redundancy and overhead to the MDX source files when it's copied across many source files.

@Ehesp Ehesp added the enhancement New feature or request label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants