Part 3 of 7. All parts: part 1. Previous: part 2, scaffolding the starter and building a Badge. Next: part 4, organizing atoms in folders.
Preliminary post. Written with AI assistance and run locally against the starter. Tested with Content SDK beta build 20261105114751, November 2026. Uxbee has requested Early Access to atoms in SitecoreAI but does not have it yet, so for the moment the Design Studio steps come from Sitecore's documentation and are untested. These posts will be updated once we have access. More in part 1.
What this part does
The atoms starter comes with no atoms. Sitecore's Content Kit is a shadcn-based registry where you pick the atoms you need. Here I install all six atoms from it, show what did not fit the starter and how I fixed it, and merge the Badge from part 2 into the Content Kit's files. I did the install on its own git branch, because shadcn edits files in your app. The result is the part-3-content-kit tag in the companion repository.
To see the end result of this part, clone the companion repository and check out its tag:
| 1 | git clone https://github.com/rhockUxbee/sitecoreai-content-sdk-nextjs-app-router-atoms-beta.git |
| 2 | cd sitecoreai-content-sdk-nextjs-app-router-atoms-beta |
| 3 | git checkout part-3-content-kit |
1. Install atoms from the Content Kit
The Content Kit lives at content-kit.vercel.app. It lists six atoms, which Sitecore calls an initial list: Button, Container, Heading, Image, Number and Paragraph. Its install process is the shadcn one. It needs Node.js and npm, and Tailwind installed and configured, which the starter already has.
Step 1, once per project. The Content Kit asks you to initialize shadcn:
| 1 | npx shadcn@latest init |
I ran it with --defaults --yes to skip the prompts. It found Next.js and Tailwind 4, wrote components.json, installed dependencies, and updated src/app/globals.css and src/app/layout.tsx with CSS variables and a font. It also created shadcn's own Button and a utils file under src/components. Those are not Content Kit atoms.
Step 2, the atoms. All six at once, or one at a time:
| 1 | npx shadcn@latest add https://content-kit.vercel.app/r/atoms.json |
| 2 | npx shadcn@latest add https://content-kit.vercel.app/r/button.json |
The names for single atoms are button, heading, image, number, paragraph and container. I installed all six with atoms.json. It wrote:
src/atoms/index.ts,catalog.tsandregistry.tsx: the catalog and the registry, split over files.- One folder per atom under
src/components/atoms, each with aname.schema.tsand aname.tsx. The Container has a third file,container.props.ts. src/components/atoms/index.tsandsrc/lib/atoms-utils.ts.
It also printed instructions: exclude the atoms folder from the component map, pass the generated catalog and registry to SitecoreProvider, and align the Sitecore SDK versions.
Adding atoms later is different. The install ran without questions here, because none of those files existed yet. In a project that already had the Button installed, adding heading.json, or atoms.json again, stopped at an overwrite question: "The file index.ts already exists. Would you like to overwrite?" for heading.json (it does not say which of the two index.ts files, src/atoms or src/components/atoms), and the same question about button.tsx for atoms.json. The --yes flag does not answer it, and the new atom's own folder had already been written by then. The files involved hold the catalog and the registry, so I expect that answering yes would replace them with the Content Kit's version and drop your own atoms. I did not try it. The content-sdk-app-router-atoms skill by Christian Hahn gives the same warning about atoms.json. The safe route is to say no and add the new atom's entries to catalog.ts and registry.tsx by hand.
2. What did not fit the starter
Right after the install, the project no longer worked. Validation failed with Cannot find module '@/components/atoms/button/button.schema', and TypeScript reported errors. These were the causes and what fixed each:
- The SDK was downgraded. The install changed
package.jsonand pinned the Sitecore packages to an older beta,20261103095219, while the starter ships20261105114751. With the older packages, the starter's ownsitecore.cli.config.tsfailed, becauseATOMS_CATALOG_METADATA_KEYdoes not exist there. Fix: put the starter's versions back and runnpm install. - The
@/import alias does not exist in the starter. Itstsconfigdefines aliases such ascomponents/*andlib/*, not@/. Fix: change the imports insrc/atoms/catalog.tsandregistry.tsxfrom@/components/...tocomponents/.... - Five atoms imported their helper from the wrong folder. The Button, Container, Image, Number and Paragraph import
components/lib/atoms-utils, but the file landed insrc/lib. Fix: import fromlib/atoms-utils. - Two entry files. The starter's
src/atoms/index.tsxand the newsrc/atoms/index.tsboth exist. Fix: add the Badge from part 2 to the Content Kit'scatalog.tsandregistry.tsx, then deleteindex.tsx, so the Content Kit'sindex.tsis the one that exportscatalogandregistry.Providers.tsxdid not need a change. - The component map scans the atom files. The generator scans
src/components, so it picked up the atoms and shadcn's files and wrote duplicate Button imports. The Content Kit page asks for two exclusions, and shadcn's own files need two more:
| 1 | componentMap: { |
| 2 | paths: ['src/components'], |
| 3 | exclude: [ |
| 4 | 'src/components/content-sdk/*', |
| 5 | 'src/components/atoms/**', |
| 6 | 'src/components/components/**', |
| 7 | 'src/components/lib/**', |
| 8 | '**/*.schema.ts', |
| 9 | ], |
| 10 | }, |
The component map then only contained the starter's own entries again.
I am not the only one who ran into this. The content-sdk-app-router-atoms skill by Christian Hahn, which part 5 looks at, lists the same problems from his own Content Kit install: the SDK pins rewritten, the missing @/ alias, two entry files, and the component-map exclusions.
The files after merging the Badge. The Content Kit's src/atoms/index.ts is only two lines, and it is the one entry file that stays:
| 1 | export { catalog } from "./catalog"; |
| 2 | export { registry } from "./registry"; |
The install wrote a catalog.ts with the six Content Kit atoms. With the imports fixed and the Badge from part 2 added at the end, it reads:
| 1 | import { z } from "zod"; |
| 2 | import { defineAtomsCatalog, textFieldSchema } from "@sitecore-content-sdk/nextjs/atoms"; |
| 3 | |
| 4 | import { buttonCatalogDefinition } from "components/atoms/button/button.schema"; |
| 5 | import { containerCatalogDefinition } from "components/atoms/container/container.schema"; |
| 6 | import { headingCatalogDefinition } from "components/atoms/heading/heading.schema"; |
| 7 | import { imageCatalogDefinition } from "components/atoms/image/image.schema"; |
| 8 | import { numberCatalogDefinition } from "components/atoms/number/number.schema"; |
| 9 | import { paragraphCatalogDefinition } from "components/atoms/paragraph/paragraph.schema"; |
| 10 | |
| 11 | export const catalog = defineAtomsCatalog({ |
| 12 | version: "1.0.0", |
| 13 | stylingSolution: "tailwind", |
| 14 | components: { |
| 15 | Button: buttonCatalogDefinition, |
| 16 | Heading: headingCatalogDefinition, |
| 17 | Paragraph: paragraphCatalogDefinition, |
| 18 | Image: imageCatalogDefinition, |
| 19 | Number: numberCatalogDefinition, |
| 20 | Container: containerCatalogDefinition, |
| 21 | // our own atom from part 2, next to the Content Kit atoms |
| 22 | Badge: { |
| 23 | description: |
| 24 | 'A small label for a status or category, such as "New" or "Beta". Use the tone to signal meaning.', |
| 25 | props: z.object({ |
| 26 | text: textFieldSchema(), |
| 27 | tone: z.enum(["neutral", "info", "success", "warning"]).default("neutral"), |
| 28 | className: z.string().optional(), |
| 29 | }), |
| 30 | }, |
| 31 | }, |
| 32 | actions: {}, |
| 33 | }); |
And the registry, with the Badge's renderer next to the Content Kit's:
| 1 | "use client"; |
| 2 | |
| 3 | import { defineAtomsRegistry } from "@sitecore-content-sdk/nextjs/atoms"; |
| 4 | |
| 5 | import { Button } from "components/atoms/button/button"; |
| 6 | import { Container } from "components/atoms/container/container"; |
| 7 | import { Heading } from "components/atoms/heading/heading"; |
| 8 | import { Image } from "components/atoms/image/image"; |
| 9 | import { NumericInput } from "components/atoms/number/number"; |
| 10 | import { Paragraph } from "components/atoms/paragraph/paragraph"; |
| 11 | |
| 12 | import { catalog } from "./catalog"; |
| 13 | |
| 14 | const toneClasses = { |
| 15 | neutral: "bg-neutral-100 text-neutral-800", |
| 16 | info: "bg-blue-100 text-blue-800", |
| 17 | success: "bg-green-100 text-green-800", |
| 18 | warning: "bg-amber-100 text-amber-900", |
| 19 | } as const; |
| 20 | |
| 21 | export const registry = defineAtomsRegistry(catalog, { |
| 22 | components: { |
| 23 | Button: ({ props }) => <Button {...props} />, |
| 24 | Heading: ({ props }) => <Heading {...props} />, |
| 25 | Paragraph: ({ props }) => <Paragraph {...props} />, |
| 26 | Image: ({ props }) => <Image {...props} />, |
| 27 | Number: ({ props }) => <NumericInput {...props} />, |
| 28 | Container: ({ props, children }) => <Container {...props}>{children}</Container>, |
| 29 | // our own atom from part 2 |
| 30 | Badge: ({ props }) => ( |
| 31 | <span |
| 32 | className={[ |
| 33 | "inline-block rounded-full px-3 py-1 text-sm font-medium", |
| 34 | toneClasses[props.tone ?? "neutral"], |
| 35 | props.className, |
| 36 | ] |
| 37 | .filter(Boolean) |
| 38 | .join(" ")} |
| 39 | > |
| 40 | {props.text?.value} |
| 41 | </span> |
| 42 | ), |
| 43 | }, |
| 44 | actions: {}, |
| 45 | }); |
The Content Kit's installed files use double quotes and put each atom's schema in its own file, while the Badge from part 2 is written inline. It works either way. Part 4 moves the Badge into the Content Kit's layout.
3. Lock file and metadata with the Content Kit atoms
With the fixes in place, the lock file only knew the Badge from part 2. Validation reported what you would expect when new atoms arrive:
| 1 | [IE-008] Lock file validation failed: |
| 2 | - [IV-008] Catalog version mismatch: lock file has not set, current is "1.0.0". |
| 3 | - [MV-014] Atom "Button" is new and not in the lock file. Run `sitecore-tools project atoms update` to add it. |
| 4 | - [MV-014] Atom "Heading" is new and not in the lock file. Run `sitecore-tools project atoms update` to add it. |
| 5 | ... |
The dots stand for the same MV-014 line for Paragraph, Image, Number and Container. The Badge is not listed, because its schema did not change. IV-008 is worth knowing: the Content Kit sets version: "1.0.0" on the whole catalog, so the lock file now stores a catalog version too. npm run sitecore-tools:atoms:update accepted everything, and the lock file then held seven atoms. The Badge's hash was identical to the one in part 2. After that validation passed, TypeScript showed no errors, npm run build ran to the end, and the metadata held all seven atoms.
The metadata shows what the Content Kit puts in a catalog entry:
- Every Content Kit atom has an example value. The Badge has none, because I wrote it without one.
- Only the Container has a slot,
["default"], so it is the one atom that takes children. The Badge shows["default"]too, although I declared none. - The descriptions do not follow one pattern. The Button starts with "Category: Media." and the Container with "Category: Layout.", the Paragraph, Image and Number start with "Typography:" or "Media:", and the Heading has no category at all.
- The Button has a required
linkfield and an optionalclassName, and nolabelprop or variants. The link carries the text and the destination. The Heading has a text field, avariantfrom h1 to h6 and aclassName, and it renders nothing unless the value is a string.
4. What the build does with atoms
Atoms touch the build in two places, and both come before the normal Next.js steps. A third point is about what atoms stay out of. npm run build runs atoms validate, generate-map, sitecore-tools build and next build, in that order. With the fixes above it ran to the end.
- Validation is the first gate.
atoms validatecompares the catalog with the lock file. With the starter's default ofbreakOnError: false, a stale lock file is only logged and the build carries on. - The catalog goes into the metadata. The
sitecore-tools buildstep runsgenerateMetadata, and the starter'ssitecore.cli.config.tshands it the catalog. The result is the atoms in.sitecore/metadata.jsonundercapabilities.designLibrary.atoms.metadata.catalog. That file is what Design Studio receives. - The component map is not for atoms. They are registered through
atomsConfig, which is why the generator must skip the atom files. A greennext buildonly shows that the code compiles and the catalog is exported, not that the atoms render. Only Design Studio shows that.
5. In Design Studio (not tested)
The steps are the ones in part 2, section 8, and they are just as untested here. According to the docs, the six Content Kit atoms should appear in the Atoms section next to the Badge. I have not seen that. I also do not know whether Design Studio uses the Content Kit's example values when you add an atom, or how the Container, the only atom with a slot, is filled with other atoms.
6. What I ran and created
For the record, in order:
- On a new git branch, in the project from part 2 with the Badge in
src/atoms/index.tsxand its lock file entry:npx shadcn@latest init --defaults --yes, thennpx shadcn@latest add https://content-kit.vercel.app/r/atoms.json. - The fixes from section 2: SDK versions restored with
npm install, the imports changed, the Badge added tocatalog.tsandregistry.tsx,src/atoms/index.tsxdeleted, the exclusions added. npm run sitecore-tools:atoms:updateand validate, thennpx tsc --noEmit: clean.npm run build: ran to the end. The result is committed as thepart-3-content-kittag.
I also tried adding heading.json, and atoms.json again, to a project that already had the Button installed. Both stopped at the overwrite question and I did not answer yes. I did not start the dev server or open the app.
7. Not tested yet
- Whether Design Studio picks up a catalog change without restarting the app.
- How a component is placed on a page in Page builder, and whether the Install step has to finish first. The docs I read do not say.
- Whether answering yes to the overwrite question, and then adding your own atoms back, is safe in a project with many of them. I did not try it.
Next up, part 4: with Content Kit atoms and our own in one project, how do we organize them in folders?






