Skip to content

Commit d6f52ca

Browse files
authored
docs: Improve paragraph readability (#4928)
1 parent 6bf8ee5 commit d6f52ca

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

website/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
"eslint-config-prettier": "^6.10.1",
5858
"eslint-plugin-prettier": "^3.1.2",
5959
"eslint-plugin-react": "^7.19.0",
60-
"nodegit": "^0.26.5",
6160
"postcss-nested": "^4.2.1",
6261
"postcss-nesting": "^7.0.1",
6362
"prettier": "^2.0.4",

website/src/components/Mdx.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type Props = {
2929
body: string;
3030
};
3131

32-
const text = 'font-thin leading-loose';
32+
const text = 'leading-loose';
3333

3434
const components = {
3535
// Headings
@@ -66,7 +66,7 @@ const components = {
6666

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

7272
// Code
@@ -76,9 +76,9 @@ const components = {
7676
},
7777

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

8383
// Table
8484
table: (props: any) => (

website/src/styles.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ main a:hover {
2222

2323
main p,
2424
main li {
25-
@apply text-gray-600;
25+
@apply text-gray-800;
2626
}
2727

2828
li code,
@@ -71,7 +71,6 @@ h6 code {
7171
padding: 0 6px;
7272
}
7373

74-
7574
.parameter {
7675
@apply text-blue-500;
7776
}

0 commit comments

Comments
 (0)