Install from npm
@twind/with-nextare available on npm and need to be installed together.
Define the configuration
Using an extra file,
twind.config.js, allows some tools like IntelliSense to find your configuration.
Load Twind in the App component
installcreates and registers a twind instance that will generate the styles. This allows third-party packages to import
twfrom the twind package and get the same instance.
If you are using a custom App component you need to pass the it to
Enable Twind in Document component
Enable server-side rendering of all the styles that are used within the HTML and sending them to the client.
If you are using a custom Document component you need to pass the it to
Start using Twind in your components
Start using Twind classes to style your content.