How’s it going, I'm a Adam, a Full-Stack Engineer, actively searching for work. I'm all about JavaScript. And Frontend but don't let that fool you - I've also got some serious Backend skills.
Location
City of Bath, UK 🇬🇧
Education
10 plus years* active enterprise development experience and a Fine art degree 🎨
Version 1.1.0 is being worked on and it's going to be better because:
no async or promise needed
no custom event
CSS custom property fallback will be supported
Polymorphism means that themeTextColor can be called(), address.someMethod(), oh and its a string too:
Preview:
importrCSSPropsfrom"./cssProps";const{themeTextColor}=rCSSProps();// watch for changesthemeTextColor.subscribe((change)=>{console.log("Im watching for theme text changes",change);});// set the variable and inject into the domthemeTextColor("#000");setTimeout(()=>{// change the theme text color after 3 seconds to simulate dark mode toggledthemeTextColor("#fff");},3000);// just stringify it... more magic!console.log(`
background: ${themeTextColor};
`);
I have exhausted every magic trick I know in JavaScript to make this easy to use I will be publishing this thing once I have added a fallback. The code above is in a forked sandbox, I will do another writeup.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Version 1.1.0 is being worked on and it's going to be better because:
Polymorphism means that
themeTextColor
can be called(), address.someMethod(), oh and its a string too:Preview:
I have exhausted every magic trick I know in JavaScript to make this easy to use I will be publishing this thing once I have added a fallback. The code above is in a forked sandbox, I will do another writeup.