Hi @KamilDev ,
While I cannot advise on legal matters, a closely inspired implementation should be fine. It is worth looking at the official repository: microsoft/fluentui.
As Microsoft states on their Fluent UI GitHub page:
Licenses All files on the Fluent UI React GitHub repository are subject to the MIT license. Please read the License file at the root of the project. Usage of the fonts and icons referenced in Fluent UI React is subject to the terms of the assets license agreement.
Since the Fluent UI React components are under the MIT License, replicating the visual tokens—like border radii, spacing, colors, and layout paradigms—from scratch for your own component library is generally safe for commercial use.
For fonts and icons, Microsoft has open-sourced the Fluent System Icons under the MIT License, which handles many use-cases.
It sounds like you have a great understanding of the boundaries already. Good luck with your app.
If you found my response helpful or informative, I would greatly appreciate it if you could follow this guidance or provide feedback.
Thank you.