Automatic dark and light themes, based on system user-preferences, are handy but in this tutorial, we take that one step further and give our users control.
Using Proxies and subscriber functions, we can create an observable, reactive state system with a tiny footprint.
A handy helper function that will load all user-focusable elements inside a parent element for you.
In this premium tutorial, we’re going to build a burger menu from the ground up, using progressive enhancement, ResizeObserver, Proxy state and of course, super-solid HTML and CSS that pull from the CUBE CSS principles.
Convert a messy multidimensional array into a nice single dimension array of unique items.