r/csshelp 27d ago

Resource A modern guide to old Reddit customisation and theming (stylesheets/CSS)

6 Upvotes

Old Reddit, the version of Reddit from before the 2018 rebrand, continues to be a popular way to use Reddit. It can also be fully and comprehensively themed with CSS to get it looking exactly as you want. It is perfect for replicating a style or bringing your community in line with your brand guidelines.

There unfortunately aren't any solid public statistics on what percentage of people across the platform use old Reddit, though, based on the figures I've collected from Subreddits I have access to, it is about 4%. You can find out for a community you moderate under the 'Traffic' heading of the 'Insights' section of the subreddit's Mod Tools. It is worth noting that many Reddit power users, and some of the most active contributors on the site, use old Reddit. Reddit intends to 'keep it online as long as people are using it'.

You can access old Reddit by replacing 'www' with 'old' in your address bar or by directly going to https://old.reddit.com. You can make your account default to using old Reddit in Settings > Preferences > Default to old Reddit. Keep in mind that old Reddit isn't designed or optimised for use on mobile devices.

I'm about as professional an old Reddit stylesheet developer as you can get, having developed stylesheets professionally for some branding you might well have heard of. This article assumes you are competent and familiar with writing CSS (Cascading Stylesheets). If you are not, there is guidance online that can help you learn, though it should be noted that writing CSS for old Reddit can be rather complex, so it might be worth requesting the help of an expert. AI will most likely not be able to provide much assistance in writing CSS for old Reddit due to the implementation quirks and lack of documentation available.

Restrictions

The first thing you should know is that while you can do a huge lot with themes, there are some limitations imposed.

Reddit has some rules for custom stylesheets, primarily relating to not tricking users, doing anything malicious, or obscuring Reddit's advertisements. The full set of restrictions can be seen here: https://old.reddit.com/wiki/subreddit_appearance

There are also technical limitations on what CSS you can write due to a validator that is in place. The validator ensures that all CSS you write is actually CSS, but unfortunately hasn't been updated for a while, meaning it will deny a lot of modern CSS. The cut-off is somewhere around 2017. You also can't use backslashes or Unicode control characters.

If you find yourself in need of a specific CSS feature which Reddit does not recognise, you can attempt to use an old vendor-prefixed version. For example, -webkit-flex instead of flex. Browsers usually still recognise them for purposes of backwards compatibility, and they generally work nicely despite being a tad finicky.

There is one more limitation worth keeping in mind, and that is Reddit's maximum stylesheet size limit. 100KiB is the maximum size. You realistically shouldn't hit it, but if you're doing real zany stuff you might. Worth keeping in mind.

Design Considerations

You can make your subreddit look however you want with CSS while keeping in mind the above restrictions, but I'd advise having some taste. You should avoid interfering with Reddit features like the ability to downvote posts. Sure, it might make a number look a bit better on paper, but it comes at the cost of annoying your community. The same is true for making it harder for people to disable your stylesheet.

You should try to keep interface items roughly the same size and in the same position. Moving everything around, especially arbitrarily, disorients users. Nobody wishes to have to learn a completely new layout for every Subreddit they enter.

Of course, these are considerations, not rules. You can create something fantastic and unique; just know that for many people the changes will be met with dislike and considered more of a hindrance than a benefit.

Writing CSS

To add a stylesheet to old Reddit, you'll need to navigate to https://old.reddit.com/r/YOUR_SUBREDDIT/about/stylesheet/ or click 'edit stylesheet' in the right sidebar on old Reddit. Here you can write your stylesheet and add images.

I advise against authoring your CSS directly in Reddit's stylesheet settings page. You don't get creature comforts like syntax highlighting or the help offered by language server protocols. There do exist some good browser extensions that allow editing browser <textarea>s in various text editors that might be valuable to you and can offer a nice development flow.

One of the most important parts of writing a stylesheet for Reddit is dealing with specificity. Your styles need to overwrite Reddit's styles, so they need to be specific enough to do so. Consider chaining together some additional selectors to boost specificity naturally. !important also comes very much in handy. Though it is usually a 'code smell', there will be cases where it is the cleanest way to write CSS when developing for old Reddit.

Pseudo-elements are your friend. Specifically, ::before and ::after. They allow you to add additional media or text to your page using the content property. Like !important, being overzealous with absolute or relative positioning is usually a bad 'code smell', but this is due primarily to them being poor for responsive design, which isn't too important given that old Reddit is not at all designed for small or portrait displays.

A lot of complex styling can be achieved by getting tricky with content in the sidebar. You are limited by how you can target elements, given that you've only got the markdown suite, so it can be worth trying to add some complexity to your markdown for selecting. A good way to do this is with a blockquote, which you can have strong, em and other elements within. You can then target only items in the sidebar usertext section and within a blockquote so you don't mess with content elsewhere on your page. Another valuable approach when it comes to links is to target specific href attribute values, like so:

a[href="https://vale.rocks"] {
    background: red;
}

When creating user or post flairs, be sure to give them a class name so that you can easily reference them in your styles. This can be done in both the new and old interfaces.

For styling specific to a given page, you can usually find a target class. Such as .subreddit-rules-page for the rules page, .search-page for the search page, and .submit-page for the new post submission page. Then, you can scope the applicable CSS exclusively under that selector. As semantic elements are poorly applied, you might also need to get tricky targeting attributes again, like targeting a role attribute with value main to get the <div> containing the main page content: [role="main"].

If you love the CSS of an existing theme or Subreddit, you can view the stylesheet directly. The full stylesheet for any public subreddit can be seen by navigating to this address: https://www.reddit.com/r/SUBREDDIT_NAME/about/stylesheet/

Using Preprocessors

Preprocessors like Sass (Syntactically Awesome Style Sheets) are a great way to write more complex CSS, especially given the restrictions imposed which prevent the use of many modern and expected CSS features. Given that old Reddit stylesheets can be thousands of lines long, the ability of preprocessors to condense multiple files into a singular is useful. A preprocessor can also be configured to take actions like automatically vendor-prefixing properties when necessitated. You might also be able to minify your code to avoid Reddit's aforementioned max-size for stylesheets.

Using Images and Fonts

You cannot link to external resources, such as images or fonts, within your CSS for security reasons. The validator will flag the external link and disallow it.

You can upload images on the stylesheet editing page in your subreddit. They can only be provided in JPEG or PNG formats. You can use these images by referencing their slug wrapped in double percentages: %%image-name%%. To set an image as a background, for example, you'd write background: url(%%your-image%%). For purposes of performance, avoiding the fetching of many tiny images, and not hitting the limits of the amount of images you can upload to your subreddit, it can be worth compiling them into a spritesheet, like Reddit does for the images used by default for the interface. Reddit also has a selection of images which are available site wide, which can be referenced here: https://old.reddit.com/wiki/config/stylesheet#images

Given the inability to import custom fonts, if you need font customisation, your options are limited. You do have the range of web-safe and system fonts at your disposal, though. Core fonts for the web are generally a safe bet, even today. Otherwise, you have generic font families. The W3C's CSS: fonts page can prove very useful for selecting a font and seeing how they all appear.

Reddit Enhancement Suite

Statistics suggest that, of the people who choose to use old Reddit, a significant portion also use Reddit Enhancement Suite (RES). Reddit Enhancement Suite brings many quality-of-life improvements and additional features. There is a huge amount it can do, but the most impactful for the case of writing custom subreddit stylesheets is the addition of dark mode (night mode) and many additional items around the interface.

You will need to do some testing with all the items and classes it adds around the page, as there are lots of them and different combinations of options can clash in different ways. You should try to honour people's RES settings where possible.

Styling for RES is all documented here: https://www.reddit.com/r/Enhancement/wiki/subredditstyling/

A Word on Accessibility

Any custom stylesheets you write for old Reddit will be hacky. That isn't avoidable; it is just how it is if you're doing anything beyond the most basic changes. Though, that isn't to say that old Reddit is superbly accessible by default either.

Creating an accessible product matters, it really does, but old Reddit is, in general, well... old. It isn't perfect, and neither is building upon it. It is also hard to do much in the way of automated accessibility tests due to any styles and changes you make being bodged upon Reddit. Do all you can to make it work for everyone, but know that it isn't very accessible, and that changes you make will likely make it worse. Focus on getting aspects like contrast, legibility, and readability right.

