1
0
mirror of https://github.com/kuohuanhuan/x-markdown-css.git synced 2024-11-25 06:18:19 +00:00

refactor!: deprecate .prose class and lint

This commit is contained in:
2023-03-05 17:39:51 +08:00
parent e54282e5f8
commit 63a6fc2072
20 changed files with 77 additions and 118 deletions

27
src/_vars.scss Normal file
View File

@ -0,0 +1,27 @@
@use 'sass:meta';
@use 'variables/constants';
@use 'variables/colors';
@use 'variables/modes/light';
@use 'variables/modes/dark';
:root {
@each $name, $val in meta.module-variables('constants') {
--xm-#{$name}: #{$val};
}
@each $name, $val in meta.module-variables('colors') {
--xm-c-#{$name}: #{$val};
}
}
.markdown-body {
@each $name, $val in meta.module-variables('light') {
--xm-c-#{$name}: #{$val};
}
}
.dark .markdown-body {
@each $name, $val in meta.module-variables('dark') {
--xm-c-#{$name}: #{$val};
}
}