forked from tailwindlabs/tailwindcss-typography
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
prose-inline-code
element modifier (tailwindlabs#329)
* Add `prose-inline-code` element modifier (add selector, update readme and tests).
- Loading branch information
Showing
4 changed files
with
87 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import Head from 'next/head' | ||
|
||
export default function Index() { | ||
return ( | ||
<div className="antialiased text-gray-900 py-12 pl-32 space-y-12"> | ||
<Head> | ||
<title>Tailwind CSS Typography</title> | ||
</Head> | ||
<div className="relative"> | ||
<div className="relative prose prose-lg prose-code:text-sky-500"> | ||
<h3>reaching all code</h3> | ||
<pre> | ||
<code> | ||
<span className="block">console.log('test 1')</span> | ||
<span className="block">console.log('test 2')</span> | ||
<span className="block">console.log('test 3')</span> | ||
</code> | ||
</pre> | ||
<p> | ||
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Amet deleniti quis veniam{' '} | ||
<code>console.log('test inline')</code> repudiandae optio in at quibusdam autem vero | ||
excepturi. | ||
</p> | ||
</div> | ||
</div> | ||
<div className="relative"> | ||
<div className="relative prose prose-lg prose-inline-code:text-rose-500"> | ||
<h3>reaching inline code only</h3> | ||
<pre> | ||
<code> | ||
<span className="block">console.log('test 1')</span> | ||
<span className="block">console.log('test 2')</span> | ||
<span className="block">console.log('test 3')</span> | ||
</code> | ||
</pre> | ||
<p> | ||
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Amet deleniti quis veniam | ||
debitis vel, hic sunt, nulla deserunt animi iure aliquid et,{' '} | ||
<code>console.log('test inline')</code> repudiandae optio in at quibusdam autem vero | ||
excepturi. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export const config = { | ||
unstable_runtimeJS: false, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters