GithubHelp home page GithubHelp logo

ka0z23 / pm-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amdelamar/pm-theme

0.0 0.0 0.0 2.88 MB

๐ŸŽจ Easy Themes for ProtonMail (v3.16.x)

Home Page: https://amdelamar.com/pm-theme/

License: MIT License

CSS 100.00%

pm-theme's Introduction

Custom Themes for ProtonMail

This is a collection of simple color themes for the ProtonMail web app. ๐ŸŽจ

ย 

Dark Theme

Copy the CSS directly and edit the colors.

ย 

Flat Theme

Copy the CSS directly and edit the colors.

ย 

Background Image Theme

Copy the CSS directly and customize the variable --image to your own image url. (Might not work with Content-Security-Policy blocking remote content anymore.)

ย 

GM Theme

Copy the CSS directly and edit the colors.

ย 

Customize

  1. Copy a CSS theme above.
  2. Paste in ProtonMail under Settings > Appearance > Custom Theme.
  3. Customize the colors (or leave default).
  4. Enjoy!

You can customize the theme colors to your liking:

/* First paste any CSS theme. */

/* Now you can set your colors. */
:root {
    --theme1: #3652d1; /* Blue instead of Red */
}

The #xxx value is hexidecimal color value. And the root keyword is a CSS variable, that just sets the color values globally. These themes have been simplified to 7 "core" colors so you can easily make a custom color palette of your choice. You can also generate a pretty color palette from this site.

:root {
/* Core Theme Colors */
    --theme1: #66669a; /* Purple */
    --theme2: #5f5f60; /* Dark Grey */
    --theme3: #f0f0f0; /* Light Grey */
    --theme4: #bcbdbf; /* Grey */
    --theme5: #797a7c; /* Medium Grey */
    --theme6: #9397cd; /* Light Purple */
    --theme7: #fefefe; /* White */
}

Enjoy!

Notes

  • This is only available for the WEB version and not the MOBILE app.
  • Some of these themes aren't always the best. If you have any problems you can open an issue here.
  • If you're trying to use @import, the Content-Security-Policy (CSP) header blocks @import statements from loading remote content. To get around this, please copy and paste the entire contents of the CSS theme rather than the @import line.

Privacy and Performance

The above code used a CSS import statement for ease of use and quickly trying out a theme. However, the CSS import statement causes files to load sequentially instead of parallel, thus slowing down your pages load performance. Also, if your privacy is of the utmost importance, then I wouldn't use the CSS import statment from above. It potentially could reveal your behavior e.g. identifying when you load up ProtonMail using which specific theme. To avoid this, please copy & paste the entire contents of the CSS file, rather than use the import statement. This is no longer a concern, now that the Content-Security-Policy (CSP) Header blocks @import statements from loading remote content.

Contribute

Spot a problem or bug? You can open an issue here.

I'll accept pull requests to the master branch too. Please make sure to minify the CSS as well.

Share with friends

  • Copy, edit, and share any of these themes.
  • Licensed as MIT and free forever.

pm-theme's People

Contributors

amdelamar avatar cort1c avatar rafficer 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.