Search code examples
reactjstypescriptnext.jsgravity

How to run gravity ui in nextjs?


I've done everything according to instructions, but styles are not uploading. What could be a problem of it? enter image description here

This is the output. It is the button, but it is the textenter image description here

It just doesn't load the styles. Perhaps I need to change something in the config files. I read the documentation and don’t quite understand what’s connected with that. I don't want to use tailwind, but everything is about tailwind. I want to use gravity ui in my site. Please give advice to anyone familiar with this problem!!!


Solution

  • Just add those import styles from gravity-ui in top of your App.ts

    • import '@gravity-ui/uikit/styles/fonts.css';
    • import '@gravity-ui/uikit/styles/styles.css';

    enter image description here