This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"background": "#222222", | |
"black": "#191919", | |
"blue": "#525053", | |
"brightBlack": "#363537", | |
"brightBlue": "#8B888F", | |
"brightCyan": "#C5F2FA", | |
"brightGreen": "#CCE498", | |
"brightPurple": "#B2ACE2", | |
"brightRed": "#FF97BD", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function jsx(tag, attrs, ...children) { | |
let elem = document.createElement(tag); | |
for (const attr in attrs) { | |
const val = attrs[attr]; | |
elem.setAttribute(attr, val); | |
} | |
for (const child of children) { | |
if (child instanceof HTMLElement) { |