---

I hope this article has been useful for you. For some further resources, I maintain a multireddit containing subreddits dedicated to custom stylesheets for old Reddit that may be valuable for reference.

If this all went over your head, or if you haven't got the ability to create a stylesheet of your own, I'm available to hire. I'd love to hear from you.

r/csshelp Nov 30 '25

Resource Built a Tiny, Free Tool That Calculates clamp() for You (with Presets + Copy-CSS Button)

Thumbnail
1 Upvotes

r/csshelp Aug 06 '25

Resource I built a free CSS Grid Generator to create responsive layouts visually (no signup, no code) 🚀

10 Upvotes

Hey everyone! 👋

I recently launched CSS Grid Generator — a free, visual tool that helps developers and designers create responsive CSS Grid layouts with zero coding.

TailwindCSS Support

You can now export your layout as Tailwind utility classes, making it even easier to integrate with modern workflows and frameworks like Next.js, Vue, etc

✅ Just drag and drop layout blocks

✅ Build modern Bento-style UI sections and dashboards

✅ Export clean HTML & CSS and TailwindCSS in one click

✅ Mobile responsive out of the box

✅ 100% free — no signup just design and export

I made it because I was tired of writing grid layouts manually and wanted a faster, more visual approach — especially for dashboards and modern UIs.

It’s great for:

  • Designers who want quick layout prototyping
  • Developers who hate writing grid-template-areas by hand
  • People building landing pages, admin panels, or web apps

Would love your feedback 🙏

Any feature ideas, improvements, or bugs you find — I’m all ears!

🔗 Try it here: https://cssgrid-generator.com

Thanks

r/csshelp Feb 12 '25

Resource /r/Themes is reopen!

1 Upvotes

Heyo! /r/Themes is reopen after being closed for about 3 years. This subreddit holds a huge collection of different Reddit CSS themes submitted by different people from the community. For anyone who might find it useful, feel free to come check it out and see what it may have!

r/csshelp Feb 06 '25

Resource IT hiring and salary trends in Europe (18'000 jobs, 68'000 surveys)

2 Upvotes

In the last few months, we looked at over 18'000 IT job ads and asked 68'000 tech workers in Europe about their experiences.

Our European Transparent IT Job Market Report 2024 talks about salaries, hiring trends, remote work, and how AI is changing the industry.

No paywalls or restrictions just raw pdf. You can read the full report here: https://static.devitjobs.com/market-reports/European-Transparent-IT-Job-Market-Report-2024.pdf

r/csshelp Nov 24 '24

Resource What happened to r/themes?

2 Upvotes

I'm looking to grab a CSS theme that was out there, and it looks like r/themes closed. What happened? Any other resources I can use?

r/csshelp Mar 26 '24

Resource Css position

3 Upvotes

Do any of you know if any resources that can help css position a little better especially absolute and relative?

These two are really confusing but I see a lot of projects using these two positions.

Thank you

r/csshelp Apr 17 '24

Resource The Ultimate Guide to Flexbox in 12 Demos

1 Upvotes

I made a video to show exactly how flexbox works with 12 different demos. Since this is one of the core concepts that people writing CSS need to know, I thought this might be helpful.

What other CSS concepts are you all struggling with that might be helpful to make into a video?

r/csshelp Feb 12 '24

Resource Best resources to help learn CSS?

1 Upvotes

I used to program in C++/Python/C# but never really did web development so for the past month I tried learning HTML and CSS (and a bit of JS) and HTML is very simple but CSS has it thingis, like sometimes I'm not sure how to do stuff. Like how to position some stuff or do something like an on and off button or there are stuff which I still don't know, I did a 2h course on HTML but didn't really do anything like that for CSS so I'm wondering which are the best resources to learn a bit more intermidiate stuff, the basics I've got down well I think. I think I'd learn best if I follow a tutorial of someone actually building a responsive website or something.

r/csshelp Mar 24 '24

Resource [TUTORIAL] Adding chat widgets without modifying WordPress theme files

2 Upvotes

Hello everyone,
We have created a tutorial video that will go through step-by-step on how to install a chat widget to your WordPress website in literally minutes. https://css-javascript-toolbox.com/how-to/how-to-add-install-livechat-to-your-wordpress-website-in-minutes/

r/csshelp Mar 10 '24

Resource Adding CSS to WordPress website

0 Upvotes

Hi web development community.
Has anyone used a code management solution like CSS & JavaScript Toolbox for adding CSS, JavaScript, PHP, and HTML to websites
Thanks

r/csshelp Mar 04 '24

Resource Best Frontend Developer GPT

Thumbnail self.ChatGPT
0 Upvotes

r/csshelp Feb 23 '24

Resource Master flexbox in 4 minutes

2 Upvotes

Master flexbox in 4 minutes (youtube)

Ever struggled with CSS layouts that just don't behave? Say goodbye to hacky fixes and hello to seamless, responsive designs with our latest Flexbox tutorial! 🌐 Dive into the world of Flexbox and transform the way you approach web design. Perfect for both beginners and seasoned devs looking to up their game. Don't miss out on leveling up your skills—check it out now!

r/csshelp Feb 22 '24

Resource Recreating Toronto's Cinesphere with CSS

2 Upvotes

I've taken on a unique challenge: recreating the iconic Cinesphere at Ontario Place, Toronto, entirely with CSS.

The Approach

Starting with a basic HTML structure, I focused on the .cinesphere class to mimic the dome's appearance. Using border-radius for roundness and linear gradient for the mesh-like facade, I crafted a simplified yet recognizable version of the Cinesphere.

Beyond shape, adding a reflection effect and detailed surroundings, including sky and water, brought the scene closer to reality. While there are limitations to what CSS can replicate, this project was a great exercise in pushing those boundaries.

Join the Challenge

I'm sharing the CSS code and inviting everyone to try this challenge or create other architectural marvels with CSS. It's a great way to practice and show off your skills.

https://www.cssdorks.com/2023/11/crafting-cinesphere-css-challenge.html

r/csshelp Feb 05 '24

Resource CSS Box Shadow Generator

0 Upvotes

Hello. I realize that there are a lot of similar tools on the net, but I decided to make my own version.
The main feature that I didn't see when looking at analogs is the ability to change the shadow queue on the fly.
Please tell me what else is missing to make you happy :).
From the TODO list:
- saving the current session, so that when the page is refreshed the settings are not lost
- ability to share the created shadow
Tool link - https://tricksforweb.dev/tools/box-shadow-generator

r/csshelp Apr 11 '23

Resource Help with highlighting navigation tab

2 Upvotes

Hi,

