Library icon indicating copy to clipboard operation
Library copied to clipboard

[FEATURE] Provide a predefined custom theme showing how to change all colors

Open christopherpickering opened this issue 3 years ago • 5 comments

In the settings > theme it would be nice to have a predefined list of changes that should be made to recolor the website to fit an orgs theme.

christopherpickering avatar Mar 22 '22 14:03 christopherpickering

Came out here to see if this was an option. Looks like currently, to change colors, we need to reconfigure the SCSS files and rebuild the site min css from them?

dukasmc1 avatar Apr 21 '22 16:04 dukasmc1

Hi @dukasmc1 , you can actually override the default colors/style in the settings > theme. You can test out on the demo. https://demo.atlas.bi/settings#theme

image

christopherpickering avatar Apr 21 '22 17:04 christopherpickering

The predefined list would be extremely helpful since the bulma default colors are in a ton of places

dukasmc1 avatar Apr 21 '22 17:04 dukasmc1

Thanks! Yes it would be very helpful. On the other side, for "very deep" customization we should probably add a blank scss file that is imported before bulma - then when doing automatic deploys you can just replace that file with your settings.

Right now a deploy process looks like -

npm install
-- insert appsettings.cust.json, custom logo and some scss file
npm run dotnet:publish
dotnet tool install --global dotnet-ef
dotnet ef database update --project web/web.csproj -v

then maybe some ssh commands to load the newly built site from the /out folder to IIS:

ssh $atlas_ssh_user@$atlas_server "net stop solr" || true
# stop website
ssh $atlas_ssh_user@$atlas_server "Powershell.exe -Command \"Stop-Website -Name atlas\"" || true
# stop app pool
ssh $atlas_ssh_user@$atlas_server "Powershell.exe -Command \"Stop-WebAppPool -Name atlas\"" || true
# load new site
scp -r /out/* $atlas_ssh_user@$atlas_server:/c:/inetpub/wwwroot/atlas
# start app pool
ssh $atlas_ssh_user@$atlas_server "Powershell.exe -Command \"Start-WebAppPool -Name atlas\""
# start website
ssh $atlas_ssh_user@$atlas_server "Powershell.exe -Command \"Start-Website -Name atlas\""
# start search
ssh $atlas_ssh_user@$atlas_server "net start solr"

christopherpickering avatar Apr 21 '22 18:04 christopherpickering

The predefined list would be extremely helpful since the bulma default colors are in a ton of places

@dukasmc1 would you like to see how our implementation is setup sometime?

christopherpickering avatar Apr 21 '22 21:04 christopherpickering