To begin, the most straightforward approach is to utilize one of the provided templates. These templates come pre-configured with the necessary settings, such as CssBaseline and other fundamental components.
If you're new to GitHub and need guidance on initiating a project using a template, you can access comprehensive instructions on how to get started on this example.
Follow Remix getting started guide to create new Remix application:
yarn create gatsby
Install dependencies:
yarn add @bolio-ui/core
Add styles imports, BolioUIProvider and CssBaseline to app/root.tsx:
import {
Links,
LiveReload,
Meta,
Outlet,
Scripts,
ScrollRestoration
} from '@remix-run/react'
import { BolioUIProvider, CssBaseline } from '@bolio-ui/core'
export default function App() {
return (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<Meta />
<Links />
</head>
<body>
<BolioUIProvider>
<CssBaseline />
<Outlet />
<ScrollRestoration />
<Scripts />
<LiveReload />
</BolioUIProvider>
</body>
</html>
)
}
Ready to go! Start the development server:
npm run dev
Previous
Example with Vite
Next
Example with Gatsby