# 50 shades of green - One contribution to the Django world with Sarah Abderemane

Source: https://djangotv.com/videos/djangocon-us/2026/50-shades-of-green-one-contribution-to-the-django-world-with-sarah-abderemane/
Date: 2026-10-26
Speakers: Sarah Abderemane, Speaker 2, Speaker 3, Speaker 4, Speaker 5
Text: lightly edited for readability (verbatim on the page)

## Transcript

**Sarah Abderemane:** [00:15] Hi, everyone. So I'm going to present my talk, “50 Shades of Green: One Contribution to the Django World.” This talk is slightly technical. I will mostly talk about my major contribution to Django and its outcome and impact. This talk is interactive, so there are a few questions along the way, since I like to know many things and I'm really curious. You can scan the QR code, or you can join by the link shown here: ahaslides.com/free/xtgv. I'll leave the slide up for a few moments so you can join. It will lead you to my slides.

[01:02] You will be able to answer from your device when there is a question. And also, hi to the people online. You can participate too, which is cool. All right. So let me introduce myself. I'm Sarah Abderemane. I'm a software engineer and an accessibility advocate.

[01:47] I am based in France, so you may notice my French accent at some point. I'm the former Django Software Foundation Vice President, and I'm also organizing meetups in Paris about Django. I'm the co-founder of Django Note Space, which is a mentorship program. I'm also the chair of the website, the Django website, and I'm also part of the accessibility team. So when you see this slide, you are thinking, like, “Oh, you are doing a lot of things related to Django. How did you start your journey?” So let me tell you my story. The origins. So this is me a few years ago. I was really eager to learn.

[02:32] Young. I learned many things through the documentation. I was doing open-source contributions, mostly documentation. And I did a few projects in Django professionally. So, as you know, when you don't know something, you check the documentation, right? And this is a screenshot of the website in 2021. So, as you may notice, there is no button to switch the theme in the top-right corner. I was checking this website many times, really late at night. So I was mostly looking like that.

[03:17] It was hurting my eyes so much, the bright screen, and the really nice light theme, which is amazing but not for my eyes. So I started to think, why not a dark mode for the Django website, right? It should be simple. So I started to look at the repository and see if there was any issue related to that. Otherwise, I would create one. But there was one. It was opened in January 2021. So let's read the content. “Django website is simple and good, but what about the health of the developers? As of now, there is no provision for dark theme. Having a dark theme will improve the user experience.”

[04:04] “I would like to work on this issue.” And there are six likes. So, as you can see, it's not a new idea, and I saw that around early 2022, so one year after. It was still open, with no new activity and some comments. And there are two comments I really think about. People were asking for updates each time, to see if it was still open. There were no draft PRs for this issue. And there was one comment. It was the last one I'd seen when I saw the issue. “Can I work on this if it's still open?” And someone replied, “Please—”

[04:50] “Do. My retinas will thank you.” And I thought exactly the same at that time. So I thought, why not me? At least I could try to do something to help people like [unclear] and myself not burn my eyes late at night, right? So I can give it a try. I'm not an expert in Django, but at least I know how it works. I know front-end stuff. So let's do it! But first, what is a dark mode? A dark mode, which is also called a dark theme, is a website where you can switch colors. So this is my website as an example. You have the light mode on the left side and the dark mode on the right.

[05:39] And you can use the version you prefer, the one you are more comfortable with. It's based on a browser setting by default, and there is a button to switch if you want to override it. So, as I said, I have a question for you. Which theme do you use on your browser or your system? That's interesting.

[06:26] All right, I have another one. Which theme do you use on djangoproject.com, if you've ever been to this website? Oh, really? It's almost fifty-fifty. That's so interesting. Okay, so I will continue. Great. Now we can talk about how I started my contribution: the deep dive.

[07:14] So I explored the Django website repository. I started with the README for the project, looked into the details, checked the structure and how to make it run locally, checked the style guide, and made a plan before making the changes. I was checking that in my spare time in the evening, because I keep doing things in the evening, and I listed what I'd discovered. The Django website is using Django under the hood, of course. There are only a few dependencies. Colors are spread everywhere in the CSS file. And there is Sass, which is a compiler for CSS, used for styling, and jQuery is used for the JavaScript part.

[08:05] So I was familiar with all those things, and I could focus on the changes and not have to learn something new before being able to contribute. It didn't seem like really hard things to do, but, as you know, Django has a lot of history, and you have to take this into account. And one example is a style guide. Did you know the website has a style guide page? There are still some people who know this page exists. That's so interesting. I want to talk with you.

[08:50] Okay, so have you ever seen this page before? Well, some people did see this page. Yeah, but a majority of you didn't see this page. And I can tell you, at that time, I didn't. So this is a screenshot of the style guide page. This page was created a long time ago, and the last time it was updated was December 2014. So it's not really up to date. And if this is the first time you've seen this page, I can tell you you're definitely not alone.

[09:36] Another thing is that history shows it's not always maintained when there are things you have to maintain in open source, since it's always based on volunteering. So sometimes you don't find all the answers to your questions. After collecting all that information, I had enough to make a plan and then start contributing and making changes. My first idea was to change the whole design and redo everything. And I have to be honest, I'm not a designer, and this was my first big contribution. This was a really bad idea. Even if I'm not a big fan of the colors, anyway.

[10:24] So I decided to start small. My second idea was to gather all the colors to create the light theme, reverse the colors to create the dark theme, increase the contrast in the dark theme because in the light theme it's not really great, add the button to be able to toggle everything, and test, of course. Testing is really important, right? Monica said that. To do that, I had to start my green odyssey. This is the way I call it: gather all the shades. So if I look again at the style guide, you can see there are shades of green. There are nine, exactly.

[11:10] One gray and two reds. So, simple—not so many colors, right? So let's do a quiz. I want to verify your knowledge. How many colors do you think were on the website in 2021?

[12:01] Okay, it doesn't seem to be moving anymore. So the correct answer is thirty-six. Next question: how many colors do you think are on the website now?

[12:52] Okay, it seems everyone has almost answered. So the correct answer is 42. That's a lot of colors, right? And the last one: how many greens do you think are on the website now? Yeah, since you've seen big numbers, you're betting on the biggest one. I see, I see.

[13:43] All right. So the answer is sixteen. If I look again at the style guide, there are nine greens, one gray, and two reds, but it's 60 shades of green. To me, that's already a lot of greens, but anyway. So I grouped all the colors in one file, and some have been removed when they were too close to each other. There were different versions of the colors, so I tried to lighten or darken them so I could use as few colors as possible on the website. And I used the exact same colors for the dark theme.

[14:29] Otherwise, we could have made the title of my talk “60 Shades of Green.” That's crazy, right? And as you may notice, I tried to name them the best way. So I ended up with green very light, green light, green medium. And as you can see, naming is hard. After that, I created the light theme. I used the colors defined before, and I defined the variables in the CSS file. And I used them to create the light theme. So how does it work? It's mostly with a class here, which is called light, and it's a data attribute, data-theme, that you have on the HTML directly on the website.

[15:15] So it's a custom one, and :root is something that already exists in CSS, so this is a style by default. And I use the same variables for the dark theme. So, as an example, the body background, which is a variable, will take the variable white from the colors, and it will be changed for the dark theme in the next slide. When I reverse the colors for the dark theme, I create a new section related to the media query prefers-color-scheme: dark. This way, it takes the system colors—you know, the system preference you define. So either dark, light, or the auto one, which uses both.

[16:03] And any class which is not light, so this way we take it all into account. I use the previous variables to create the dark theme and try not to create any more colors in addition to that. So, if I look again at my example, the body background here will be black. Next is to make sure the contrast is enough. As I mentioned previously, we need to increase the contrast. I said at the beginning of my presentation, I'm an accessibility advocate. There's a saying in the community that goes, “We think about accessibility either because people are around us—”

[16:49] “—or because we face it ourselves.” In my case, I had a colleague who was color blind, and I didn't realize it until I made some Slack app and I was really proud of it. I put the success one with green, the fail one with red. Everything was great; it was working. But he wasn't able to see which one was a success and which one was a fail. So I changed the green into blue, and everything was fine. As you can see on the screen, the green and the red are exactly what he said he was seeing on the right part of the slide: everything in the same color.

[17:36] So, in the case of the website in 2021, the website had around 60 contrast issues, as visible on my slide. I used the tool WAVE to be able to see that. This is an extension you can also use. Since the previous experience I mentioned, I'm trying to be cautious about these things, and when we talk about dark themes, the most important things are colors and contrast. I needed to increase the contrast in the dark theme since it's a new addition, to avoid having many more accessibility issues. For that, I used an accessibility tool to verify contrast. There are many that exist. The one I will show you is the most popular, which is called Access DevTool.

[18:24] This is an extension you can use on your browser. And there is a list of accessibility issues at the bottom of the extension. Here it's in French, but I can assure you, you can have that in English. I used that to get the details of the element that doesn't have enough contrast, so this way I can change it or use a better color for it. At the end, I had to add the button to be able to toggle between them. To do that, I defined a button in HTML. I used a cookie to remember the user's choice and get the choice back.