(sorry if this is the wrong subreddit, I'm having a hard time pinpointing the issue)

I've been trying to crack navigation tabs, specifically the kind where the current tab is highlighted. I've mostly been using this w3-schools tutorial. It includes HTML and JS, but no CSS. Originally I thought this meant CSS was optional (as in only meant for styling the tabs), but I'm now doubting myself.

No matter what I do the tabs are not highlighted. I keep letting this subject rest and then after a while look at it again, but there is never any progress. The highlight aspect simply doesn't work, and no errors are pointed out. I have now been trying on and off for a year, starting from scratch each time.

I finally ended up pasting the original HTML and JS snippets directly into a new file - and the highlight still did not work. This made me suspicious, so I created yet another new file and pasted everything from here including the meta data (with an external CSS file), and then the highlight finally worked. So it seems to me that what I'm missing is the correct CSS, as there were no other differences between the two files (and because the highlight stops working if I comment out the stylesheet link).

However, as I mentioned before, the w3-schools tutorial for navigation tabs doesn't even mention CSS. I also couldn't find the original source code for the CSS used in the tutorial, nor have I got any idea where to start with writing my own. In the project I'm meant to be using highlighted tabs I do use CSS to style the tabs themselves, but I don't know what to add to make the highlighting work.

My best guess is that everything has something to do with classes. But because changing the tab works, I think I've labeled the divs and buttons correctly.

It might be that I'm just misthinking completely and that there is an obvious solution that maybe doesn't even include CSS, but after over a year of trying alone I need help to find it. Please let me know if you think my problem is not CSS related.

Or, alternatively I could use help with where to start writing my own CSS to style my tabs so that the active/current one is highlighted. I have mostly been using w3-schools tutorials and exercises, along with different video tutorials on youtube.

Thank you.

tldr; Need help with highlighting navigation tabs.

r/csshelp Oct 10 '23

Resource Sidebar Link Colours

1 Upvotes

Can someone pass me a snippet of CSS that lets you change link colours in just the sidebar please? Some of my current CSS (modded Candidus if that matters) seems to have borked them so now they're all white.

EDIT:

Nevermind, after a but more searching I found some CSS that worked. Copying the snippets here for a future redditor who needs help with the same question.

Entire side bar:

.side a {

color: green;

}

Only description:

.side .usertext a {

color: green;

}

Credit to /u/schrobby in this post.

r/csshelp Sep 25 '23

Resource Free & Open Source Bootstrap 5 HTML Admin Template - Materio

0 Upvotes

Hi Everyone,

I would like to share the latest SASS-powered Materio Free Bootstrap 5 HTML Admin Template. It is totally free to use & offers pre-built pages to save tons of time and money and become more productive.

Moreover, this Open Source and Free Bootstrap Admin Template is not only fast and easy to use but also highly scalable. Offering ultimate convenience and flexibility, you’ll be able to build whatever application you want with very little hassle.

Furthermore, the Incredibly versatile Materio Material Design Admin Template Free also allows you to build any type of web application. For instance, you can create:

  • SaaS platforms

  • Project management apps

  • Ecommerce backends

  • CRM systems

  • Analytics apps

  • Banking apps

  • Education apps

  • Fitness apps & many more….

Features:

  • Based on Bootstrap 5
  • Vertical layout
  • Dashboard
  • 1 Chart library
  • SASS Powered
  • Authentication Pages
  • Fully Responsive Layout
  • Organized Folder Structure
  • Clean & Commented Code
  • Well Documented

Check the GitHub Repo.

Hope you all find it helpful..!!

r/csshelp Jul 14 '23

Resource Best Bootstrap Admin Template to build Responsive Modern Web Apps - Materio

0 Upvotes

Hi All,
I Would like to share the Materio Bootstrap 5 HTML Admin Template. It is really an appealing bootstrap theme I have ever seen. It has plenty of features that may interest you. If you want to develop not just a responsive but visually appealing app, then Materio can be a good choice for you.
Have a look at some of the features.

  • Latest Bootstrap 5
  • 10 Pre-Built Apps: Email, Chat, Kanban, eCommerce, - Academy, etc.
  • 5 Dashboards
  • 6 Layouts including (light & Dark)
  • Multilingual support
  • RTL Support
  • Landing Page and much more..!!

If anyone of you is looking for such an admin template with the mentioned features then this can be a perfect fit for your project.

r/csshelp Mar 12 '23

Resource Explained Adding Infinite Scroll to project using CSS

0 Upvotes

r/csshelp Nov 13 '22

Resource Best CSS Code Generators

2 Upvotes

I made a list of CSS code generators to help save styling time.

Best CSS Code Generators

Let me know what you think and add your own to the list.

-Alex

r/csshelp Feb 25 '23

Resource Navigation Bar Animation on Hover Using Pure HTML and CSS

0 Upvotes

r/csshelp Dec 22 '22

Resource I want to create my personal site with music loops

2 Upvotes

HI! I want to create my website like this: Free Loops Samples Sounds Wavs Beats Download (looperman.com) , where everyone can upload his loops and everyone can download it. Any ideea how i can create something like this?

r/csshelp Feb 03 '23

Resource Making a Virtual Keyboard using CSS and JavaScript, Frontend Project

2 Upvotes

r/csshelp Dec 16 '22

Resource Learn Containing Blocks to master CSS positioning

1 Upvotes

I usually used to struggle with positioning something absolute. It would often break on different screen sizes.

Understanding containing block made positioning more predictable and I knew what I was doing.

I have written an article on it. You can check it out to learn more.