Edit - I thought I couldn’t get this to work with chrome devtools overrides because it kept flickering when I did it… - But it does work! - See second post.
Step 1.
Open Chrome Dev Tools. Use the pop out mode.
In the future:
Just hit cmd option i (mac) or ctrl shift i (windows/linux) for dev tools
Check that you’ve enabled overrides…
To go back to normal mode just close dev tools
edit: I got the flickering to stop which was caused by the @import
It sort of is an anvil feature already.
Currently it will happen on screens smaller than 991px.
All I did was change a few CSS media queries so that it happens on screens smaller than 4001px…
p.s. for anyone who wants to use the dark reader I suggested from the chrome webstore. A small caveat is that the highlight code colours aren’t really visible. I have a solution to that so do drop me a message, or reply to this post, if you need it.
edit: I’ve changed the css file so that the highlight colours can be changed… should you wish to use dark reader just uncomment those lines in the css file.
For anyone interested, you can use Stylus to set this up as your default so you won’t need to keep Dev Tools open or deal with overrides. The extension’s available for Firefox, Chrome, and Opera.
I’m on Firefox and created a rule that applies @stucork’s CSS tweak to any URL starting with https://anvil.works/build#app:. It’s working well so far - I just toggle the rule on or off as needed.
Edit - anvil now has fullscreen mode build in - click the expand arrows - I’ll leave this code here (edited to work with anvil fullscreen) which people may find the dark mode highlighting useful - Plus you may wish to adjust the width that the floating toolbox takes up…
Original Post
What a great suggestion!!
So here is my edit for the full-screen mode with @kevin’s suggestion using Stylus - which is also available on chrome webstore.
Once installed:
click the Stylus Icon --> Manage --> Write New Style
here are the screenshots - using chrome - incognito just in case anything else was impacting it.
Checked on firefox and also similar issue (though the scroll bar fades when not in use on firefox)