[19:09] And I update the theme when the button is clicked. So I use JavaScript for that. The function sets the data-theme property on the HTML element with the appropriate class, and it will be changed on the website. And then you have to test. So I did test, but definitely not alone. So I started to exchange with people in the community through my draft work. And this is the beginning of me testing, but not alone. So I opened the draft and got feedback from the community. And these are some of the comments I got.

[19:55] So I will read them out loud. So this is cool. Having more or less contrast is important to readability. I find it really hard to read white on black text, but much easier with the light and dark greys instead. That said, I strongly prefer light mode for docs, so this needs to have a switch that can override whatever is detected from my other OS browser preference. I really like the way it's done in Furo Sphinx Theme. Sorry for the borderline bike-shedding. All of those comments influenced my PR, and some of those folks I have, like...

[20:40] ...kept in contact with since then. So I had a lot of feedback from the community, even during conferences I have attended. So this one is from Paolo, who is also here: “I tried your branch locally. It seems to be working. I found only two issues that I want below.” And at some point I managed to finish my work, and it did merge. Yay! So, as you can potentially see because the screen is small, it was merged in October 2022. So it took a few months, and the issue was open

[21:27] one year before. So the thing I created is used by a lot of people, as you have seen. And I had time to reflect on this, so you can see with me the outcomes and impact. So first, making a contribution is really rewarding. And I made a lot of improvements on the website, and I got feedback from social media. These are some examples I got from Twitter, because it was a thing before. And still, as you can imagine, there are still improvements that need to be done. So these are quotes from the 20-tab

[22:12] survey on the Django website. I will read some of them. “I always use dark mode. I prefer it, but it doesn't work well. Some of the colors are strange. Having a better dark mode than what we have now would be a very good thing. I like the fact that there is dark and light mode, so it's easy to read.” So there are definitely things we can improve. Accessibility and usability are not perfect. And the colors can also be improved. Before this contribution, I went to my first conference. The first ever conference I went to was DjangoCon Europe 2020 online. And it was during COVID.

[22:58] And I met many people during this conference, but they all told me, “Oh, you should go in person. This is definitely not the same experience.” So I did, and I went to DjangoCon Europe in Porto for real. So this picture is a few folks I met during the conference, and one of them is Talk Caring, the guy right next to me. And he was the one who reviewed my PR and helped me with things I didn't know at that time. So dark mode was almost finished during the sprint and merged a few days after. But there were a few things I didn't know, and I didn't know how to manage them either.

[23:45] So one comment Tom made was: “A few things I found: the theme is stored per subdomain. So you can have a different theme on the doc site, dashboard, and main site. And this is not really what we wanted.” And one thing you have to know is that sprints are really a good way to get feedback directly and exchange easily. So, to explain a bit better, djangoproject.com has a lot of pages, but some pages redirect to another site. For example, the documentation is hosted on docs.djangoproject.com, and the issue tracker, also called Trac, is on code.djangoproject.com.

[24:31] So the dark theme I made initially wasn't working on the documentation or the issue tracker if I didn't have a cookie to keep the user's preference. So I learned through this contribution how to contribute effectively and more about the project in depth. And this contribution led me to join the Django GitHub organization, and I joined the accessibility team at the end. Yeah, and I became a maintainer of the Django website, since I continued contributing after, of course.

[25:18] So, since the Django community is really amazing, at some point you want to give back, whether you have contributed or not. This community is really cool. So I've been involved in many initiatives. I've been a Django Girls Plus coach and organizer. I've been an organizer of the conference DjangoCon Europe in 2023. I've organized a Django booth in Europe. I'm the chair of the website reading group, and much more. Because when you start to be involved in the community, you get more and more involved. Don't ask me why.

[26:04] Another thing is I met a lot of friends. Done in her keynote, she was saying that you make friendships, and this is actually really true. I met many people during the sprints, during conferences, people I met in meetups, and even remotely, and you meet them in person later. So I put some pictures of them, and this is across the world. You cannot notice here, but there are so many pictures it doesn't fit on one slide, so I had to choose. So I did. So you can also do. So I learned a lot of things during the process.

[26:49] I made mistakes, but I gave it a try and I got so much in return. And all of this is to say you don't need to be an expert to contribute. You have to try, even if it sounds scary. You can start with a small contribution, you can learn and grow with the community, and you could be the next expert. This is cool, right? So, do you want to give it a try? But you may wonder how. So, for that, you have many possibilities. You can do code contributions, same as me. And for that, you can join the sprint. So this is a good way to start your contribution. You can contribute to things that could interest you. It could be a package you like.

[27:36] Something you use all the time and know pretty well. You can just contribute to documentation if this is your thing. If you are a bit scared to contribute alone, even if you are not completely on, you can register for Django Note Space. So there is a session, the seventh one, which is happening soon, and this is really cool, I swear. But if you are not into code contributions, you can also do things which are not really code, like code contributions. You can triage tickets, and you can also review peers, as Sarah Boyce mentioned earlier. You can join working groups. There are a lot of working groups that exist. You can be involved around social media if you like posting, tweeting, whatever.

