Skip to content

Commit 40cd81f

Browse files
committed
fix: semantic colors for yfm
1 parent d0dcc59 commit 40cd81f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

styles/yfm.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
.yfm_constructor {
66
$block: &;
77
font-family: var(--yc-font-family-sans);
8+
color: var(--yc-color-text-primary);
89

910
code,
1011
kbd,
1112
pre {
1213
font-family: var(--yc-font-family-monospace);
14+
color: var(--yc-color-text-primary);
1315
}
1416

1517
@include add-specificity(&) {
@@ -80,6 +82,17 @@
8082
a {
8183
@include link();
8284
}
85+
86+
table {
87+
color: var(--yc-color-text-primary);
88+
border: 1px solid var(--yc-color-line-generic);
89+
background: var(--yc-color-base-background);
90+
}
91+
92+
thead,
93+
table tr:nth-child(2n) {
94+
background-color: var(--yc-color-base-generic);
95+
}
8396
}
8497

8598
.yfm_constructor_table {

0 commit comments

Comments
 (0)