Themes for Pterodactyl 1.x
Follow all instructions below.
Create a file called main.css in /var/www/pterodactyl/resources/scripts
In that file put this text
@import url( https://oreokitten.github.io/PteroThemes/{ThemeName}/user.css );
After that edit the file index.tsx in /var/www/pterodactyl/resources/scripts
On line 6 at the end of the imports add this
import './main.css';
In the file admin.blade.php in /var/www/pterodactyl/resources/views/layouts/
On line 36 put the text
<link rel="stylesheet" href="https://oreokitten.github.io/PteroThemes/{ThemeName}/admin.css">
TIP
You may have to add sudo to the following commands if you are not root.
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
apt install -y nodejs
curl -sL https://rpm.nodesource.com/setup_14.x | sudo -E bash -
yum install -y nodejs # CentOS 7
dnf install -y nodejs # CentOS 8
By now, you should have NodeJS 12 installed. Make sure this is the case by checking node -v
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
nvm install node
nvm alias default node
nvm use node
node -v
should say 12.20.0 or newer
npm i -g yarn
cd /var/www/pterodactyl
yarn install
yarn add @emotion/react
Run this in your panel directory to apply changes (usually
/var/www/pterodactyl)
yarn build:production
Below you shall find some previews of the themes.