-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing theme CSS #10434
Comments
@whittaker007 thank you so much for contacting the MS community. That's something for which you should involve the dev mailing list before opening an issue. Let's keep the issue open for the moment for reference so that you can link that in your message to the ML. Thank you so much. |
I have created issues in both the dev and user mailing lists but have not gotten a reply. I assume my issue is that I have to install less and compile the less files? But I'm not sure what the destinations should be? |
@whittaker007 thank you for replying to this. @allyoucanmap answered on the ML: |
@whittaker007 here you can find the setup of the MapStore downstream project using the training process applying an override of the theme:
I'm reopening the issue because the documentation needs to be updated for the themeEntries property and a general review of the theme section |
Hi, I've rebuilt my project following the training process document. I found that I can use that theme method to create a new theme, but in order to make it the default theme I have to add:
to However the If I understand correctly, the two solutions to this are to either make a patch for this file, and make a step in the release/update process to apply that patch, or to somehow get the app to use alternative configuration outside of the The second method is preferable. I notice that
So I tried duplicating
but I get the error:
Which is odd because it definitely does exist, and has the same file permissions. I tried several variations of the pathing in the Is this the correct way to go about it? |
Oh, I see that I can simply override the default theme using
I guess that's the simplest way to go about it, then I don't need to add anything to |
@whittaker007 |
Description
I'm trying to set up a local installation of Mapstore and make some tweaks to the theme CSS.
I have followed the Styling and Theming guide at https://docs.mapstore.geosolutionsgroup.com/en/latest/developer-guide/customize-theme and none of my changes are showing up.
Documentation section involved
Other useful information
I have made a new theme folder in the html root and copied the
dark
theme as a starter. So:themes/custom/theme.less:
themes/custom/variables.less:
clone of
web/client/themes/dark/variables.less
As per the docs I have also modified:
build/prod-webpack.config.js
build/webpack.config.js
project/standard/templates/prod-webpack.config.js
project/standard/templates/webpack.config.js
each with the following change:
I also modified web/client/product/appConfig.js:
and finally web/client/themes/index.js:
What am I missing?
The text was updated successfully, but these errors were encountered: