1.1.2•Updated a month ago
@import 'tailwindcss';
@plugin "@tailwindcss/typography";
@plugin 'daisyui' {
logs: false;
}
/* Shiki */
.shiki { background: transparent; padding: 0; color: inherit; }
.shiki code {
counter-reset: ln;
padding-left: 3.25rem; /* gutter width */
position: relative;
color: inherit;
display: flex;
flex-direction: column;
}
.shiki span {
color: inherit;
color: var(--shiki-light);
font-weight: var(--shiki-light-font-weight);
@variant dark {
color: var(--shiki-dark);
font-weight: var(--shiki-dark-font-weight);
}
}
.shiki .line {
counter-increment: ln;
display: inline-block;
padding-right: 1rem;
min-height: 1.45em;
width: 100%;
color: inherit;
}
.shiki .line::before {
content: counter(ln);
position: absolute;
left: 0;
width: 3rem; /* gutter width - ~0.25rem */
text-align: right;
opacity: 0.5;
padding-right: 0.5rem;
user-select: none;
}
.shiki .line.selected-line { background: color-mix(in oklab, CanvasText 10%, transparent); }
.shiki, .shiki code, .shiki .line, .shiki-column-highlight {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
line-height: 1.45;
font-size: 0.875rem;
}