Can I sell a Next.js theme with third-party libraries on ThemeForest?

Hello,

I am a new author on ThemeForest, and I want to sell my Next.js theme. In my theme, I have used third-party libraries such as shadcn, next-themes, and others. Can I sell a theme that includes these libraries? Are there any restrictions on which libraries can be included in a theme for sale? It would be helpful if you could provide a link or information on the guidelines for themes that can be accepted and those that cannot be accepted for sale on ThemeForest.

As long as it comes with a license ( MIT or GPL ) that allows you to use the “parts” inside of your project to be re-sale

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software