Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase font size for component description in reference docs #104

Merged
6 changes: 2 additions & 4 deletions src/components/Intro.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.container p {
color: var(--color-neutrals-600);
font-size: 1.125rem;
line-height: 2rem;
.container {
composes: intro-text from global;
}
16 changes: 10 additions & 6 deletions src/components/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ body {
margin: 0;
font-size: 16px;
font-family: var(--primary-font-family);
color: var(--color-black);
color: var(--color-neutrals-700);
background-color: var(--color-white);
line-height: 1.2;
}
Expand All @@ -104,7 +104,6 @@ img {
p {
margin: 0;
margin-top: 8px;
color: var(--color-neutrals-700);
}

h1,
Expand Down Expand Up @@ -164,12 +163,17 @@ button,

ul {
padding-left: 30px;
font-size: 14px;
line-height: 22px;
color: var(--color-neutrals-700);
font-size: 1rem;
line-height: 1.6;
}

li {
margin-bottom: 1rem;
}

:global {
.intro-text {
color: var(--color-neutrals-600);
font-size: 1.125rem;
line-height: 2rem;
}
}
6 changes: 5 additions & 1 deletion src/templates/ComponentReferenceTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ const ComponentReferenceTemplate = ({ data }) => {
<h1>{component}</h1>

<section
className={cx(templateStyles.section, templateStyles.description)}
className={cx(
templateStyles.section,
templateStyles.description,
'intro-text'
)}
>
<ReactMarkdown source={componentDescription} />
</section>
Expand Down