Skip to content

Commit

Permalink
chore: remove MDX integration from Tailwind example (#7987)
Browse files Browse the repository at this point in the history
Co-authored-by: Nate Moore <[email protected]>
  • Loading branch information
ElianCodes and natemoo-re authored Aug 7, 2023
1 parent 2e36d96 commit 4d160fa
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 19 deletions.
3 changes: 1 addition & 2 deletions examples/with-tailwindcss/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import tailwind from '@astrojs/tailwind';

// https://astro.build/config
export default defineConfig({
integrations: [mdx(), tailwind()],
integrations: [tailwind()],
});
1 change: 0 additions & 1 deletion examples/with-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^0.19.7",
"@astrojs/tailwind": "^4.0.0",
"@types/canvas-confetti": "^1.6.0",
"astro": "^2.10.3",
Expand Down
16 changes: 16 additions & 0 deletions examples/with-tailwindcss/src/pages/markdown-page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: 'Markdown + Tailwind'
layout: ../layouts/main.astro
---

<div class="grid place-items-center h-screen content-center">
<div class="py-2 px-4 bg-purple-500 text-white font-semibold rounded-lg shadow-md">
Tailwind classes also work in Markdown!
</div>
<a
href="/"
class="p-4 underline hover:text-purple-500 transition-colors ease-in-out duration-200"
>
Go home
</a>
</div>
13 changes: 0 additions & 13 deletions examples/with-tailwindcss/src/pages/markdown-page.mdx

This file was deleted.

3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4d160fa

Please sign in to comment.