[28:22] And there are many more things you can do. So we all have a story to tell. What's yours? If you don't, you can still write your story. Thank you.

**Speaker 2:** [28:51] Yes.

**Speaker 3:** [28:53] Thanks a lot, Sarah. I remember that pull request and the review I did for you. The question I want to ask is: if you can share what was the starting point, the motivation to start contributing, to not be shy and start trying to do something—what triggered you?

**Sarah Abderemane:** [29:27] Tricky question. I think for me, I would not say I'm shy, but I'm not the most “Yay, let's go!” But I'm the one who pushed people to go, so I have to lead by example. But I would say there are things you definitely know, and you can definitely contribute, but you feel scared because this is a huge project and it's working in public. Everyone will see your comment, your questions. It seems like a naive question. But we all started this way. Like, we really all started this way. I remember...

[30:13] I talked to Mayush about a question, who was the previous fellow. I had a question about the ticket, and I asked him in DM, and he told me, “You should put your question in Trac.” And I did, and at the end I was like, “Okay, it was not so scary,” but you realize at the end that even if you don't manage to contribute, the thing you have posted in public will help someone else. So even if you didn't manage to do your contribution or do something, you contribute in a way. So to answer the question, it's more: give it a try, even if it's scary.

[30:59] We have all been scared at some point.

**Speaker 4:** [31:08] You mentioned contributing to and being part of the accessibility group and also the website working group. Could you please help out people who want to get started with that? How they could get in touch and keep it moving. And if you could also highlight Trac, because a lot of people have had some form of difficulty navigating Trac. We've had this kind of conversation, and I know Django Note Space is coming up with their next cohort or next chapter, so if you could also highlight that for other people who don't know.

**Sarah Abderemane:** [31:39] So many things. So you mentioned first the working groups. So I'm involved in two working groups. The website is the one I mentioned. It's mostly the group that maintains the website, reviewing PRs, contributing, adding new things, and we have a meeting each month to see what we can do, things we have to improve, and what the updates are. For example, we are doing a redesign of the website. Yay! And those groups are public.

[32:24] You can see all the updates on the forum. Same for accessibility. We also meet each month, and we are also on Discord. So if you have any questions, you can ask on the accessibility channel. So you can definitely contribute without being part of this working group. And what usually happens is you can either create a PR saying, “Oh, I would like to be part of this working group. I know X, Y, Z. That's why I would be really good in this team.” Otherwise, if that's not the case, because sometimes some teams are really big and it's hard to keep track of everyone, especially when we're not all in the same time zone...

[33:12] ...you can still contribute. You can still talk with those people. If you have any questions, you can ask on the forum or on Discord. Many of us will try to reply. And there are also programs that help people to contribute. Django is part of the GSoC project, so there will soon be a dark mode on Trac. Yay! And you also have the Django Note Space program, of course, that I mentioned, so you can also contribute through that, with structured help and people who support you at the same time. So I think I'll answer everything. Cool.

**Speaker 5:** [34:04] Thank you, Sarah. Great talk. I also love that you're wearing many shades of green. I wanted to ask: a lot of people make good contributions to either Django or djangoproject.com, but don't have the same kind of explosion into the community that you have had. So I'm curious, in your opinion, what made the difference for you that kind of created this ignition, that you became so very involved in the community?

**Sarah Abderemane:** [34:48] Good question. I think first, all contributions matter, even the smallest one. I'm doing an interview of DSF members each month, and most of the time I ask them what was their first contribution, and it's always something really small: “Oh, I changed the typo.” So I think all contributions matter, and even if it's a really small one, usually you have—I'm pretty sure you may have experienced that—you start your PR, even if it's a small thing, you're excited to get feedback in return, you watch the PR every time to see if there are any updates.

[35:37] And I think starting small is a good way to do it, really step by step. Like, for example, for me, I did a few contributions before I did this one, and I started really small. I've done, like, I had tests in Django core, and it was just adding ... some, like, you can find my commit anyway. But it's really small things that help the bigger picture, and there are always ways, since I'm involved in many things related to Django, to...

[36:22] ...to brag people and say that this is really nice, what you have done. And if no one says it, you can just say it, and we will all be saying, "Yay, this is so nice." So I think you just need to try, even if it's really a small thing, and start to be involved a bit more and try to do bigger things, and try step by step, even if it's a small thing and it seems like you have done nothing, but this is actually something.

**Speaker 2:** [37:05] Well, thank you. And as a colorblind myself, I thank you again. Yes. This is—thank you, me.
