mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 16:07:01 +00:00
Render correct hero text field and basic typography styles
This commit is contained in:
parent
48c8579ba4
commit
3499ff98f5
@ -57,9 +57,11 @@ const Hero = ({ variant, title, text, label, image, link }: HeroProps) => {
|
||||
</Text>
|
||||
)}
|
||||
{text && (
|
||||
<Text className="mt-4" variant="paragraph">
|
||||
{label}
|
||||
</Text>
|
||||
<div className="prose prose-lg mt-4 lg:prose-xl">
|
||||
<Text className="" variant="paragraph">
|
||||
{text}
|
||||
</Text>
|
||||
</div>
|
||||
)}
|
||||
{link?.reference && (
|
||||
<Link
|
||||
|
@ -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: [
|
||||
|
Loading…
x
Reference in New Issue
Block a user