Skip to content

Commit 24d0720

Browse files
authored
fix: add tailwind typography to faq content. (#2060)
1 parent a76f6bb commit 24d0720

4 files changed

Lines changed: 42 additions & 7 deletions

File tree

packages/website/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
},
2020
"dependencies": {
2121
"@magic-ext/oauth": "^0.11.2",
22+
"@tailwindcss/typography": "^0.5.2",
2223
"bytes": "^3.1.0",
2324
"clsx": "^1.1.1",
2425
"gray-matter": "^4.0.3",
@@ -73,13 +74,13 @@
7374
"jscodeshift": "^0.13.1",
7475
"next": "^12.0.7",
7576
"next-sitemap": "^1.6.203",
76-
"postcss-loader": "^6.2.1",
77-
"sass-loader": "^12.6.0",
78-
"style-loader": "^3.3.1",
7977
"postcss": "^8.4.8",
8078
"postcss-flexbugs-fixes": "^5.0.2",
8179
"postcss-import": "^14.0.2",
80+
"postcss-loader": "^6.2.1",
8281
"postcss-preset-env": "^7.3.3",
82+
"sass-loader": "^12.6.0",
83+
"style-loader": "^3.3.1",
8384
"typescript": "4.4.4"
8485
},
8586
"eslintConfig": {

packages/website/pages/faq.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ export const FAQ = ({ limit = faqs.length }) => {
126126
)}
127127
</HashLink>
128128
</h2>
129-
<div className="leading-normal text-white my-2">{faq.content}</div>
129+
<div className="prose prose-invert max-w-none text-white my-2">
130+
{faq.content}
131+
</div>
130132
</div>
131133
))}
132134
</>

packages/website/tailwind.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@ module.exports = {
3535
},
3636
extend: {},
3737
},
38-
plugins: [require('@tailwindcss/line-clamp')],
38+
plugins: [
39+
require('@tailwindcss/line-clamp'),
40+
require('@tailwindcss/typography'),
41+
],
3942
}

yarn.lock

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4209,6 +4209,15 @@
42094209
resolved "https://registry.yarnpkg.com/@tailwindcss/line-clamp/-/line-clamp-0.3.1.tgz#4d8441b509b87ece84e94f28a4aa9998413ab849"
42104210
integrity sha512-pNr0T8LAc3TUx/gxCfQZRe9NB2dPEo/cedPHzUGIPxqDMhgjwNm6jYxww4W5l0zAsAddxr+XfZcqttGiFDgrGg==
42114211

4212+
"@tailwindcss/typography@^0.5.2":
4213+
version "0.5.2"
4214+
resolved "https://registry.yarnpkg.com/@tailwindcss/typography/-/typography-0.5.2.tgz#24b069dab24d7a2467d01aca0dd432cb4b29f0ee"
4215+
integrity sha512-coq8DBABRPFcVhVIk6IbKyyHUt7YTEC/C992tatFB+yEx5WGBQrCgsSFjxHUr8AWXphWckadVJbominEduYBqw==
4216+
dependencies:
4217+
lodash.castarray "^4.4.0"
4218+
lodash.isplainobject "^4.0.6"
4219+
lodash.merge "^4.6.2"
4220+
42124221
"@testing-library/dom@^8.0.0", "@testing-library/dom@^8.13.0":
42134222
version "8.14.0"
42144223
resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.14.0.tgz#c9830a21006d87b9ef6e1aae306cf49b0283e28e"
@@ -13041,6 +13050,11 @@ lodash._reinterpolate@^3.0.0:
1304113050
resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d"
1304213051
integrity sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==
1304313052

13053+
lodash.castarray@^4.4.0:
13054+
version "4.4.0"
13055+
resolved "https://registry.yarnpkg.com/lodash.castarray/-/lodash.castarray-4.4.0.tgz#c02513515e309daddd4c24c60cfddcf5976d9115"
13056+
integrity sha512-aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q==
13057+
1304413058
lodash.debounce@^4, lodash.debounce@^4.0.8:
1304513059
version "4.0.8"
1304613060
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
@@ -13051,6 +13065,11 @@ lodash.flattendeep@^4.4.0:
1305113065
resolved "https://registry.yarnpkg.com/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz#fb030917f86a3134e5bc9bec0d69e0013ddfedb2"
1305213066
integrity sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ==
1305313067

13068+
lodash.isplainobject@^4.0.6:
13069+
version "4.0.6"
13070+
resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb"
13071+
integrity sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==
13072+
1305413073
lodash.merge@^4.6.2:
1305513074
version "4.6.2"
1305613075
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
@@ -16405,11 +16424,16 @@ prettier-linter-helpers@^1.0.0:
1640516424
dependencies:
1640616425
fast-diff "^1.1.2"
1640716426

16408-
prettier@2.5.1, "prettier@>=2.2.1 <=2.3.0", prettier@^2.5.1:
16427+
prettier@2.5.1, prettier@^2.5.1:
1640916428
version "2.5.1"
1641016429
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a"
1641116430
integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==
1641216431

16432+
"prettier@>=2.2.1 <=2.3.0":
16433+
version "2.3.0"
16434+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18"
16435+
integrity sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==
16436+
1641316437
pretty-error@^2.1.1:
1641416438
version "2.1.2"
1641516439
resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-2.1.2.tgz#be89f82d81b1c86ec8fdfbc385045882727f93b6"
@@ -19564,7 +19588,12 @@ typedoc@^0.22.14:
1956419588
minimatch "^5.1.0"
1956519589
shiki "^0.10.1"
1956619590

19567-
typescript@4.4.4, typescript@4.5.3:
19591+
typescript@4.4.4:
19592+
version "4.4.4"
19593+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.4.tgz#2cd01a1a1f160704d3101fd5a58ff0f9fcb8030c"
19594+
integrity sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==
19595+
19596+
typescript@4.5.3:
1956819597
version "4.5.3"
1956919598
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.3.tgz#afaa858e68c7103317d89eb90c5d8906268d353c"
1957019599
integrity sha512-eVYaEHALSt+s9LbvgEv4Ef+Tdq7hBiIZgii12xXJnukryt3pMgJf6aKhoCZ3FWQsu6sydEnkg11fYXLzhLBjeQ==

0 commit comments

Comments
 (0)