Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate the theme variables and styles #25

Open
Anddd7 opened this issue Dec 29, 2023 · 2 comments
Open

Separate the theme variables and styles #25

Anddd7 opened this issue Dec 29, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Anddd7
Copy link

Anddd7 commented Dec 29, 2023

谢谢作者的贡献,这个主题非常好用~ 😄

我在使用这个主题的时候,自己增加了一些样式,需要依次复制到几个 theme 里有一些麻烦。我尝试用 shell/makefile 做了最简单的一个抽象:https://github.com/Anddd7/Awesome-Marp/pull/1

  • 分为 import、theme 变量、样式定义 多个文件
  • 用 shell 命令来生成最终的 css 文件

这样内容会更容易修改,比如增加一个 border,更进阶的话可以用 scss。

如果需要的话我可以 PR 到这里

@favourhong
Copy link
Owner

感谢认可!欢迎 PR!我也学习学习~

@Anddd7
Copy link
Author

Anddd7 commented Dec 29, 2023

Marp 支持 scss (高级版css),所以可以用 import 复用自己的 theme 也是可以的 #26

scss 我也不是太熟,用 css 也是兼容的 (后面有空我找 chatgpt 来改 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants