Issue: Move to SCSS Modules.
You should see our docs: uireact.io.
If you are starting a brand new project you can run these 2 scripts which will generate a fully configured project:
Next Js
npx @uireact/create-next-app@latest
Remix
npx @uireact/create-remix-app@latest
If the project already exists and you want to add this library then you will have to manually set it up.
Install the main packages:
npm i -S @uireact/foundation @uireact/view
Wrap your app inside the UiView component:
import { ThemeColor } from '@uireact/foundation';
import { UiView } from '@uireact/view';
const App = ({ children }) => (
<UiView selectedTheme={ThemeColor.dark}>
{children}
</UiView>
)
// In CSS: Update the route based on your project.
@import url('../node_modules/@uireact/foundation/dist/index.css');
// Include all packages styles
@import url('../node_modules/@uireact/view/dist/index.css');
That's it... You are ready to start installing and using any component in this library 🫶
If you want to reach out to us these are our public social networks: