npm install
- Copy
example_config.json
toconfig.json
and optionally enable automatic deployments to staging gulp styles
to compile for the first time. Usegulp
to compile and watch for changes orgulp watch
to just watch.gulp webp
to convert spritesheets to webp format.gulp
to watch for changes
- Upload all the images in the
images
directory - Upload all the spritesheet images
- These files require manually adding a version number on the end to bust reddit's cache. The version number is manually set in the gulp file for each individual file.
- Copy and paste all of
css/prod.css
into your subreddit's CSS setting - In your subreddit settings: upload
spritesheet_images/snoo/x-snoo.png
as the header image - In the flair settings, set user and link flair to display on the left
When the stylesheet is compiled, gulp can optionally upload the CSS to a staging subreddit. Note this does not (yet) handle image uploads, nor does it handle errors (e.g. missing images or CSS rules that reddit doesn't accept). To enable this:
- Create a script app on the reddit account you want to use to deploy code with. The name, description and URLs don't matter. Set them to anything you want.
- Set
automaticStagingDeployment
totrue
inconfig.json
and fill out the other config options with the client ID and secret, and your account and password. - Enjoy automatic deployments.
Most individual sprite images are Fireworks PNGs. This includes:
- The Snoo and logo, where the glow effect is a filter;
- The sidebar images with a hover effect, where the inner glow is also a filter;
- The RES markdown editor toolbar buttons, where the glyphs are fonts and can be rescaled easy to support multiple DPIs;
Directory | Uses | Compiled Filename |
---|---|---|
flair_user |
flair for classes, faction, BfA covenants, rainbow flag faction icons | f |
flair_user_beskpoke |
flairs for mods, fansites, guilds, VIPs, events | fb |
kitchen_sink |
expandos, game icons, thread flair images, voting arrows, RES buttons, sidebar assets, etc | sr |
logo |
WoW logo | spritesheet-logo |
logo_minimal |
An alternate WoW logo that is less visable unless hovered over, currently not updated to Dragonflight | spritesheet-logo |
logo_sl |
WoW logo from Shadowlands | spritesheet-logo |
snoo |
Alexstrasza Snoo | spritesheet-snoo |
snoo-xmas |
Christmas themed Snoo from Shadowlands | spritesheet-snoo |
Image | Purpose | HDPI? |
---|---|---|
2m-subs |
2 Million Sub Special Image | Yes |
bg-repeat |
Repeating background texture | No |
bg-repeat-dark |
Darker variant, used in the footer | No |
c1 |
Featured creator slot 1 | Yes |
c2 |
Featured creator slot 2 | Yes |
c3 |
Featured creator slot 3 | Yes |
c4 |
Featured creator slot 4 | Yes |
hero-* |
Variant hero images for events | Yes |
partyparrot |
Silly internet meme | No |
sl-map |
Launch times for Shadowlands used in the sidebar | Yes |
x-vusys |
VIP user flair | Yes |
Special thanks to BrowserStack for providing us with a free account for testing.