Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update tailwind.config.js

Jonathan Summers-Muira3ed8880017d
diff --git a/packages/config/tailwind.config.js b/packages/config/tailwind.config.js
index d977515425d..0ca5ff20efb 100644
--- a/packages/config/tailwind.config.js
+++ b/packages/config/tailwind.config.js
@@ -52,7 +52,7 @@ module.exports = ui({
'--tw-prose-body': theme('colors.scale[1100]'),
'--tw-prose-headings': theme('colors.scale[1200]'),
'--tw-prose-lead': theme('colors.scale[1100]'),
- '--tw-prose-links': theme('colors.brand[900]'),
+ '--tw-prose-links': theme('colors.scale[1100]'),
'--tw-prose-bold': theme('colors.scale[1100]'),
'--tw-prose-counters': theme('colors.scale[1100]'),
'--tw-prose-bullets': theme('colors.scale[900]'),
@@ -88,9 +88,6 @@ module.exports = ui({
p: {
fontWeight: '400',
},
- a: {
- fontWeight: '400',
- },
pre: {
background: 'none',
padding: 0,
@@ -105,6 +102,23 @@ module.exports = ui({
border: '1px solid ' + theme('borderColor.DEFAULT'),
borderRadius: theme('borderRadius.lg'),
},
+ code: {
+ fontWeight: '400',
+ padding: '0.2rem 0.4rem',
+ backgroundColor: theme('colors.scale[400]'),
+ border: '1px solid ' + theme('colors.scale[500]'),
+ borderRadius: theme('borderRadius.lg'),
+ },
+ a: {
+ transition: 'box-shadow 0.1s ease-in-out',
+ paddingBottom: '2px',
+ textDecoration: 'none',
+ boxShadow: "theme('colors.brand[900]') 0px -3px 0px -1px inset",
+ },
+ 'a:hover': {
+ boxShadow: "inset 0 -30px 0 -1px theme('colors.brand[900]')",
+ color: 'var(--tw-prose-headings)',
+ },
},
},