jackyzha0 / ctrl-v

📋 a modern, open-source pastebin with latex and markdown rendering support
https://ctrl-v.app/
118 stars 6 forks source link

🌙 Dark mode #63

Open jackyzha0 opened 3 years ago

jackyzha0 commented 3 years ago

'nuff said

const theme = {
  colors: {
    background: '#111111',
    codeHighlight: '#ffffff08',
    border: '#565656',
    text: '#faf9f5',
    error: '#ee1111',
  },
}

AC:

Siddhant-K-code commented 3 years ago

I can work on this!

Siddhant-K-code commented 3 years ago

I saw there is a lot of usage of colors on diff pages, we can add it all under once in app.js ??

This May Help

jackyzha0 commented 3 years ago

ctrl-v actually uses styled-components under the hood and we use a Theme Provider! Code here: https://github.com/jackyzha0/ctrl-v/tree/master/frontend/src/theme

Probably just a toggle to switch the themes in here. Will add a colour palette soon

jackyzha0 commented 3 years ago

ctrl-v actually uses styled-components under the hood and we use a Theme Provider! Code here: https://github.com/jackyzha0/ctrl-v/tree/master/frontend/src/theme

Probably just a toggle to switch the themes in here. Will add a colour palette soon

updated

Siddhant-K-code commented 3 years ago

It is looking this with new color pallete: image

image

will try to add a toggle, localStorage, and will try to send PR asap

jackyzha0 commented 3 years ago

It is looking this with new color pallete: image

image

will try to add a toggle, localStorage, and will try to send PR asap

any possibility we can change the default theme of the editor to be atom dark when dark mode toggle is turned on too?

Siddhant-K-code commented 3 years ago

Yes, and I was also thinking of providing options at the top right of the editor for various themes :)