Render correct hero text field and basic typography styles

This commit is contained in:
Henrik Larsson 2023-08-15 09:46:25 +02:00
parent 48c8579ba4
commit 3499ff98f5
2 changed files with 19 additions and 3 deletions

View File

@ -57,9 +57,11 @@ const Hero = ({ variant, title, text, label, image, link }: HeroProps) => {
</Text>
)}
{text && (
<Text className="mt-4" variant="paragraph">
{label}
<div className="prose prose-lg mt-4 lg:prose-xl">
<Text className="" variant="paragraph">
{text}
</Text>
</div>
)}
{link?.reference && (
<Link

View File

@ -99,6 +99,20 @@ module.exports = {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
},
typography: {
DEFAULT: {
css: {
color: 'var(--text-high-contrast)',
a: {
textDecoration: 'underline',
color: '#3182ce',
'&:hover': {
color: '#2c5282',
},
},
},
},
},
},
},
plugins: [