catOS
- 4 Devlogs
- 6 Total hours
Custom WebOS
Custom WebOS
opened this project after like a week away and genuinely could not find anything. one style.css, one script.js, both hundreds of lines of everything everywhere. i wrote every line of it and i still had to ctrl+f to find the clock. it was a junk drawer with a cat on top.
so this whole session was cleaning. no new features, nothing shiny, just four hours of moving code around like a little file gremlin.
styles:
apps/ folder so catnip stops rubbing up against the core window code (it’s a cat. it rubs on things.)
the tokens file from last time made this way less painful than it deserved to be, since all the colors were already in one place, nothing broke visually while i shuffled everything. past me did one 1 smart thing and present me is grateful.
weirdest part is opening a file and already knowing what’s in it before it loads. revolutionary technology.🤯
first thing i did was get rid of the terminal look. it was cool for about a week, but staring at glowing teal on near-black was starting to feel like my OS was yelling at me. so i rebuilt the entire theme to look like a warm peach background, light grey panels, one orange accent doing all the heavy lifting. it’s calm now. it’s a website you could actually read at 2am without your retinas filing a complaint.
did it the right way this time with CSS variables, so the whole palette lives in like eight lines at the top of the file. want a different accent? change one value. past me would have found-and-replaced forty hex codes and missed six of them.
also swapped the font to Inter for that clean note-app feel, kept Space Mono around for code and the clock because some things are sacred.
oh, and there’s a new app:
it’s a cookie-clicker but the cookie is my friend’s cat. you tap the cat, treats go up, you buy auto-petters and laser pointers and eventually a “cat loaf mine” that prints treats while you’re not even looking. it saves your progress. i have lost dozens minutes of my life to it already and i wrote it.
so the cat remains. the cat is eternal.
you can grab welcome.exe by its title bar and fling it around the desktop, hit the little red dot to close it, and click xerneasOS up top to summon it back. it’s a real window now. it even has a title bar.
spent a while wrestling with the drag math turns out you have to keep track of the cursor’s offset from the window when the drag starts. otherwise the window instantly teleports so its corner snaps to your mouse. not exactly the intended user experience.
also did some housekeeping: ripped all the CSS into style.css and the JavaScript into script.js so my HTML isn’t one giant cursed wall of inline styles anymore. windows are now a reusable .window component, so making future apps should be way easier.oh, and there’s a live clock in the top bar that updates every second. new Date() my beloved.
next time: a real wallpaper, maybe an actual second app, and slowly making this feel less like “one draggable window about a cat” and more like an operating system (that’s still about a cat)
today i learned the difference between margin and padding. profound stuff. life-changing, really.
anyway none of that matters because i put a picture of my friend’s cat on my website and now it’s the best site ever made.
just started webOS development! things i poked at:
next time: probably a wallpaper, a window, maybe a clock. or more cats. undecided.