First-class support for "Mantine Style" LLM output guideline ? (lint rules, post-tool hook based closed-loop, etc) #8731
Replies: 2 comments 1 reply
-
|
Anthropic updated their skill-creator and I think mastering that would benefit greatly. Anthropic updated their skill-creator and I think mastering that would benefit greatly. |
Beta Was this translation helpful? Give feedback.
-
|
Official ESLint Plugin / ruleset would be preferred, AI tools are nice, but the agents keep ignoring rules here and there |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, thanks for the amazing library, I love to use Mantine.
I'm using Mantine everyday, very effectively - especially lately, building a design system through the theme system, and having the LLM write or modify UI code within Mantine(or my Mantine-based design system).
What I'm struggling with
When using LLMs, to generate or modify Mantine UI code, the output often violates Mantine's styling guidelines/philosophy even if we explicitly instruct "follow Mantine guidelines" - even I give detailed context or using context7 mcp, etc.
The most common issues:
style={{}}) for things that are already covered by Mantine props (e.g.p, m, fz, fw, pos, top/left, radius, ...)Box+ radius/border(inline style props) instead ofPaper/Card, orFlexwith custom gaps/directions instead of simply usingStack/GroupWe already trying to mitigate some of this with custom ESLint rules +
PostToolUseclaude hooks, etc.But it would be extremely helpful if Mantine offered official, Mantine-aware tooling, as first-party.
Proposal
this proposals are just an example solutions. If anyone has better idea, I'll appreciate it.
A) Official ESLint Plugin / ruleset
p, m, ..) over inline style(styles={{}})Paper, Card, Stack, ..layout components, etc.radiusprops, or not.I've seen that the Tailwind CSS providing a lint warning (I think it might have been a VSCode extension) saying, "You can use this instead".
B) LLM Closed-Loop integration hook(or skills, something)
PostToolUse, post-generation step, ..)This would drastically reduce review time and ensure generated code remains consistent with Mantine’s philosophy.
I think this, something like automation tooling methods, could make Mantine + LLM integration even better.
Thanks again for the great work on Mantine and for maintaining such a thoughtful library.
I'm also happy to hear any other thoughts, feedback, or other ideas around improving Mantine + AI usage experiences and integrations. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions