-
Notifications
You must be signed in to change notification settings - Fork 2.8k
How to change theme? Editing src/public/css/main.scss throws error "Incompatible units: 'rem' and 'px'." #264
Comments
I tried updating it to this for the gsdk theme:
I did |
Hi, |
@JohnReedLOL assuming that you are trying to use GSDK (https://www.creative-tim.com/product/get-shit-done-kit); we used to have it as part of the base theme for hackathon-starter, but removed it because it is not compatible with Bootstrap 4. If I remember it correctly, the error that you are getting |
@YasharF I want to use literally any theme that isn't the default because the default looks bad. I cannot get any non-default theme to work. Is there any way you can fix this issue? |
I think I figured out what the problem is. I verified that what you have in your original post doesn't work, but the same change in hackathon-starter does work. I looked at the source code in this repo, and it looks like this repo is out of sync with hackathon-starter. https://github.com/microsoft/TypeScript-Node-Starter/blob/master/src/public/css/themes/flatly/_flatly.scss is Flatly 3.3.7 which is not compatible with Bootstrap 4. This is already fixed with a bunch of other bug fixes in hackathon-starter. @peterblazejewicz there is going to be more improvements, feature additions, and bug fixes in hackathon-starter, and perhaps a better process for getting patches from there to here could help. I can probably submit a PR with a bunch of patches in about a week or two, but can't 100% commit to it at this point. By the way, in the way we have implemented hackathon starter, you don't even need to rebuild, or even restart the server. Just making the following changes and a hard refresh on the browser is enough to load the new theme:
After: |
/cc @orta any thoughs on this? Thanks! |
I took another look at this repo:
|
Hi, thanks for this project, but it's not working for me either. I have just download the project and modify the main.scss file and the theme remains the same. |
I want to change the theme from default to flatly. I think that the way to do that is by modifying this file.
Namely changing these lines:
To this:
But I get this error:
How do I change the theme?
The text was updated successfully, but these errors were encountered: