From 9a72aab3364530ceb7781c5d85444c4066272743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 25 Jan 2023 23:34:00 +0100 Subject: [PATCH] chore: add tw typo --- package.json | 1 + playground/content/content.md | 6 ++++++ playground/layouts/prose.vue | 5 +++++ playground/tailwind.config.ts | 7 ++++++- yarn.lock | 23 +++++++++++++++++++++++ 5 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 playground/layouts/prose.vue diff --git a/package.json b/package.json index 614cc8e7..c0c9dd3d 100755 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "@nuxt/module-builder": "latest", "@nuxt/test-utils": "^3.0.0", "@nuxtjs/eslint-config-typescript": "latest", + "@tailwindcss/typography": "^0.5.9", "codecov": "latest", "eslint": "latest", "jsdom": "^20.0.2", diff --git a/playground/content/content.md b/playground/content/content.md index d0017a3e..751042f9 100644 --- a/playground/content/content.md +++ b/playground/content/content.md @@ -1,3 +1,9 @@ +--- +layout: prose +--- + +# Hello + ::div{.my-4} [@nuxt/content support]{.px-4 .text-xl .font-bold} :: diff --git a/playground/layouts/prose.vue b/playground/layouts/prose.vue new file mode 100644 index 00000000..efee2293 --- /dev/null +++ b/playground/layouts/prose.vue @@ -0,0 +1,5 @@ + diff --git a/playground/tailwind.config.ts b/playground/tailwind.config.ts index 0ad7e957..0cef5ee7 100644 --- a/playground/tailwind.config.ts +++ b/playground/tailwind.config.ts @@ -1,3 +1,5 @@ +import typography from '@tailwindcss/typography' + export default { theme: { extend: { @@ -5,5 +7,8 @@ export default { sans: 'Inter, ui-sans-serif, system-ui, -apple-system, Arial, Roboto, sans-serif' } } - } + }, + plugins: [ + typography() + ] } diff --git a/yarn.lock b/yarn.lock index 3a297ab1..0a0abd79 100644 --- a/yarn.lock +++ b/yarn.lock @@ -869,6 +869,16 @@ resolved "https://registry.yarnpkg.com/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz#96116f2a912e0c02817345b3c10751069920d553" integrity sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg== +"@tailwindcss/typography@^0.5.9": + version "0.5.9" + resolved "https://registry.yarnpkg.com/@tailwindcss/typography/-/typography-0.5.9.tgz#027e4b0674929daaf7c921c900beee80dbad93e8" + integrity sha512-t8Sg3DyynFysV9f4JDOVISGsjazNb48AeIYQwcL+Bsq5uf4RYL75C1giZ43KISjeDGBaTN3Kxh7Xj/vRSMJUUg== + dependencies: + lodash.castarray "^4.4.0" + lodash.isplainobject "^4.0.6" + lodash.merge "^4.6.2" + postcss-selector-parser "6.0.10" + "@tootallnate/once@1": version "1.1.2" resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" @@ -4913,6 +4923,11 @@ lodash._reinterpolate@^3.0.0: resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" integrity sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA== +lodash.castarray@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.castarray/-/lodash.castarray-4.4.0.tgz#c02513515e309daddd4c24c60cfddcf5976d9115" + integrity sha512-aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q== + lodash.debounce@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" @@ -6695,6 +6710,14 @@ postcss-reduce-transforms@^5.1.0: dependencies: postcss-value-parser "^4.2.0" +postcss-selector-parser@6.0.10: + version "6.0.10" + resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz#79b61e2c0d1bfc2602d549e11d0876256f8df88d" + integrity sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w== + dependencies: + cssesc "^3.0.0" + util-deprecate "^1.0.2" + postcss-selector-parser@^6.0.10, postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4, postcss-selector-parser@^6.0.5, postcss-selector-parser@^6.0.9: version "6.0.11" resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.11.tgz#2e41dc39b7ad74046e1615185185cd0b17d0c8dc"