New Show Hacker News story: Show HN: I made a browser extension for building your own custom HN themes
Show HN: I made a browser extension for building your own custom HN themes
2 by dandrew5 | 0 comments on Hacker News.
Hi HN! I’ve spent the last few weeks writing a browser extension that lets users write their own HN themes using Handlebars and CSS. It works by converting the current Hacker News page’s content into an object that is made available to the user-defined Handlebars templates. There is a built-in code editor that makes writing themes super easy and you can see changes in real-time. If you don’t want to write a theme from scratch, there are premade themes available or you may import one made by somebody else. It is shipped with Bootstrap so you can get pretty far without needing to write a lot of custom CSS. Material icons are also included so your themes get iconography out of the box. Any theme can be toggled into dark mode with a single click. It is open-sourced under the MIT license so feel free to use any of the code in the linked repo[0]. Additionally, I’ve put together a short demo video on YouTube[1]. If you decide to check it out, let me know of any feedback and please share any themes you create! I’d be happy to answer any questions. [0] https://ift.tt/ejhT2AC [1] https://youtu.be/6DxLJQrKXa0
2 by dandrew5 | 0 comments on Hacker News.
Hi HN! I’ve spent the last few weeks writing a browser extension that lets users write their own HN themes using Handlebars and CSS. It works by converting the current Hacker News page’s content into an object that is made available to the user-defined Handlebars templates. There is a built-in code editor that makes writing themes super easy and you can see changes in real-time. If you don’t want to write a theme from scratch, there are premade themes available or you may import one made by somebody else. It is shipped with Bootstrap so you can get pretty far without needing to write a lot of custom CSS. Material icons are also included so your themes get iconography out of the box. Any theme can be toggled into dark mode with a single click. It is open-sourced under the MIT license so feel free to use any of the code in the linked repo[0]. Additionally, I’ve put together a short demo video on YouTube[1]. If you decide to check it out, let me know of any feedback and please share any themes you create! I’d be happy to answer any questions. [0] https://ift.tt/ejhT2AC [1] https://youtu.be/6DxLJQrKXa0
Comments
Post a Comment