├── .github ├── ISSUE_TEMPLATE │ ├── 1.bug_report.yml │ └── config.yml ├── logo-dark.svg ├── logo-light.svg └── workflows │ ├── nodejs.yml │ ├── prepare-release.yml │ ├── release-insiders.yml │ └── release.yml ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── demo ├── components │ ├── MarkdownSample.mdx │ └── MarkdownSampleShort.mdx ├── next.config.js ├── pages │ ├── _app.js │ ├── dark.js │ ├── index.js │ ├── list-items.js │ ├── themes.js │ └── variants.js ├── postcss.config.js ├── public │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ └── favicon.ico └── tailwind.config.js ├── jest └── customMatchers.js ├── package-lock.json ├── package.json ├── scripts ├── release-channel.js └── release-notes.js └── src ├── index.d.ts ├── index.js ├── index.test.js ├── styles.js └── utils.js /.github/ISSUE_TEMPLATE/1.bug_report.yml: -------------------------------------------------------------------------------- 1 | name: Bug Report 2 | description: Create a bug report for @tailwindcss/typography. 3 | labels: [] 4 | body: 5 | - type: input 6 | attributes: 7 | label: What version of @tailwindcss/typography are you using? 8 | description: 'For example: v0.4.0' 9 | validations: 10 | required: true 11 | - type: input 12 | attributes: 13 | label: What version of Node.js are you using? 14 | description: 'For example: v12.0.0' 15 | validations: 16 | required: true 17 | - type: input 18 | attributes: 19 | label: What browser are you using? 20 | description: 'For example: Chrome, Safari, or N/A' 21 | validations: 22 | required: true 23 | - type: input 24 | attributes: 25 | label: What operating system are you using? 26 | description: 'For example: macOS, Windows' 27 | validations: 28 | required: true 29 | - type: input 30 | attributes: 31 | label: Reproduction repository 32 | description: A public GitHub repo that includes a minimal reproduction of the bug. Unfortunately we can't provide support without a reproduction, and your issue will be closed and locked with no comment if this is not provided. 33 | validations: 34 | required: true 35 | - type: textarea 36 | attributes: 37 | label: Describe your issue 38 | description: Describe the problem you're seeing, any important steps to reproduce and what behavior you expect instead 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Feature Request 4 | url: https://github.com/tailwindlabs/tailwindcss/discussions/new?category=ideas 5 | about: 'Suggest any ideas you have using our discussion forums.' 6 | - name: Help 7 | url: https://github.com/tailwindlabs/tailwindcss/discussions/new?category=help 8 | about: 'If you have a question or need help, ask a question on the discussion forums.' 9 | - name: Kind Words 10 | url: https://github.com/tailwindlabs/tailwindcss/discussions/new?category=kind-words 11 | about: "Have something nice to say about @tailwindcss/typography or Tailwind CSS in general? We'd love to hear it!" 12 | -------------------------------------------------------------------------------- /.github/logo-dark.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.github/logo-light.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- 1 | # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions 3 | 4 | name: Node.js CI 5 | 6 | on: 7 | push: 8 | branches: [main] 9 | pull_request: 10 | branches: [main] 11 | 12 | jobs: 13 | build: 14 | runs-on: ubuntu-latest 15 | 16 | strategy: 17 | matrix: 18 | node-version: [20, 22] 19 | 20 | steps: 21 | - uses: actions/checkout@v4 22 | - name: Use Node.js ${{ matrix.node-version }} 23 | uses: actions/setup-node@v4 24 | with: 25 | node-version: ${{ matrix.node-version }} 26 | cache: 'npm' 27 | 28 | - name: Install dependencies 29 | run: npm install 30 | 31 | - run: npm test 32 | -------------------------------------------------------------------------------- /.github/workflows/prepare-release.yml: -------------------------------------------------------------------------------- 1 | name: Prepare Release 2 | 3 | on: 4 | workflow_dispatch: 5 | push: 6 | tags: 7 | - 'v*' 8 | 9 | permissions: 10 | contents: read 11 | 12 | jobs: 13 | prepare: 14 | permissions: 15 | contents: write # for softprops/action-gh-release to create GitHub release 16 | 17 | runs-on: ubuntu-latest 18 | 19 | strategy: 20 | matrix: 21 | node-version: [22] 22 | 23 | steps: 24 | - uses: actions/checkout@v4 25 | 26 | - name: Use Node.js ${{ matrix.node-version }} 27 | uses: actions/setup-node@v4 28 | with: 29 | node-version: ${{ matrix.node-version }} 30 | registry-url: 'https://registry.npmjs.org' 31 | cache: 'npm' 32 | 33 | - name: Install dependencies 34 | run: npm install 35 | 36 | - name: Test 37 | run: npm test 38 | 39 | - name: Resolve version 40 | id: vars 41 | run: | 42 | echo "TAG_NAME=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV 43 | 44 | - name: Get release notes 45 | run: | 46 | RELEASE_NOTES=$(npm run release-notes --silent) 47 | echo "RELEASE_NOTES<> $GITHUB_ENV 48 | echo "$RELEASE_NOTES" >> $GITHUB_ENV 49 | echo "EOF" >> $GITHUB_ENV 50 | 51 | - name: Release 52 | uses: softprops/action-gh-release@v1 53 | with: 54 | draft: true 55 | tag_name: ${{ env.TAG_NAME }} 56 | body: ${{ env.RELEASE_NOTES }} 57 | -------------------------------------------------------------------------------- /.github/workflows/release-insiders.yml: -------------------------------------------------------------------------------- 1 | name: Release Insiders 2 | 3 | on: 4 | push: 5 | branches: [main] 6 | 7 | permissions: 8 | contents: read 9 | id-token: write 10 | 11 | jobs: 12 | build: 13 | runs-on: ubuntu-latest 14 | 15 | strategy: 16 | matrix: 17 | node-version: [22] 18 | 19 | steps: 20 | - uses: actions/checkout@v2 21 | 22 | - name: Use Node.js ${{ matrix.node-version }} 23 | uses: actions/setup-node@v2 24 | with: 25 | node-version: ${{ matrix.node-version }} 26 | registry-url: 'https://registry.npmjs.org' 27 | cache: 'npm' 28 | 29 | - name: Install dependencies 30 | run: npm install 31 | 32 | - name: Test 33 | run: npm test 34 | 35 | - name: Resolve version 36 | id: vars 37 | run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" 38 | 39 | - name: 'Version based on commit: 0.0.0-insiders.${{ steps.vars.outputs.sha_short }}' 40 | run: npm version 0.0.0-insiders.${{ steps.vars.outputs.sha_short }} --force --no-git-tag-version 41 | 42 | - name: Publish 43 | run: npm publish --provenance --tag insiders 44 | env: 45 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} 46 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | release: 5 | types: [published] 6 | 7 | permissions: 8 | contents: read 9 | id-token: write 10 | 11 | jobs: 12 | build: 13 | runs-on: ubuntu-latest 14 | 15 | strategy: 16 | matrix: 17 | node-version: [22] 18 | 19 | steps: 20 | - uses: actions/checkout@v3 21 | 22 | - name: Use Node.js ${{ matrix.node-version }} 23 | uses: actions/setup-node@v3 24 | with: 25 | node-version: ${{ matrix.node-version }} 26 | registry-url: 'https://registry.npmjs.org' 27 | cache: 'npm' 28 | 29 | - name: Install dependencies 30 | run: npm install 31 | 32 | - name: Test 33 | run: npm test 34 | 35 | - name: Calculate environment variables 36 | run: | 37 | echo "RELEASE_CHANNEL=$(npm run release-channel --silent)" >> $GITHUB_ENV 38 | 39 | - name: Publish 40 | run: npm publish --provenance --tag ${{ env.RELEASE_CHANNEL }} 41 | env: 42 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} 43 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .next 2 | node_modules 3 | /demo/out 4 | coverage/ 5 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to this project will be documented in this file. 4 | 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 | 8 | ## [Unreleased] 9 | 10 | ### Fixed 11 | 12 | - Include unit in `hr` border-width value ([#379](https://github.com/tailwindlabs/tailwindcss-typography/pull/379) 13 | 14 | ## [0.5.16] - 2025-01-07 15 | 16 | ### Fixed 17 | 18 | - Support installing with beta versions of Tailwind CSS v4 ([#365](https://github.com/tailwindlabs/tailwindcss-typography/pull/365)) 19 | 20 | ## [0.5.15] - 2024-08-28 21 | 22 | ### Fixed 23 | 24 | - Support installing with alpha versions of Tailwind CSS v4 ([#358](https://github.com/tailwindlabs/tailwindcss-typography/pull/358)) 25 | 26 | ## [0.5.14] - 2024-08-07 27 | 28 | ### Fixed 29 | 30 | - Fix table text alignment ([#346](https://github.com/tailwindlabs/tailwindcss-typography/pull/346)) 31 | 32 | ## [0.5.13] - 2024-04-26 33 | 34 | ### Fixed 35 | 36 | - Don't apply margins to `
` elements contained in an `
  • ` in FF ([#350](https://github.com/tailwindlabs/tailwindcss-typography/pull/350)) 37 | 38 | ## [0.5.12] - 2024-03-27 39 | 40 | ### Added 41 | 42 | - Use logical properties for better RTL support ([#323](https://github.com/tailwindlabs/tailwindcss-typography/pull/323)) 43 | 44 | ## [0.5.11] - 2024-03-26 45 | 46 | ### Added 47 | 48 | - Add `prose-kbd` modifier ([#340](https://github.com/tailwindlabs/tailwindcss-typography/pull/340)) 49 | 50 | ### Fixed 51 | 52 | - Fix space between `
    ` and `