({ theme }: PluginUtils)
| 1 | import { type PluginUtils } from 'tailwindcss/types/config' |
| 2 | |
| 3 | export default function typographyStyles({ theme }: PluginUtils) { |
| 4 | return { |
| 5 | DEFAULT: { |
| 6 | css: { |
| 7 | '--tw-prose-body': theme('colors.zinc.700'), |
| 8 | '--tw-prose-headings': theme('colors.zinc.900'), |
| 9 | '--tw-prose-links': theme('colors.red.500'), |
| 10 | '--tw-prose-links-hover': theme('colors.red.400'), |
| 11 | '--tw-prose-links-underline': theme('colors.white'), |
| 12 | '--tw-prose-bold': theme('colors.zinc.900'), |
| 13 | '--tw-prose-counters': theme('colors.zinc.500'), |
| 14 | '--tw-prose-bullets': theme('colors.zinc.300'), |
| 15 | '--tw-prose-hr': theme('colors.zinc.900 / 0.05'), |
| 16 | '--tw-prose-quotes': theme('colors.zinc.900'), |
| 17 | '--tw-prose-quote-borders': theme('colors.zinc.200'), |
| 18 | '--tw-prose-captions': theme('colors.zinc.500'), |
| 19 | '--tw-prose-code': theme('colors.zinc.900'), |
| 20 | '--tw-prose-code-bg': theme('colors.zinc.100'), |
| 21 | '--tw-prose-code-ring': theme('colors.zinc.300'), |
| 22 | '--tw-prose-th-borders': theme('colors.zinc.300'), |
| 23 | '--tw-prose-td-borders': theme('colors.zinc.200'), |
| 24 | |
| 25 | '--tw-prose-invert-body': theme('colors.zinc.400'), |
| 26 | '--tw-prose-invert-headings': theme('colors.white'), |
| 27 | '--tw-prose-invert-links': theme('colors.emerald.400'), |
| 28 | '--tw-prose-invert-links-hover': theme('colors.emerald.500'), |
| 29 | '--tw-prose-invert-links-underline': theme('colors.emerald.500 / 0.3'), |
| 30 | '--tw-prose-invert-bold': theme('colors.white'), |
| 31 | '--tw-prose-invert-counters': theme('colors.zinc.400'), |
| 32 | '--tw-prose-invert-bullets': theme('colors.zinc.600'), |
| 33 | '--tw-prose-invert-hr': theme('colors.white / 0.05'), |
| 34 | '--tw-prose-invert-quotes': theme('colors.zinc.100'), |
| 35 | '--tw-prose-invert-quote-borders': theme('colors.zinc.700'), |
| 36 | '--tw-prose-invert-captions': theme('colors.zinc.400'), |
| 37 | '--tw-prose-invert-code': theme('colors.white'), |
| 38 | '--tw-prose-invert-code-bg': theme('colors.zinc.700 / 0.15'), |
| 39 | '--tw-prose-invert-code-ring': theme('colors.white / 0.1'), |
| 40 | '--tw-prose-invert-th-borders': theme('colors.zinc.600'), |
| 41 | '--tw-prose-invert-td-borders': theme('colors.zinc.700'), |
| 42 | |
| 43 | // Base |
| 44 | color: 'var(--tw-prose-body)', |
| 45 | fontSize: theme('fontSize.sm')[0], |
| 46 | lineHeight: theme('lineHeight.7'), |
| 47 | |
| 48 | // Text |
| 49 | p: { |
| 50 | marginTop: theme('spacing.6'), |
| 51 | marginBottom: theme('spacing.6'), |
| 52 | }, |
| 53 | '[class~="lead"]': { |
| 54 | fontSize: theme('fontSize.base')[0], |
| 55 | ...theme('fontSize.base')[1], |
| 56 | }, |
| 57 | |
| 58 | // Lists |
| 59 | ol: { |
| 60 | listStyleType: 'decimal', |
nothing calls this directly
no outgoing calls
no test coverage detected