Skip to content

Commit

Permalink
docs: Improve paragraph readability (#4928)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkatartn committed Feb 18, 2021
1 parent 6bf8ee5 commit d6f52ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.19.0",
"nodegit": "^0.26.5",
"postcss-nested": "^4.2.1",
"postcss-nesting": "^7.0.1",
"prettier": "^2.0.4",
Expand Down
10 changes: 5 additions & 5 deletions website/src/components/Mdx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type Props = {
body: string;
};

const text = 'font-thin leading-loose';
const text = 'leading-loose';

const components = {
// Headings
Expand Down Expand Up @@ -66,7 +66,7 @@ const components = {

// Text
p: ({ children }: any) => {
return <p className={cx('my-4 font-light', text)}>{children}</p>;
return <p className={cx('my-4', text)}>{children}</p>;
},

// Code
Expand All @@ -76,9 +76,9 @@ const components = {
},

// Lists
ul: (props: any) => <ul {...props} className="list-disc list-inside pl-4 font-light" />,
ol: (props: any) => <ul {...props} className="list-decimal list-inside pl-4 font-light" />,
li: (props: any) => <li {...props} className={cx('mb-2 font-light', text)} />,
ul: (props: any) => <ul {...props} className="list-disc list-inside pl-4" />,
ol: (props: any) => <ul {...props} className="list-decimal list-inside pl-4" />,
li: (props: any) => <li {...props} className={cx('mb-2', text)} />,

// Table
table: (props: any) => (
Expand Down
3 changes: 1 addition & 2 deletions website/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ main a:hover {

main p,
main li {
@apply text-gray-600;
@apply text-gray-800;
}

li code,
Expand Down Expand Up @@ -71,7 +71,6 @@ h6 code {
padding: 0 6px;
}


.parameter {
@apply text-blue-500;
}
Expand Down

1 comment on commit d6f52ca

@vercel
Copy link

@vercel vercel bot commented on d6f52ca Feb 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.