Proton is a simple personal blogging theme for WordPress.
This theme is inspired by Casper 5.0, the default theme from the Ghost blogging platform.
The goal of this theme was to port Casper 5.0 to WordPress while adding personal customizations.
Feel free to contact me if you use Proton in one of your websites.
- Gutenberg Editor Support
- Search
- Comments
- Customizer
- Social Profiles
- Responsive Design
- Infinite Scroll (with Jetpack)
- Dark Mode
- In your admin panel, go to Appearance > Themes and click the Add New button.
- Click Upload Theme and Choose File, then select the theme's .zip file. Click Install Now.
- Click Activate to use your new theme right away.
Dark mode is not enabled by default. To enable this feature go to Appearance > Customize > Site Identity > Color Scheme.
This will display the theme in light mode for everyone.
This will display the theme in dark mode for everyone.
This will automatically adjust the appearance based on the users OS appearance/color preference.
The recommended way to edit the theme is to create a child theme.
This will ensure that none of your changes will be lost when you update the theme.
Proton styles are compiled using Gulp/PostCSS to polyfill future CSS spec. You'll need Node, Yarn and Gulp installed globally. After that, from the theme's root directory:
# install dependencies
yarn install
# run development server
yarn dev
Now you can edit /assets/css/
files, which will be compiled to /assets/built/
automatically.
The zip
Gulp task packages the theme files into dist/<theme-name>.zip
, which you can then upload to your site.
# create .zip file
yarn zip
- Autoprefixer - Don't worry about writing browser prefixes of any kind, it's all done automatically with support for the latest 2 major versions of every browser.
- Color Mod
Proton uses inline SVG icons, included. You can find all icons inside /template-parts/icons.
To use an icon just use the get_template_part() function:
<?php get_template_part('template-parts/icons/website'); ?>
Casper, Copyright (c) 2013-2022 Ghost Foundation
License: MIT license.
Source: https://github.com/TryGhost/Casper
_s, Copyright 2015-2018 Automattic, Inc.
License: GPLv2 or later
Source: https://github.com/Automattic/_s/