Source code for my itch.io profile page.
Main stylesheet: src/styles.css
|
Profile content: src/content.html
- May 23rd 2025 — Profile Page Updates: Documentation
- March 15th 2026 — Profile Page Updates: Little Updates
Settings used in the itch.io profile page's theme editor.
| Theme setting | Value | |
| Color | BG |
|
| Text |
|
|
| Link |
|
|
| Text | Font |
|
| Size |
|
|
| Images | Size |
|
| My Projects | Layout |
|
| B. Radius |
|
|
| Collections | Layout |
|
-
Star this repository?? 👉👈 (optional)
-
Fork this repository, and clone your fork locally.
-
Install the dependencies.
bun install -
Modify the
src/styles.cssand/or thesrc/content.htmlto your liking.See the Development section.
-
Edit
package.json, and bump theversionfield. e.g. from1.2.0to1.3.0. -
Build the CSS.
bun run build -
Test the CSS and the HTML, by copy-pasting the content of
dist/test.cssanddist/content.htmlto your itch.io profile page. -
If everything's fine and ready, publish your updates.
bun run publishAnd then copy-paste the CSS from
dist/styles.cssto your itch.io profile page's CSS field, anddist/content.htmlto your profile content, and save it.
Important
If you've only changed the HTML, there's no need to bump the version and publish the update via bun run publish, as that is only for the CSS updates.
You should, however, run the bun run build, and then commit and push the changes to the HTML files yourself.
How I update and develop my profile page with its HTML and CSS.
I use Firefox, because it has a nice CSS editor feature on its dev tool.
-
Open your itch.io profile page. And clear out the custom CSS field (just clear it out, you don't need to save it).
-
Open the Firefox Web Developer Tools by pressing f12 or Ctrl + Shift + I.
-
Go to the
Style Editortab, and import the CSS source filesrc/styles.css.You can start working with the CSS from here. And save your changes by pressing Ctrl + S.
Important
When importing CSS file that has unicode characters in it (like this CSS), Firefox might break those characters.
To fix that:
- Open the CSS in your favourite text editor.
- Select and copy ALL of the content.
- Go back to the Firefox
Style Editor, and paste over the imported CSS, overwriting it.
As for editing the HTML, I just copy-paste the content of src/content.html to the .user_profile.formatted element on the Inspector tab. Edit it there, and copy it back to the src/content.html HTML file.
CSS on itch.io's profile page is limited to only 5120 characters. And so, the whole build pipeline is made as a workaround for that limitation. The idea is:
- If the CSS' characters count exceeded 5120, split it to two.
- One 'main' CSS, that will be copy-pasted directly onto the profile page.
- The other half of the CSS will be imported, using CSS'
@import, via jsDelivr. Hence the need of versioning, as jsDelivr caches aggressively.
Warning
Because of the nature of @import in CSS, it will cause FOUC on the profile page.
MIT licensed :)
