- add --color-primary-text for lime used as text or icon color - stop dimming the idle refresh label with opacity - darken the light danger button and lighten the dark danger hover - define syntax highlighting colors per theme as --hl-* tokens - darken light muted text slightly - add a storybook contrast page, fail storybook tests on a11y violations and show live token values in the colors story - bump version to 1.20.2
77 lines
1.6 KiB
CSS
77 lines
1.6 KiB
CSS
.pre {
|
|
margin: 0;
|
|
overflow-x: auto;
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.code {
|
|
font-family: var(--font-mono, ui-monospace, 'Cascadia Code', 'Fira Code', monospace);
|
|
font-size: var(--font-size-sm);
|
|
line-height: 1.6;
|
|
display: block;
|
|
background: transparent !important;
|
|
color: var(--color-text);
|
|
}
|
|
|
|
/* ── highlight.js token overrides (theme-aware) ─────────────────────── */
|
|
|
|
.code :global(.hljs-comment),
|
|
.code :global(.hljs-quote) {
|
|
color: var(--hl-comment);
|
|
font-style: italic;
|
|
}
|
|
|
|
.code :global(.hljs-keyword),
|
|
.code :global(.hljs-selector-tag),
|
|
.code :global(.hljs-built_in),
|
|
.code :global(.hljs-name),
|
|
.code :global(.hljs-tag) {
|
|
color: var(--hl-keyword);
|
|
}
|
|
|
|
.code :global(.hljs-string),
|
|
.code :global(.hljs-title),
|
|
.code :global(.hljs-section),
|
|
.code :global(.hljs-attribute),
|
|
.code :global(.hljs-literal),
|
|
.code :global(.hljs-template-tag),
|
|
.code :global(.hljs-template-variable),
|
|
.code :global(.hljs-type),
|
|
.code :global(.hljs-addition) {
|
|
color: var(--hl-string);
|
|
}
|
|
|
|
.code :global(.hljs-number),
|
|
.code :global(.hljs-regexp),
|
|
.code :global(.hljs-link) {
|
|
color: var(--hl-number);
|
|
}
|
|
|
|
.code :global(.hljs-function),
|
|
.code :global(.hljs-title.hljs-function_) {
|
|
color: var(--hl-function);
|
|
}
|
|
|
|
.code :global(.hljs-variable),
|
|
.code :global(.hljs-params) {
|
|
color: var(--hl-variable);
|
|
}
|
|
|
|
.code :global(.hljs-property) {
|
|
color: var(--hl-property);
|
|
}
|
|
|
|
.code :global(.hljs-deletion),
|
|
.code :global(.hljs-meta) {
|
|
color: var(--hl-meta);
|
|
}
|
|
|
|
.code :global(.hljs-emphasis) {
|
|
font-style: italic;
|
|
}
|
|
|
|
.code :global(.hljs-strong) {
|
|
font-weight: 700;
|
|
}
|