how to create theme color scheme configuration settings in admin side

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
mahammadareef
Posts: 54
Joined: 14 Oct 2022, 11:54

how to create theme color scheme configuration settings in admin side

Post by mahammadareef » 29 Oct 2022, 07:04

in aimeos admin side default theme color scheme settings are available like this image attached, I want to create color settings for my custom theme how to do this?
Attachments
Untitled.jpg
Untitled.jpg (78.42 KiB) Viewed 732 times

User avatar
aimeos
Administrator
Posts: 7905
Joined: 01 Jan 1970, 00:00

Re: how to create theme color scheme configuration settings in admin side

Post by aimeos » 29 Oct 2022, 09:18

1.) Define your CSS variables in your app.css file of your theme:
https://github.com/aimeos/ai-client-htm ... ss#L46-L61

2.) Configure your theme name and the default values like in the CSS variables:
https://github.com/aimeos/ai-client-htm ... #L282-L301

3.) Change the used theme name in the Settings panel of the admin backend
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

antoniosequeira66
Posts: 16
Joined: 06 Dec 2022, 09:37

Re: how to create theme color scheme configuration settings in admin side

Post by antoniosequeira66 » 13 Dec 2022, 16:49

Hello, I've followed all procedures to create a new theme as described here

https://aimeos.org/docs/latest/frontend ... -extension

Also clean caches
php artisan aimeos:clear
php artisan cache:clear

using "composer update" theme folder is copied to
........../public/vendor/shop/themes/<mytheme>

another try, I replace this with symbolic link to

..../packages/<extension>/themes/client/html/<theme>

but both cases, my theme is not available to select under admin settings page.
The only option is Default

What I'm missing here?
thanks in advance

User avatar
aimeos
Administrator
Posts: 7905
Joined: 01 Jan 1970, 00:00

Re: how to create theme color scheme configuration settings in admin side

Post by aimeos » 15 Dec 2022, 07:37

Did you create a "Laravel theme" extension or a base Aimeos extension?
Only "Laravel theme" extensions can be selected in the backend.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply