|
| 1 | +/** @type {import('tailwindcss').Config} */ |
| 2 | +module.exports = { |
| 3 | + theme: { |
| 4 | + extend: { |
| 5 | + typography: () => ({ |
| 6 | + wika: { |
| 7 | + css: { |
| 8 | + '--tw-prose-body': 'var(--ui-text)', |
| 9 | + '--tw-prose-headings': 'var(--ui-text-highlighted)', |
| 10 | + '--tw-prose-lead': 'var(--ui-text-toned)', |
| 11 | + '--tw-prose-links': 'var(--ui-text-highlighted)', |
| 12 | + '--tw-prose-bold': 'var(--ui-text-highlighted)', |
| 13 | + '--tw-prose-counters': 'var(--ui-text-muted)', |
| 14 | + '--tw-prose-bullets': 'var(--ui-text-dimmed)', |
| 15 | + '--tw-prose-hr': 'var(--ui-border)', |
| 16 | + '--tw-prose-quotes': 'var(--ui-text-highlighted)', |
| 17 | + '--tw-prose-quote-borders': 'var(--ui-border-accented)', |
| 18 | + '--tw-prose-captions': 'var(--ui-text-muted)', |
| 19 | + '--tw-prose-kbd': 'var(--ui-text-highlighted)', |
| 20 | + '--tw-prose-kbd-shadows': 'var(--ui-bg-elevated)', |
| 21 | + '--tw-prose-code': 'var(--ui-text-highlighted)', |
| 22 | + '--tw-prose-pre-code': 'var(--ui-bg-inverted)', |
| 23 | + '--tw-prose-pre-bg': 'var(--ui-bg-accented)', |
| 24 | + '--tw-prose-th-borders': 'var(--ui-border-accented)', |
| 25 | + '--tw-prose-td-borders': 'var(--ui-border)', |
| 26 | + // For -invert- use the same as above so Tailwind handles color scheme automatically |
| 27 | + '--tw-prose-invert-body': 'var(--tw-prose-body)', |
| 28 | + '--tw-prose-invert-headings': 'var(--tw-prose-headings)', |
| 29 | + '--tw-prose-invert-lead': 'var(--tw-prose-lead)', |
| 30 | + '--tw-prose-invert-links': 'var(--tw-prose-links)', |
| 31 | + '--tw-prose-invert-bold': 'var(--tw-prose-bold)', |
| 32 | + '--tw-prose-invert-counters': 'var(--tw-prose-counters)', |
| 33 | + '--tw-prose-invert-bullets': 'var(--tw-prose-bullets)', |
| 34 | + '--tw-prose-invert-hr': 'var(--tw-prose-hr)', |
| 35 | + '--tw-prose-invert-quotes': 'var(--tw-prose-quotes)', |
| 36 | + '--tw-prose-invert-quote-borders': 'var(--tw-prose-quote-borders)', |
| 37 | + '--tw-prose-invert-captions': 'var(--tw-prose-captions)', |
| 38 | + '--tw-prose-invert-kbd': 'var(--tw-prose-kbd)', |
| 39 | + '--tw-prose-invert-kbd-shadows': 'var(--tw-prose-kbd-shadows)', |
| 40 | + '--tw-prose-invert-code': 'var(--tw-prose-code)', |
| 41 | + '--tw-prose-invert-pre-code': 'var(--tw-prose-pre-code)', |
| 42 | + '--tw-prose-invert-pre-bg': 'var(--tw-prose-pre-bg)', |
| 43 | + '--tw-prose-invert-th-borders': 'var(--tw-prose-th-borders)', |
| 44 | + '--tw-prose-invert-td-borders': 'var(--tw-prose-td-borders)', |
| 45 | + }, |
| 46 | + }, |
| 47 | + }), |
| 48 | + }, |
| 49 | + }, |
| 50 | +} |
0 commit comments