1
0
mirror of https://github.com/nileane/TangerineUI-for-Mastodon synced 2024-11-27 06:18:09 +09:00
Tangerine-UI/README.md

187 lines
14 KiB
Markdown
Raw Normal View History

2023-09-02 19:33:09 +09:00
<h1>
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./art/Logo_Wide_Dark.png?raw=true">
<source media="(prefers-color-scheme: light)" srcset="./art/Logo_Wide.png?raw=true">
2023-09-02 21:42:15 +09:00
<img alt="Tangerine UI for Mastodon" src="./art/Logo_Wide.png?raw=true" height="110">
2023-09-02 19:33:09 +09:00
</picture>
</h1>
2023-07-11 03:50:54 +09:00
2023-09-02 19:33:09 +09:00
## A Tangerine redesign for Mastodon's Web UI.
2023-08-02 22:39:33 +09:00
Tangerine UI features a bubblier look, a more compact timeline, round avatars, and a soft color palette that automatically switches between light and dark modes.
2023-07-11 03:50:54 +09:00
[🕹️ **Live demo** @ nileane.fr](https://nileane.fr) • [📢 **Announcement** post on Mastodon](https://nileane.fr/@nileane/110691663040709608) • [📝 **Changelog**](https://github.com/nileane/TangerineUI-for-Mastodon/releases)
2023-10-23 21:53:12 +09:00
[🐘 **Follow Tangerine UI** on Mastodon](https://nileane.fr/@TangerineUI)
2023-07-21 03:58:44 +09:00
2023-07-21 04:09:05 +09:00
## Summary
2023-07-21 06:17:05 +09:00
* [**Variants**](#variants)
* [**List of instances that use Tangerine UI**](#list-of-instances-that-use-tangerine-ui)
2023-07-21 06:17:05 +09:00
* [**Installation**](#installation-for-mastodon-admins)
2023-07-21 03:58:44 +09:00
* [Install on a **Mastodon** instance](#installation-for-mastodon-admins)
* [Install on a **Glitch-soc** instance](#installation-for-glitch-soc-admins)
2023-07-21 06:02:19 +09:00
* [Install as a regular user](#installation-for-regular-users)
2023-07-20 01:00:14 +09:00
* [**Things to know**](#things-to-know)
2023-07-20 01:16:44 +09:00
* [**Accessibility**](#accessibility)
2023-07-20 01:00:14 +09:00
* [**Credits**](#credits)
2023-08-02 22:41:47 +09:00
* [**Support me**](#support-me-3)
2023-07-19 20:55:31 +09:00
## Variants
2023-07-19 23:57:53 +09:00
* **Tangerine 🍊**
Default variant for Tangerine UI, featuring a soft orange palette.
2023-11-21 22:51:40 +09:00
<img width="1684" alt="TangerineUI-tangerine" src="https://github.com/nileane/TangerineUI-for-Mastodon/assets/914451/5eba6ead-5634-4ce8-aaf4-ccec7f11a690">
2023-07-13 20:26:53 +09:00
2023-07-19 23:57:53 +09:00
* **Purple 🪻**
2023-11-21 22:51:40 +09:00
For those of you who like Tangerine UI but want to stick to Mastodon's purple.
<img width="1684" alt="TangerineUI-purple" src="https://github.com/nileane/TangerineUI-for-Mastodon/assets/914451/8445c052-7081-4f00-b46e-5d003e4209a2">
* **Cherry 🍒**
I won't be held responsible if you end up licking your screen with this one.
<img width="1684" alt="TangerineUI-cherry" src="https://github.com/nileane/TangerineUI-for-Mastodon/assets/914451/33da47d7-d357-43ff-b2c1-6c15bc3f0ecb">
## List of instances that use Tangerine UI
2023-08-25 03:51:43 +09:00
These are known instances that have enabled Tangerine UI for their users, either as the only theme, or as an optional theme.
2023-08-02 20:11:08 +09:00
2023-08-02 21:01:14 +09:00
If you're an admin and have installed Tangerine UI on your instance, **feel free to add yours here** (open a PR, or just [DM me](https://nileane.fr/@nileane))
2023-08-07 22:28:00 +09:00
| **Instance** | **User count** | **Installed as...** | **Default theme?** |
| -------------------------------------------------------- | -------------- | ------------------- | ----------------------- |
| [piaille.fr](https://piaille.fr) | 10K+ | an optional theme | No |
| [norden.social](https://norden.social) | 5K+ | an optional theme | No |
2023-09-22 06:10:52 +09:00
| [vmst.io](https://vmst.io) | 2K+ | an optional theme | No |
2023-10-12 00:29:05 +09:00
| [eldritch.cafe](https://eldritch.cafe) | 1.5K+ | an optional theme | No |
| [octodon.social](https://octodon.social) | 1K+ | an optional theme | No |
2023-10-13 02:17:23 +09:00
| [social.lol](https://social.lol) | 750+ | an optional theme | No |
2023-08-07 22:28:00 +09:00
| [shelter.moe](https://shelter.moe) | 350+ | an optional theme | No |
| [pipou.academy](https://pipou.academy) | 100+ | an optional theme | No |
| [indiepocalypse.social](https://indiepocalypse.social) | 100+ | an optional theme | No |
| [bolha.one](https://bolha.one) | 20+ | an optional theme | Yes (Tangerine variant) |
| [i1.no](https://i1.no) | 15+ | the only theme | Yes (Purple variant) |
2023-08-11 21:45:58 +09:00
| [zeppelin.flights](https://zeppelin.flights) | 15+ | the only theme | Yes (Tangerine variant) |
2023-08-07 22:28:00 +09:00
| [catharsis.cafe](https://catharsis.cafe) | 10+ | an optional theme | Yes (Tangerine variant) |
| [nileane.fr](https://nileane.fr) | 5+ | the only theme | Yes (Tangerine variant) |
| [social.nah.re](https://social.nah.re) | 5+ | an optional theme | No |
| [esoteric.party](https://esoteric.party) | 5+ | the only theme | Yes (Tangerine variant) |
| [asso.lgbt](https://asso.lgbt) | 5+ | the only theme | Yes (Purple variant) |
2023-10-01 23:37:58 +09:00
| [Buddyverse.xyz](https://buddyverse.xyz) | 5+ | an optional theme | No |
2023-08-07 22:28:00 +09:00
| [isfeeling.social](https://isfeeling.social) | 1+ | the only theme | Yes (Purple variant) |
| [ucn.social](https://ucn.social) | 1+ | an optional theme | Yes (Tangerine variant) |
| [fedi.cyberwitches.club](https://fedi.cyberwitches.club) | 1+ | the only theme | Yes (Purple variant) |
2023-08-11 21:45:58 +09:00
| [toulouse.social](https://toulouse.social) | 1+ | the only theme | Yes (Tangerine variant) |
| [mastodon.projetretro.io](mastodon.projetretro.io) | 1+ | an optional theme | No |
2023-10-01 23:37:58 +09:00
| [mstdn.0xdj.dev](https://mstdn.0xdj.dev) | 1 | the only theme | Yes (Tangerine variant) |
2023-07-21 03:58:44 +09:00
## Installation for Mastodon admins
2023-07-13 20:26:53 +09:00
### Install Tangerine UI as the only theme on your instance:
* Copy & paste the contents of [`TangerineUI.css`](https://github.com/nileane/TangerineUI-for-Mastodon/blob/main/TangerineUI.css) to the **Custom CSS** field in the administration panel on your Mastodon instance (Navigate to https://*domain*/admin/settings/appearance).
* 🪻 For the purple variant, copy the contents of [`TangerineUI-purple.css`](https://github.com/nileane/TangerineUI-for-Mastodon/blob/main/TangerineUI-purple.css) instead.
2023-08-24 20:20:38 +09:00
⚠️ **Caution: Using the 'Custom CSS' field to apply Tangerine UI will prevent all users on your instance from being able to choose another theme in their Appearance settings** ([see *Accessibility*](#accessibility)). Please make sure there is a consensus among your users for doing so. If not, see below how to install Tangerine UI as an optional theme for your users.
### Install Tangerine UI as an optional theme on your instance [Recommended]:
Follow these instructions if you wish to add Tangerine UI as an available theme for your users on your instance.
2023-08-03 04:08:51 +09:00
This will also allow you to set Tangerine UI as the default theme for your instance, while still letting your users change back to any of Mastodon's default themes in their Appearance settings.
2023-07-20 00:24:56 +09:00
1. **Copy the files** from `mastodon/app/javascript/styles/` [in this repository](https://github.com/nileane/TangerineUI-for-Mastodon/tree/main/mastodon/app/javascript/styles/) to your Mastodon themes directory `app/javascript/styles/`:
```sh
# Where $REPO is this repository, and $INSTALLDIR is your Mastodon installation.
2023-09-02 21:34:08 +09:00
cp -r $REPO/mastodon/app/javascript/styles/* $INSTALLDIR/app/javascript/styles
```
2023-07-21 03:58:44 +09:00
2. **Add Tangerine UI to `themes.yml`**. To make Tangerine UI available in your users's settings, you need to add a new line to [`config/themes.yml`](https://github.com/mastodon/mastodon/blob/main/config/themes.yml). Here we're adding 2 new lines, one for Tangerine UI, another for Tangerine UI's purple variant:
```yml
default: styles/application.scss
contrast: styles/contrast.scss
mastodon-light: styles/mastodon-light.scss
tangerineui: styles/tangerineui.scss | **new**
tangerineui-purple: styles/tangerineui-purple.scss | **new**
2023-11-21 08:29:03 +09:00
tangerineui-cherry: styles/tangerineui-cherry.scss | **new**
```
2023-07-21 03:58:44 +09:00
3. **Add a localized name (optional).** You can edit each desired language's locale file in `config/locales/[lang].yml` to add a localized string name for Tangerine UI. You need to do this for every language you expect your users to use. Otherwise, in their themes list, they will see the unlocalized theme name ("*tangerineui-purple*"), instead of a readable theme name ("*Tangerine UI (Purple)*").
```yml
themes:
contrast: Mastodon (High contrast)
default: Mastodon (Dark)
mastodon-light: Mastodon (Light)
tangerineui: Tangerine UI | **new**
tangerineui-purple: Tangerine UI (Purple) | **new**
2023-11-21 08:29:03 +09:00
tangerineui-cherry: Tangerine UI (Cherry) | **new**
```
4. **Compile theme assets and restart.** Run `RAILS_ENV=production bundle exec rails assets:precompile` and restart your Mastodon instance for the changes to take effect.
2023-07-20 00:24:56 +09:00
Your users should now be able to choose '*Tangerine UI*' and '*Tangerine UI (Purple)*' as their site theme:
2023-07-20 00:35:29 +09:00
![Screenshot : select Tangerine UI as a theme in appearance settings on Mastodon.](https://github.com/nileane/TangerineUI-for-Mastodon/assets/914451/8cce803c-099b-4f25-8e39-e1c0da3aa6dc)
2023-07-20 00:24:56 +09:00
As an admin, you should also now be able to set Tangerine UI as the default theme for your instance (navigate to https://*domain*/admin/settings/appearance):
2023-07-20 00:35:29 +09:00
![Screenshot : select Tangerine UI as the default theme for your Mastodon instance in the administration panel.](https://github.com/nileane/TangerineUI-for-Mastodon/assets/914451/05fcbb53-54de-40e4-89bd-199107116dfc)
2023-07-20 00:24:56 +09:00
2023-07-21 03:58:44 +09:00
## Installation for Glitch-soc admins
2023-07-21 06:06:34 +09:00
Tangerine UI does not yet support Glitch-soc's features and layout, but it can still be installed as a vanilla skin on your Glitch-soc instance:
2023-07-21 03:58:44 +09:00
1. **Copy the files** from `mastodon/app/javascript/styles/` [in this repository](https://github.com/nileane/TangerineUI-for-Mastodon/tree/main/mastodon/app/javascript/styles/) to your Mastodon themes directory `app/javascript/styles/`:
2023-07-21 03:58:44 +09:00
```sh
# Where $REPO is this repository, and $INSTALLDIR is your Glitch-soc installation.
2023-09-02 21:34:08 +09:00
cp -r $REPO/mastodon/app/javascript/styles/* $INSTALLDIR/app/javascript/styles
2023-07-21 03:58:44 +09:00
```
2. **Copy the files** from `mastodon/app/javascript/skins/vanilla/` [in this repository](https://github.com/nileane/TangerineUI-for-Mastodon/tree/main/mastodon/app/javascript/skins/vanilla/) to your Glitch-soc skins directory `app/javascript/skins/vanilla/`:
2023-07-21 03:58:44 +09:00
```sh
# Where $REPO is this repository, and $INSTALLDIR is your Glitch-soc installation.
cp -r $REPO/mastodon/app/javascript/skins/vanilla/* $INSTALLDIR/app/javascript/skins/vanilla
2023-07-21 03:58:44 +09:00
```
2023-07-21 06:02:19 +09:00
3. **Compile theme assets and restart.** Run `RAILS_ENV=production bundle exec rails assets:precompile` and restart your Glitch-soc instance for the changes to take effect.
2023-07-21 03:58:44 +09:00
2023-07-21 06:06:34 +09:00
Your users should now be able to select Tangerine UI as a theme in their settings, under Flavours → Vanilla Mastodon → Skin
2023-07-21 03:58:44 +09:00
![Glitch-soc settings. Flavours → Vanilla Mastodon → Skin](https://github.com/nileane/TangerineUI-for-Mastodon/assets/914451/abd931ab-685a-4d55-aa24-cb6356a19a7c)
2023-07-20 02:01:02 +09:00
## Installation for regular users
2023-08-24 20:20:38 +09:00
Even if you are not an admin on your instance, you can still use Tangerine UI with a browser extension:
2023-07-20 00:24:56 +09:00
1. Install any browser extension that allows you to inject CSS on a webpage, such as [Stylus](https://add0n.com/stylus.html), or [Live CSS Editor](https://github.com/webextensions/live-css-editor)
2. Copy & paste the contents of [`TangerineUI.css`](https://github.com/nileane/TangerineUI-for-Mastodon/blob/main/TangerineUI.css) to the extension's editor
* 🪻 For the purple variant, copy the contents of [`TangerineUI-purple.css`](https://github.com/nileane/TangerineUI-for-Mastodon/blob/main/TangerineUI-purple.css) instead.
* 🍒 For the cherry variant, copy the contents of [`TangerineUI-cherry.css`](https://github.com/nileane/TangerineUI-for-Mastodon/blob/main/TangerineUI-cherry.css) instead.
2023-08-24 20:20:38 +09:00
⚠️ If you are a user on a Glitch-soc instance, you must switch to the Vanilla Mastodon flavour for Tangerine UI to work properly: in your instance settings, navigate to Flavours → Vanilla Mastodon → select the 'Default' skin.
2023-08-22 20:09:23 +09:00
2023-08-24 20:20:38 +09:00
💡 Alternatively, if you wish to use a JavaScript browser extension, [@Write](https://github.com/Write) has written a ready-to-use UserScript to load Tangerine UI on any Mastodon instance. Check out [the TangerineUI-Userscript repository](https://github.com/Write/TangerineUI-Userscript) for instructions.
2023-07-19 20:55:31 +09:00
## Things to know
2023-07-20 01:10:13 +09:00
* **Tangerine UI currently only supports Mastodon's single column layout**. The advanced web interface (multiple columns) will not be affected.
* **Tangerine UI auto-switches from light to dark mode based on your OS preference**.
2023-07-11 04:12:46 +09:00
* Check your Mastodon instance version before using. The latest Mastodon release checked to be compatible is indicated in the CSS file header.
2023-07-19 20:55:31 +09:00
## Accessibility
2023-08-24 20:20:38 +09:00
Please consider that some of your users may depend on Mastodon's High Contrast theme before [setting Tangerine UI as the only theme](#install-tangerine-ui-as-the-only-theme-on-your-instance) on your instance. For this reason, unless you're running a single-user instance, I recommend [installing Tangerine UI as an optional/revertable theme](#install-tangerine-ui-as-an-optional-theme-on-your-instance-recommended) instead.
2023-07-11 03:50:54 +09:00
## Credits
2023-09-02 21:34:08 +09:00
* The logo for Tangerine UI was designed by [Younis @younishd](https://younishd.fr). 🍊
* Huge thanks to [Roni Laukkarinen](https://mementomori.social/@rolle) whose work on [Mastodon Bird UI](https://github.com/ronilaukkarinen/mastodon-bird-ui) I adapted for some parts of the design.
2023-07-13 02:42:07 +09:00
2023-08-02 22:41:47 +09:00
## Support me <3
If you enjoy Tangerine UI, jobless me would really appreciate a [tip 💛](https://ko-fi.com/nileane)!