# Atomik theme copy

**URL:** <https://forums.concretecms.org/t/atomik-theme-copy/2417>\
**Category:** Using Concrete / Help\
**Created:** [February 11, 2022, 5:55pm UTC](https://forums.concretecms.org/t/atomik-theme-copy/2417 "2022-02-11T17:55:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shabba](https://forums.concretecms.org/user_avatar/forums.concretecms.org/shabba/32/1176_2.png) [@shabba](https://forums.concretecms.org/u/shabba)\
**Post date:** [February 11, 2022, 5:55pm UTC](https://forums.concretecms.org/t/atomik-theme-copy/2417/1 "2022-02-11T17:55:36Z")

</div>

Hi,

I’m ready to work with Atomik theme, but if I place the (renamed)Atomik theme folder in Application/theme and than modify the page\_theme.php (namespace and getThemeName) I get this error:

Argument 1 passed to Concrete\Core\Page\Theme\Documentation\AtomikDocumentationProvider::\_\_construct() must be an instance of Concrete\Theme\Atomik\PageTheme, instance of Application\Theme\Atomik902\PageTheme given, called in /var/www/html/c902/application/themes/atomik902/page\_theme.php on line 122

Elemental theme copy works in this way, is it something that I missed, or Atomik needs some other ways?

---

<div class="post-metadata">

**Author:** ![afixia](https://forums.concretecms.org/user_avatar/forums.concretecms.org/afixia/32/4340_2.png) [@afixia](https://forums.concretecms.org/u/afixia)\
**Post date:** [February 11, 2022, 7:03pm UTC](https://forums.concretecms.org/t/atomik-theme-copy/2417/2 "2022-02-11T19:03:26Z")

</div>

Try getting rid of the following:

public function getDocumentationProvider(): ?DocumentationProviderInterface  
{  
return new AtomikDocumentationProvider($this);  
}

I haven’t tried this, but you shouldn’t need the documentation.

---

<div class="post-metadata">

**Author:** ![katz515](https://forums.concretecms.org/user_avatar/forums.concretecms.org/katz515/32/4325_2.png) [@katz515](https://forums.concretecms.org/u/katz515)\
**Post date:** [February 12, 2022, 12:51am UTC](https://forums.concretecms.org/t/atomik-theme-copy/2417/3 "2022-02-12T00:51:01Z")

</div>

@afixia thx

There was similar post in Japanese

> [@Atomikテーマをベースにしたテーマ作成時にエラー](https://forums.concretecms.org/t/atomik/2339):
>
> お世話になります。 Atomikテーマを使ってカスタマイズしたいと思い、以下の作業を行ったところエラーになってしまいました。 1)/concrete/themes/atomik下のファイルをapplication/themes/temptestへコピー 2)application/themes/temptest/page\_theme.php内のnamespaceを以下に変更 namespace Application\Theme\Temptest; 3)管理画面でテーマをインストールしたところ、以下のようなエラーになりました。 （管理画面の「ページとテーマ」を表示する際のみエラー表示となります。） ▼エラー内容 Argument 1 passed to Concrete\Core\Page\Theme\Documentation\AtomikDocumentationProvider::\_\_construct() must be an instance of Concrete\Theme\Atomik\PageTheme, instance of Application…

i haven’t had time to test yet either.  
But asked him to try.

---

<div class="post-metadata">

**Author:** ![linuxoid](https://forums.concretecms.org/user_avatar/forums.concretecms.org/linuxoid/32/5311_2.png) [@linuxoid](https://forums.concretecms.org/u/linuxoid)\
**Post date:** [February 12, 2022, 1:09am UTC](https://forums.concretecms.org/t/atomik-theme-copy/2417/4 "2022-02-12T01:09:38Z")

</div>

I got it working doing the following:

- download github repository: [https://github.com/concrete5/concrete5](https://github.com/concrete5/concrete5)
- copy concrete/themes/atomik folder to application/themes and make necessary folder, file and class renamings (check the @afixia guide)
- make another ‘build’ folder in application/themes
- move concrete/themes/atomik/main.js file to build/assets/js
- move concrete/themes/atomik/css/scss folder to build/assets
- copy concrete/themes/atomik/css/presets/default folder to build/assets/scss/presets
- delete main.js file and css folder from atomik
- follow steps to compile js and css from the new guide:

1. npm install
2. npm i @concretecms/bedrock
3. npm i laravel-mix
4. npm run production

Then make any style changes in the build/assets/scss files and recompile.

That’s it. Seems to be working so far… 🤞

One minor thing though - if I put my build folder somewhere else on the computer and use a direct path to the theme in the webpack.mix.js, the main.js file gets copied together and inside all those path folders, not just itself.

---

<div class="post-metadata">

**Author:** ![shabba](https://forums.concretecms.org/user_avatar/forums.concretecms.org/shabba/32/1176_2.png) [@shabba](https://forums.concretecms.org/u/shabba)\
**Post date:** [February 12, 2022, 9:37am UTC](https://forums.concretecms.org/t/atomik-theme-copy/2417/5 "2022-02-12T09:37:32Z")

</div>

afixia you are GOLD 😉  
Uncomment those lines fixed the dashboard error, thanks!
