Mint 主题

:discourse2: Summary Mint - A modern theme with a hint of mint. :slight_smile:
:eyeglasses: Preview Preview on Discourse Theme Creator
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-mint-theme
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme

Features

A modern theme with a hint of mint. :slight_smile:

:herb: :ice_cube:

Homepage (categories)

Latest

Topic

Advanced Search

This theme includes following components:

Tips

Discourse Settings

Following setting changes are required for this theme to render properly:

  • top menu needs to be set to category, latest, new, unread, top
  • desktop category page style needs to be set to Boxes with Subcategories

Discourse Search Banner

In the options for the discourse-search-banner theme component, following changes are required for this theme to render properly:

  • show-on options needs to be set to homepage
  • plugin-outlet options needs to be set to above-main-container [1]
  • background image can be set as per your requirement

Discourse Showcased Categories

In the options for the Showcased Categories theme component, following changes are required for this theme to render properly:

  • select the feed one category and feed two category as per your requirement
  • fill in the feed one title and feed two title as per your requirement
  • recommended value for max list length is 3.

Let me know how this theme can be further improved. Enjoy! :smiley:


:discourse2: Hosted by us? Themes are available to use on our Standard, Business, and Enterprise plans.


  1. As of Oct. 4th 2022 and this commit, the theme itself will automatically set and order the theme components into the correct outlets. ↩︎

Last edited by @JammyDodger 2024-06-17T20:58:09Z

Check documentPerform check on document:
65 个赞

really nice theme :slight_smile:

I might even test it out with royal blue (my favourite colour) on my test site.

Thank you :smiley:

5 个赞

@meghna churning out the amazing themes. Looks great. I will deploy and play.

5 个赞

Beautiful theme! Thank you for creating this :slight_smile:

I was wondering if it was a way for me to remove the square and circle in the background? Appreciate anything that can point me in the right direction :pray:

3 个赞

remove

#main-outlet:after  {
  content: "";
  display: block;
  position: fixed;
  z-index: -1;
  width: 500px;
  height: 500px;
  border-radius: 2000px;
  background: $color-blue;
  right: 1px;
  top: -57px;
}

#main-outlet:before {
  content: "";
  display: block;
  position: fixed;
  z-index: -1;
  width: 300px;
  height: 300px;
  border-radius: 30px;
  background: -webkit-linear-gradient(146deg, rgba(74,247,255,.08) 55%, rgba(143,236,202,.52) 100%);
  // background: linear-gradient(146deg, rgba(74,247,255,.08) 55%, rgba(143,236,202,.52) 100%);
  background: linear-gradient(4deg, rgba(143,236,202,.29) 55%, rgba(74, 247, 255, 0.08) 100%);
  left: 70px;
  top: 350px;
  transform: rotate(74deg);
  transform-origin: 0 100%;
}

from desktop.scss and you should be good to go :slight_smile:

6 个赞

Thank you so much Tomasz, appreciate it :smiley:

2 个赞

This theme is awesome. Thank you for making this! I’m new to the Discourse scene. I know how to upload this theme, but I’m not sure how to change certain things. What I want to change are the colors of the blocks in the back (the circle and square). Additionally, I would like to change the background color. Do I download the theme file and edit it there, then create my own theme? Or is there an easier way?

2 个赞

Thanks! :slight_smile:

Yes. To change the colors you need to fork the theme and update the color code as per your requirement. Here’s how you can do it:

In variables.scss change the color code as per your liking:


$color-blue: #e5f8ff;
$color-square-gradient: linear-gradient(4deg, rgba(143,236,202,.29) 55%, rgba(74, 247, 255, 0.08) 100%);
$color-square-webkit-gradient: -webkit-linear-gradient(4deg, rgba(143,236,202,.29) 55%, rgba(74, 247, 255, 0.08) 100%);

To change the background color update the secondary color in about.json (note that this will also change text color of some buttons):

"secondary": "F6FBFC"

I love this theme - it fits our project’s branding perfectly! However, if I turn on dark mode, the theme is messed up. Is this to be expected? Is there a way to prevent users from turning on dark mode?

1 个赞

还可以从前端编辑 CSS,就像默认主题一样。

作曲组件存在两个小问题。:slightly_smiling_face:齿轮按钮的背景常亮,第一个按钮的悬停形状与框架的弧度不匹配:

1 个赞

已通过以下方式修复了这两个问题:

2 个赞

我真的很喜欢你的主题并已安装。\n我的搜索横幅背景没有圆角且不是全宽。\n我该如何将其更改为你的布局?

可能存在另一个主题或组件干扰了 mint 主题的样式。您可以尝试禁用您可能已安装的其他主题/组件吗?

这是一个全新安装,带有非活动状态的默认主题和以下组件:

  • discourse-search-banner
  • Showcased Categories

这很奇怪。你能私信我你的 Discourse 实例的 URL,我可以看看吗?

1 个赞

横幅问题现已通过以下方式修复:

Patrick 还提醒了我 showcase categories 插件中存在一个问题。我也已修复。

3 个赞

您好,我在具有精美 Mint 主题的设备上使用了深色模式。我做了一些更改以支持深色模式。仅用于测试。

discourse-mint.zip (5.1 KB) 当然,它可能包含错误 :slight_smile: 因此,我不会从 github 创建 PR。

我对代码块、gitlab 风格格式、宽页面等进行了修改……未测试移动设备。

1 个赞

感谢您的努力,伊万!我审阅了您的工作,其中一些自定义更改不需要包含在核心中。我将查看特定于暗模式的更改,并在进行更多测试后将其纳入核心。

1 个赞

不客气,Meghna!我认为,将 revert 值应用于一些白色元素就足够了。

1 个赞