Contributing to Browser Overlays
Thank you for considering contributing to the Browser Overlays project! This document provides guidelines and instructions for contributing.
How to Contribute
Creating a New Overlay
- Fork the repository.
- Create a new branch for your overlay:
git checkout -b new-overlay-name
- Follow the structure:
sources/overlays/overlay-name/
├── overlay.html (or index.html)
├── styles.css (if separate from HTML)
└── assets/ (for images, fonts, etc.)
Or for backgrounds:
sources/backgrounds/background-name/
├── background.html
├── styles.css (if separate from HTML)
└── assets/ (for images, fonts, etc.)
- Include a README.md in your overlay folder explaining its features and customization options.
- Submit a pull request with a description of your overlay.
File Naming Conventions for Automatic Screenshots
Our project automatically generates screenshots of overlays and backgrounds for the documentation. For your overlay to be properly discovered and captured, please follow these naming conventions:
File Naming Priority (Hierarchical Approach)
- First Priority - Use one of these specific filenames:
overlay.html
or overlay.htm
(for overlays).
background.html
or background.htm
(for backgrounds).
index.html
or index.htm
.
default.html
or default.htm
.
- Second Priority - If you need a custom name, use filenames ending with:
*overlay.html
or *overlay.htm
(e.g., my-custom-overlay.html
).
*background.html
or *background.htm
(e.g., winter-background.html
).
- Final Fallback - Any HTML file (
.html
or .htm
extension) will be used if no files match the above patterns.
The screenshot system will search for files in this order and use the first match it finds. To ensure your overlay is captured correctly, we recommend using one of the standard filenames from the first priority list.
Improving Existing Overlays
- Fork the repository.
- Create a new branch for your improvements:
git checkout -b improve-overlay-name
.
- Make your changes, ensuring they follow the style guidelines.
- Submit a pull request with a description of your improvements.
Reporting Issues
- Check if the issue already exists in the GitHub issues.
- Create a new issue with a descriptive title and detailed description.
- Include steps to reproduce the issue.
- Add screenshots if applicable.
Style Guidelines
HTML
- Use semantic HTML5 elements.
- Maintain consistent indentation (4 spaces).
- Include proper meta tags and descriptive titles.
CSS
- Organize properties by type (positioning, display, box model, aesthetics).
- Use hex/rgba colors with consistent opacity patterns.
- Comment major sections.
JavaScript
- Keep it minimal to ensure performance.
- Document functions with clear comments.
- Avoid dependencies where possible.
Visual Design Guidelines
- Follow the Polar Bear Cafe-inspired aesthetic: clean lines, soft colors, nature-inspired elements.
- Maintain a non-distracting design that doesn’t compete with the streamed content.
- Ensure readability of any text elements.
- Design with different stream sizes in mind.
Pull Request Process
- Ensure your code follows the style guidelines.
- Update documentation if necessary.
- Include screenshots of your overlay in action.
- Submissions will be reviewed by maintainers before merging.
This project welcomes contributions from everyone and is committed to creating a friendly and inclusive environment. We encourage designs that are accessible to streamers from diverse backgrounds and that support self-actualization of all LGBTQIA+ people and anti-racist values.
Please provide constructive feedback, focusing on improvement of the project.
Thank you for contributing to make streaming overlays more accessible and beautiful for everyone!