Documentation
Ripple — Social Media UI Template
Version 1.0.0 · Vanilla HTML · 11 files · 65 KB
Getting started
- Unzip the download and open index.html in a browser. No server, installation or build step is needed.
- Edit the text directly in the HTML files.
- Change colours, fonts and spacing through the CSS custom properties at the top of assets/css/style.css.
- Replace the artwork in assets/images/ with your own images.
- Upload the whole folder to any static host.
File structure
The download contains these 11 files:
- LICENSE.txt1.7 KB
- README.md2.6 KB
- assets/css/style.css25 KB
- assets/fonts/geist-LICENSE.txt4.4 KB
- assets/fonts/geist-latin-wght-normal.woff229 KB
- assets/images/favicon.svg356 B
- assets/js/main.js36 KB
- documentation/index.html13 KB
- documentation/licenses/lucide-LICENSE.txt3.1 KB
- index.html12 KB
- profile.html15 KB
Colours
These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.
--bg#f0f2f5--surface#ffffff--surface-2#f4f5f8--line#e4e6ee--ink#1b1c2e--ink-2#4a4d66--muted#666a82--brand#5b5bd6--brand-strong#4747c2--brand-soft#e8e8fb--on-brand#ffffff--pink#d61f69--pink-soft#fde6ef--good#0f7a55
Interactive features
Sample data
People, posts, stories, trending tags and notifications are arrays at the top of assets/js/main.js (USERS, POSTS, STORIES, TRENDING, NOTES). Edit or replace them; to load real data, fetch it and assign it to POSTS before renderFeed() runs.
Composer
The submit handler in initComposer() adds the post to the POSTS array. Send the text and attached scene to your API at that point; the 280-character limit is the max variable.
Likes, bookmarks and comments
Handled by one delegated click listener in initPosts(). Persist changes there by calling your API after toggling post.liked, post.saved or pushing to post.comments.
Feed filters
filter holds the active search text, hashtag and saved-only flag. Links such as index.html?tag=design, index.html?q=glaze and index.html#saved open the feed pre-filtered.
Theme toggle
The data-theme attribute on the html element switches the token set in the :root[data-theme="dark"] block. The choice is stored under the key ripple-theme in guarded localStorage.
Stories
Add objects to the STORIES array with a user id, a scene name from SCENES and a caption; the viewer supports next, previous, arrow keys and Escape.
Customisation notes
Brand colour and pink reactions
--brand, --brand-strong and --pink in the :root and :root[data-theme="dark"] blocks of assets/css/style.css drive buttons, links, active states and the like heart.
Avatars and images
avatar() and scene() in main.js draw the SVG artwork from a few properties (hue, skin, hair, scene name). Swap them for img tags with your own photos by editing postHTML() and avatar().
Layout breakpoints
Three columns appear at 1100px; below that the left navigation is replaced by the bottom tab bar and the discover cards move beneath the feed. Change the breakpoint in section 5 of the stylesheet.
Fictional content
All names, handles, posts, counts and notifications are invented sample content. Replace them before launch and remove the demo note under the composer.
What is front-end only
This is a front-end template. The behaviours below are demonstrations that run in the browser; connect them to your own server or service before relying on them.
- Posts, comments, likes, bookmarks and follows exist only in memory and reset when the page reloads or you switch pages.
- The Share button shows a toast but does not copy a link.
- The Message button shows a toast; messaging is not included.
- All people, posts, counts and notifications are fictional sample data.
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- Geist typeface — OFL-1.1 (
assets/fonts/geist-LICENSE.txt) - Lucide icons (inlined SVG) — ISC (
documentation/licenses/lucide-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 24, 2026
- Initial release.