I am trying to customize the openedx but when running with dev the indigo theme is not applying and when running in tutor local in production URL indigo theme is applying. How to fix it?
Maybe this helps.
tutor dev do settheme indigo
I tried before posting. But no luck
Just testing it now and tutor dev do settheme <theme>
switch it on the fly. But I’m on Quince release now, and testing with my custom theme.
If no clues in tutor dev log
, check tutor mounts list
and tutor plugins list
. Removing <tutor root dir>/env and recreate it with tutor config save
helps sometimes (backup it if this is not your development sandbox).
I tried deleting the /env but no luck
Could you please share more details about which parts are not able to pick Indigo theme in development (LMS or MFEs)?
Seems like open edX default theme is overriding Indigo theme in development environment.
I am not sure about mfe but for lms i.e landing page its till picking up default
There are two ways you can check or improve:
- Run
tutor images build openedx-dev
. It will build the updated image of tutor-indigo for dev environment in which you’ll find the indigo theme changes. - OR Go to your LMS container terminal through
docker Desktop
, Run thisnpm run compile-sass -- --theme indigo --theme-dir /openedx/themes --skip-cms --skip-default
command and reload your page.
Thanks for the reply @hinakhadim but I tried doing that but I don’t see its reflected
Any further help from this snap
Do you see some errors or warnings about theme in logs?
tutor dev logs --follow --tail=40
On this week I am worked on my private mfe authn fork and when mounting it getting not working themes and errors in log, but this repo was messed and not runs properly. When I mounting correct repo theme loads without problem.
Installed tutor[full] in clean env, themes switches with tutor dev do settheme default
and tutor dev do settheme indigo
without problem. But it hard to see difference:
-
Indigo theme
-
and Default theme