---
title: "Yousef R. (@Yousefriyad) | Hashnode"
description: "Full-stack Developer. Read the latest articles by Yousef R. on Hashnode."
url: "https://hashnode.com/@Yousefriyad"
---

@Yousefriyad

# Yousef R.

@Yousefriyad · Joined January 2022

Full-stack Developer

### [How to add Dark theme to your website using HTML CSS JavaScript? (Short Answer)](https://yousefriyad.hashnode.dev/how-to-add-dark-theme-to-your-website-using-html-css-javascript-short-answer?utm_source=hashnode&utm_medium=feed)

To create dark theme you need to create HTML toggle element,to create CSS variables, create event listener.

2 min read · [yousefriyad.hashnode.dev](https://yousefriyad.hashnode.dev/how-to-add-dark-theme-to-your-website-using-html-css-javascript-short-answer?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/how-to-add-dark-theme-to-your-website-using-html-css-javascript-short-answer/61db4c16cda0d0294b698f70) [Jan 9, 2022](https://hashnode.com/posts/how-to-add-dark-theme-to-your-website-using-html-css-javascript-short-answer/61db4c16cda0d0294b698f70)
