Changing font size

AI-generated summary

Changing font size

The discussion revolves around changing the font size of titles on the main page in Discourse. Yariv_Cohen initially asked how to increase the font size of titles, which they found too small and light. Canapin provided a CSS solution:

.topic-list th {
    font-size: 1.2em;
}

However, this didn’t affect the category tab titles. Canapin then provided a more comprehensive solution, inspired by Arkshine:

.topic-list th, 
.category-list th, 
.latest-topic-list > .table-heading  {
    font-size: 1.2em;
}

Yariv_Cohen noted that the “Latest” title remained grey, but no further solution was provided. Additionally, 4ong and codinghorror pointed out that users can adjust the text size through their preferences, accessible via Preferences → Interface.

Hi there and thank you for the great DISCOURSE.
I’ve just established my new discourse but the default titles on the main page are very small and too light.
How can I change the titles font size and color?
BTW the platform is very sophisticated and detailed so it’s a bit surprising to not find easily those options.
Image attached

Thank you

There is no related setting, but you can add this CSS to your theme:

.topic-list th {
    font-size: 1.2em;
}
1 Like

Thank you very much @Canapin works great except the titles on category tab..
https://meta.discourse.org/categories
I would appreciate if you can send me another code to fix it :smiley:

edit: providing @Arkshine’s code since that’s the full working css:

.topic-list th, 
.category-list th, 
.latest-topic-list > .table-heading  {
    font-size: 1.2em;
}

Thank you again @Canapin works again! but for some reason the right title “Latest” still grey… Do you have solution for it? :pray:

.topic-list th, 
.category-list th, 
.latest-topic-list > .table-heading  {
    font-size: 1.2em;
}
1 Like

Thank you for sharing your great expertise
Hope those options will integrated into the platform settings in the future

1 Like

Hi @Yariv_Cohen I saw that you already got an answer, but just to mention a thing that can be helpful and not obvious - in

Preferences → Interface

every user can choose a text size they prefer.

https://meta.discourse.org/my/preferences/interface

(accessible through the user menu too)

2 Likes

Yes as @4ong noted this is a user preference as well:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.