[GH-ISSUE #11] [feature] Vanilla JS port of Sileo #8

Open
opened 2026-03-02 05:16:30 +03:00 by kerem · 5 comments
Owner

Originally created by @hamada147 on GitHub (Feb 16, 2026).
Original GitHub issue: https://github.com/hiaaryan/sileo/issues/11

Thank you for your contribution to open-source with this amazing lib ❤️

I've built a vanilla JS port of Sileo (zero dependencies, framework-free) with 1:1 visual parity sileo-vanilla. With Vue 3 port also being contributed on this PR (#10), would you be open to restructuring as a monorepo (src/core, src/sileo-react, src/sileo-vue, src/sileo-vanilla, etc.)? Happy to submit a PR if so.

Edit 1 (16 Feb 2026):

Edit 2 (19 Feb 2026):

  • I've mirrored the improvement introduced till this commit SHA b851ddc6856b9eb5e7b8f252b2917370661819ea
  • Allow passing «type» to sileo.show() for dynamic toast state
  • Removed global CSS scope for elements outside Sileo
  • Added support option styling (fill background, description colour) light/dark mode when toggle switch theme

Edit 3 (21 Feb 2026):

  • fixed: title was not being shown
Originally created by @hamada147 on GitHub (Feb 16, 2026). Original GitHub issue: https://github.com/hiaaryan/sileo/issues/11 Thank you for your contribution to open-source with this amazing lib ❤️ I've built a vanilla JS port of Sileo (zero dependencies, framework-free) with 1:1 visual parity [sileo-vanilla](https://github.com/hamada147/sileo-vanilla). With Vue 3 port also being contributed on this PR (#10), would you be open to restructuring as a monorepo (src/core, src/sileo-react, src/sileo-vue, src/sileo-vanilla, etc.)? Happy to submit a PR if so. Edit 1 (16 Feb 2026): - [Live Demo](https://hamada147.github.io/sileo-vanilla/) Edit 2 (19 Feb 2026): - I've mirrored the improvement introduced till this commit SHA [b851ddc6856b9eb5e7b8f252b2917370661819ea](https://github.com/hiaaryan/sileo/commit/b851ddc6856b9eb5e7b8f252b2917370661819ea) - Allow passing «type» to sileo.show() for dynamic toast state - Removed global CSS scope for elements outside Sileo - Added support option styling (fill background, description colour) light/dark mode when toggle switch theme Edit 3 (21 Feb 2026): - fixed: title was not being shown
Author
Owner

@ssantss commented on GitHub (Feb 16, 2026):

Thanks for the initiative on the vanilla version! 🙌

I noticed a couple of bugs in your live demo:

  1. Positions → States conflict: When you click any position in the "Positions" section, the "States" section stops working — no toast fires after that.

Would be great to get those fixed before merging. Looking forward to seeing this move forward!

<!-- gh-comment-id:3909897794 --> @ssantss commented on GitHub (Feb 16, 2026): Thanks for the initiative on the vanilla version! 🙌 I noticed a couple of bugs in your live demo: 1. **Positions → States conflict**: When you click any position in the "Positions" section, the "States" section stops working — no toast fires after that. Would be great to get those fixed before merging. Looking forward to seeing this move forward!
Author
Owner

@hamada147 commented on GitHub (Feb 16, 2026):

@ssantss thank you for taking the time to test my implementation 🤗. I will address these issues in a couple of hours

<!-- gh-comment-id:3910286512 --> @hamada147 commented on GitHub (Feb 16, 2026): @ssantss thank you for taking the time to test my implementation 🤗. I will address these issues in a couple of hours
Author
Owner

@hamada147 commented on GitHub (Feb 17, 2026):

@ssantss issue has been fixed 🤗

<!-- gh-comment-id:3916730837 --> @hamada147 commented on GitHub (Feb 17, 2026): @ssantss issue has been fixed 🤗
Author
Owner

@enderhacker commented on GitHub (Feb 18, 2026):

The demo is now broken. It seems that the URLs that import the library into the Live Demo are not working.
Please fix this as a vanilla port of this library would be amazing!

<!-- gh-comment-id:3923269276 --> @enderhacker commented on GitHub (Feb 18, 2026): The demo is now broken. It seems that the URLs that import the library into the Live Demo are not working. Please fix this as a vanilla port of this library would be amazing!
Author
Owner

@hamada147 commented on GitHub (Feb 19, 2026):

@enderhacker fixed it. It was using the development URL, not the production URL, to import the JS script. It should now be fixed.

<!-- gh-comment-id:3924439767 --> @hamada147 commented on GitHub (Feb 19, 2026): @enderhacker fixed it. It was using the development URL, not the production URL, to import the JS script. It should now be fixed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/sileo#8
No description provided.