-
Notifications
You must be signed in to change notification settings - Fork 0
2. Customization Guide
This guide provides a deep dive into customizing the visual appearance of your StarryBio page. While the config.js file handles all the content, this guide will show you how to change fonts, colors, images, and more by editing the style.css and index.html files.
For visual customization, you will primarily be working with these files and folders:
- /assets/images/: This folder contains all the images for your site, including your profile picture, favicon, and status icons.
-
style.css: This is the main stylesheet that controls all the colors, spacing, animations, and visual effects. -
index.html: You will only need to edit this file if you want to change the fonts used on the site.
Replacing the default images is the quickest way to personalize your page.
- Choose a square image for your profile picture. For best results, use a
.webpformat to keep the file size small. - Place your new image file into the /assets/images/ folder.
- Open
config.jsand update theprofileImageproperty to match your new file name.-
Example:
"profileImage": "assets/images/my-new-photo.webp"
-
Example:
The favicon is the small icon that appears in the browser tab.
- Create a small, square icon (usually
.ico,.png, or.webp). - Place the file in the /assets/images/ folder.
- Open
index.html, find the<link rel="icon">tag in the<head>, and update thehrefattribute to point to your new favicon file.-
Example:
<link rel="icon" type="image/webp" href="assets/images/favicon.webp">
-
Example:
You can replace the default status icons (online.webp, idle.webp, etc.) with your own custom images.
- Create your new icons. They should be small, square, and preferably have a transparent background.
- Place them in the /assets/images/ folder.
- Open
config.jsand update the paths in thestatusIndicator.iconsobject to match your new filenames.
The site uses [Google Fonts](https://fonts.google.com/) for its typography. You can easily swap them out for any other font from their library.
- Go to [fonts.google.com](https://fonts.google.com/) and find the font(s) you want to use.
- Select the styles you need (e.g., Regular 400, Bold 700, Black 900).
- On the right-hand side, you will see a "Selected family" panel. Click the
<link>option under "Use on the web". - Copy the entire
<link>tag provided by Google Fonts. It will look something like this:<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap" rel="stylesheet">
- Open your
index.htmlfile. - Find the existing Google Fonts
<link>tags in the<head>section. - Delete the old font links and paste the new ones you copied from Google Fonts.
- Google Fonts will provide the CSS
font-familyname to use (e.g.,font-family: "Roboto", sans-serif;). - Open your
style.cssfile. - Find the relevant CSS rules and update the
font-familyproperty.- To change the main body font, edit the
bodyrule. - To change the font for your name, edit the
.profile-namerule. -
Example:
body { font-family: 'Roboto', sans-serif; /* Changed from 'Inter' */ }
- To change the main body font, edit the
The style.css file controls the entire visual theme of your page. Here are the key sections you might want to edit.
The animated starfield sits on top of a background gradient. You can change these colors in the body CSS rule.
body {
/* Edit these two hex codes to change the gradient */
background: linear-gradient(135deg, #0B1C36 0%, #1A2A4D 40%, #2A3B65 100%);
}The main card has a semi-transparent, blurred background.
.profile-card {
/* Change the RGBA value to adjust the card's background color and transparency */
background: rgba(11, 28, 54, 0.6);
/* Change the border color and transparency */
border: 1px solid rgba(176, 196, 222, 0.25);
}You can change the colors and effects of the main text elements.
.profile-name {
/* The profile name uses a gradient for its color. Edit these hex codes. */
background: linear-gradient(135deg, #E0E7FF 0%, #B0C4DE 50%, #FFFFFF 100%);
/* You can also change the text-shadow for a different glow effect */
text-shadow: 0 0 15px rgba(224, 231, 255, 0.8);
}
.profile-title {
/* Change the color of the subtitle/bio text */
color: #B0C4DE;
}You can customize the default and hover states of the link buttons.
.link-button {
/* Default state background color and transparency */
background: rgba(42, 59, 101, 0.6);
/* Default state text color */
color: #E0E7FF;
/* Default state border color */
border: 1px solid rgba(176, 196, 222, 0.3);
}
.link-button:hover {
/* Hover state background color and transparency */
background: rgba(176, 196, 222, 0.4);
/* Hover state text color */
color: #FFFFFF;
}The announcement banner has its own set of styles you can modify.
#announcement-banner {
/* Change the RGBA value to adjust the banner's background color and transparency */
background: rgba(251, 191, 36, 0.25);
/* Change the border color */
border: 1px solid rgba(251, 191, 36, 0.5);
/* Change the text color */
color: #FFFFFF;
}By experimenting with these values, you can create a truly unique theme for your StarryBio page!