PHPackages                             tborychowski/elastic-dark - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tborychowski/elastic-dark

AbandonedArchivedRoundcube-plugin

tborychowski/elastic-dark
=========================

Elastic-dark skin for Roundcube

25514CSS

Since Feb 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/tborychowski/elastic-dark)[ Packagist](https://packagist.org/packages/tborychowski/elastic-dark)[ RSS](/packages/tborychowski-elastic-dark/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

elastic-dark
============

[](#elastic-dark)

This just extends Roundcube's [Elastic skin](https://github.com/roundcube/roundcubemail/tree/master/skins/elastic) with some dark theme colours.

[![](https://raw.githubusercontent.com/Skorpion/roundcube-elastic-dark/master/assets/mail-7.png)](https://raw.githubusercontent.com/Skorpion/roundcube-elastic-dark/master/assets/mail-7.png)

Installation
------------

[](#installation)

#### 0. Make sure you have `Elastic` skin installed

[](#0-make-sure-you-have-elastic-skin-installed)

It's part of the Roundcube now, so it should be there, but just in case. This only extends the Elastic skin, by adding some additional css, but requires the base to be installed.

#### 1. Download the skin:

[](#1-download-the-skin)

In your `roundcube/skins` folder run this:

```
git clone https://github.com/tborychowski/elastic-dark.git
```

alternatively, if you don't have `git` installed, you can just get the zip instead:

```
wget wget -O elastic-dark.zip https://github.com/tborychowski/elastic-dark/archive/master.zip
unzip elastic-dark.zip
mv elastic-dark-master elastic-dark
```

**Please note:** you may need to use `sudo` for some commands, depending on your setup.

**RoundCube v1.5-beta** introduced some small template changes, so to get the compatible skin version, please check-out the `v1.5-beta` branch of this repo (run this after `git clone...`):

```
git checkout v1.5-beta
```

#### 2. Update your Settings

[](#2-update-your-settings)

Change the skin in Roundcube's `Settings/User Interface` to `Elastic Dark`.

#### 3. Login screen

[](#3-login-screen)

For login screen to work, you also need to update the `roundcube/config/config.inc.php` with:

```
$config['skin'] = 'elastic-dark';
```

#### 4. Emails with `!important` inline styles

[](#4-emails-with-important-inline-styles)

Unfortunately that seems to require a manual edit to one of the RC core php files (or a js plugin that would fix that). For the former solution open `roundcube/program/steps/mail/func.inc` and in `rcmail_html4inline` function add an entry to the `$replace` array: `'/!important/' => '',` (around line 1113), so that it looks like this:

```
    $replace = array(
        // add comments around html and other tags
        '/(]*>)/i'          => '',
        '/(]*>)/i'             => '',
        '/(]*>)/i'           => '',
        '/(]*>)/i'           => '',
        '/(]*>.*)/Ui' => '',
        '/(]*>)/i'           => '',
        // quote
