The Component Starter kit gives you the key building blocks to create dynamic and compelling web experiences and demonstrate the power of digital experience composition in Uniform. Just install, customize and start creating.
Built with love by Uniform folks, standing on the shoulders of TailwindCSS, DaisyUI, React and Next.js.
- A Uniform account with the ability to create a new empty project. If you don't have a Uniform account, you can request a trial account here.
- Run
npx @uniformdev/cli new
- Pick the "Next.js" / "Component Starter Kit" option and proceed using the prompt.
At the end, you will end up with a locally running starter and Uniform project with all the required content.
- Setup your .env file (see .env.example for reference)
UNIFORM_API_KEY= UNIFORM_PROJECT_ID= UNIFORM_PREVIEW_SECRET=hello-world
npm install
- Run
npm run uniform:push
andnpm run uniform:publish
to push the content from this starter kit (components, compositions and project map) into your project.
npm run dev
to run locally.
npm run build
and npm start
This integration brings Canvas UI extensions for theme management and new useful visual parameters to help control the look and feel of your components.
- Open your Uniform project.
- Head over to Settings > Canvas and configure preview to http://your-host/api/preview?secret=hello-world
- Navigate to
Manage Integrations
tab and InstallTheme Pack
integration - Select on of the themes or create your own and press
Save
- Go to Compositions list, find the "Global" composition and open it in Canvas.
- In order to apply theme changes, press
Publish
(even if the composition itself is not changed).Optionally, you can change the main font that will be used along with the theme. Here you can also manage your header and footer content - logo and navigation links.
Important: in order to apply theme changes, you must re-publish the "Global" composition after every time you change the theme
on the integration settings page.