1
0

shiki.css 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. /* Syntax-highlight token palette: the values behind shiki's css-variables
  2. theme (--shiki-* custom properties emitted by the ui-primitives CodeBlock).
  3. Light values on :root, dark overrides on the body attribute — the same
  4. cascade as every other token sheet. Background/foreground deliberately
  5. alias the markdown code-block tokens so highlighted and plain blocks agree. */
  6. :root {
  7. --shiki-foreground: var(--dsw-alias-label-primary);
  8. --shiki-background: var(--dsw-alias-markdown-code-block);
  9. --shiki-token-constant: #1c7ed6;
  10. --shiki-token-string: #2f9e44;
  11. --shiki-token-comment: #868e96;
  12. --shiki-token-keyword: #d6336c;
  13. --shiki-token-parameter: #e8590c;
  14. --shiki-token-function: #6741d9;
  15. --shiki-token-string-expression: #2b8a3e;
  16. --shiki-token-punctuation: #495057;
  17. --shiki-token-link: #1971c2;
  18. }
  19. body[data-ds-dark-theme] {
  20. --shiki-token-constant: #4dabf7;
  21. --shiki-token-string: #69db7c;
  22. --shiki-token-comment: #adb5bd;
  23. --shiki-token-keyword: #faa2c1;
  24. --shiki-token-parameter: #ffa94d;
  25. --shiki-token-function: #b197fc;
  26. --shiki-token-string-expression: #8ce99a;
  27. --shiki-token-punctuation: #ced4da;
  28. --shiki-token-link: #74c0fc;
  29. }