埋め込みDiscourseでダークモードと明るいホワイトモードを切り替える方法

There is an official way but only for official themes: Styling of Embedded Discourse

That could help: