#Custom colors typing in Nx workspace

4 messages · Page 1 of 1 (latest)

vapid cedar
#

Goodmorning, I am using Mantine in an Nx workspace with multiple UI libraries. I followed this guide[https://mantine.dev/theming/colors/#add-custom-colors-types] to add custom color typing to my Mantine theme and everything worked on Mantine v6. Now I upgraded to v7.5 and it does not work anymore.
The Mantine theme is defined in the library "core" and in the same place I declare the mantine.d.ts with the color declarations. However I do not get autocomplete or intellisense in the library "core". If in any other library I import the declaration file in the tsconfig, I don't get the autocomplete. How can I proceed? Thank you

React components and hooks library with native dark theme support and focus on usability, accessibility and developer experience

#

Inside "core" library

#

my mantine.d.ts

steep dragon
#

Try putting d.ts file at the root of your project, you may need to include it in root tsconfig as well