Coder Social home page Coder Social logo

omicron-b / protonmail-themes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from csalmeida/protonmail-themes

0.0 1.0 0.0 32.43 MB

Customise ProtonMail with themes and enhance your encrypted email experience.

License: GNU General Public License v3.0

JavaScript 0.68% CSS 82.68% Dockerfile 0.85% SCSS 15.80%

protonmail-themes's Introduction

ProtonMail Themes

Since v1.16, the encrypted mail service allows the use of themes with Cascading Style Sheets. You can pick a theme from the Themes folder or create a custom one yourself using CSS. Feel free to use the theme template provided as a starting point.

These themes were developed for v4.0.x of ProtonMail.

Table of contents

Click to expand contents

Documentation ๐Ÿ“–

How to use a theme

  1. Pick one from the themes folder in the repository.
  2. Select the theme and select the raw view to see all the code.
  3. Select all and copy the code.
  4. Install the Stylus browser if not done already.
  5. Add a new style in Stylus and paste the code in the text area.
  6. Below the text area select from the Applies to dropdown "URLs on the domain" and add protonmail.com as a value and press save.
  7. Select the added theme in Stylus' Manage panel to enable it.

In order to remove a theme, open Stylus, click Manage, and untick the box of the theme or remove it altogether by pressing X.

The theme should be applied and you should see the changes immediately.

Available themes

Check out some of the available themes you can choose from.

Expand theme list ๐Ÿ‘ฉ๐Ÿปโ€๐ŸŽจ

Screenshot of Green Lume theme.

Screenshot of Vitamin C theme.

Screenshot of Dark Bubble Gum theme.

Screenshot of Blue and Orange theme.

Screenshot of Ochin theme.

Screenshot of Dracula theme.

Screenshot of Monokai theme.

Screenshot of Deutera One theme.

Screenshot of Gruvbox theme.

Screenshot of Nord theme.

Quick setup guide

Required for theme creation only

Install NodeJS, after forking/cloning this repository install dependencies:

cd protonmail-themes
# Requires Node v15.2.1, run `nvm use` to set the correct version. 
npm install

Themes can be created by duplicating and renaming the example theme folder and its .scss file to the theme name. Then edit that file by changing the color variables. You can also extend the theme by editing the _styles.css partial or by creating a custom one.

Two commands are available to compile themes:

*// Compiles themes as changes are made.*
npm run watch

*// Compiles all themes.*
npm run build

Container Setup with Docker

  1. Install Docker. For MacOS and Windows, Docker Desktop is recommended instead.
  2. Run docker compose up -d. This will run the development environment.

Rebuild and run Docker container from a clean slate with with:

# Change directory into the project.
cd protonmail-themes
docker compose rm &&
docker compose pull &&
docker compose build --no-cache &&
docker compose up -d --force-recreate

Additional notes:

  • To examine the container run docker ps.
  • To stop the container run docker compose down.
  • The container will run a Node image with the version this project supports along with the dependencies. Then it will run the watch command so themes can be compiled as changes are made.
  • When using Windows Subsystem Linux, cloning the repo into a folder inside /home/ directory of you distro of choice is reccomended since mounted drivers and folders (i.e /mnt/c) won't issue a file change event.

Feedback and fixes

If you notice something's missing feel free to make a pull request. If you have no time to fix it please open an issue.

Supporting and maintaining the project

ProtonMail is a great email service, I enjoy working on the project and provide themes for all. Please consider making a small donation, just the price of a cup of coffee goes a long way to help me maintain it and keep adding color to your private email experience! Thank you ๐Ÿ™‡๐Ÿป

PayPal Me

Frequently Asked Questions

Do these themes compromise security?

In short, no. All themes listed here will always style existing elements from ProtonMail's UI and not import any third party files from anywhere. At the time I created these themes I've received a few directions from ProtonMail's co-founder Jason Stockman in order to avoid breaking layout and security issues.

Why is Stylus required to use custom themes?

Support for custom themes in ProtonMail's appearance settings seems to have been disabled in ~v4.0.0 beta 33.

To use custom themes an alternative needs to be used to load the stylesheet. Stylus has been recommended but any other alternative should work.

Where can I find more themes?

Web References

protonmail-themes's People

Contributors

33b5e5 avatar atn-d avatar ayushs08 avatar csalmeida avatar dependabot[bot] avatar flipjargendy avatar kellycopas avatar klaudiosinani avatar laurens94 avatar plugarut avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.