denoland / deno_blog

Minimal boilerplate blogging.
MIT License
461 stars 96 forks source link

How can you change the text color? #115

Closed SwiftyProgrammer690 closed 1 year ago

SwiftyProgrammer690 commented 1 year ago

Hi, is there a way I can change my text's theme to light mode? Is there a method in the blog(); method like there is for title, description, author, etc. like in down below?

blog({
  title: "Egyptian Religion....",
  description: "and why it was important to the people...",
  author: "Deno"
)};
KorigamiK commented 1 year ago

You can add your custom stylesheet in the blog constructor

blog({
    ...
    style: "h1 {color: white;}",
})
SwiftyProgrammer690 commented 1 year ago

You can add your custom stylesheet in the blog constructor

blog({
    ...
    style: "h1 {color: white;}",
})

Yeah, but like what if I wanted to change the whole theme itself? Is there a CSS or JSON method fo that?

@KorigamiK

KorigamiK commented 1 year ago

The blog is configured using UnoCSS so you may configure the styles according to you.

unocss?: UnoConfig;
SwiftyProgrammer690 commented 1 year ago

Thank you for your help @KorigamiK