skrantzman / DNN_Tailwind

DNN_Tailwind is a powerful theme development platform that allows you to create robust and responsive DNN website themes, all while writing very little css.
https://www.dnntailwind.com
GNU General Public License v3.0
8 stars 0 forks source link

[Snyk] Upgrade @tailwindcss/typography from 0.2.0 to 0.3.1 #6

Closed snyk-bot closed 3 years ago

snyk-bot commented 3 years ago

Snyk has created this PR to upgrade @tailwindcss/typography from 0.2.0 to 0.3.1.

merge advice :information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


Release notes
Package name: @tailwindcss/typography
  • 0.3.1 - 2020-11-18

    0.3.1

  • 0.3.0 - 2020-11-18

    This release drops support for Tailwind CSS v1.0.

    Some of the changes needed to support Tailwind CSS v2.0 necessitate dropping support for v1.0. You should stay on v0.2.0 until you can upgrade your projects to Tailwind CSS v2.0.

    Read the Tailwind CSS v2.0 upgrade guide for information on upgrading your projects.

    Changed

    • Add support for Tailwind CSS v2.0 and drops support for v1.0 (#79, #82, #87)
    • Use extend for any overrides, assigning directly to theme.typography now completely overrides default configuration
    • Consistently use ::before instead of :before (ba33d77)
    • Read color values from the user's theme instead of only the default theme

    Added

    • Add new className option for overriding prose class (#28)
    • Add color modifiers by default like prose-blue for setting link styles (#92)

    Upgrading from v0.2.0 to v0.3.0

    This version of the plugin is designed for Tailwind CSS v2.0. Make sure you upgrade Tailwind before upgrading this plugin.

    Customizations should be moved under extend, default should become DEFAULT

    The biggest difference is that any customizations you had under theme.typography should be moved to theme.extend.typography, and the default key should be uppercased to DEFAULT:

      module.exports = {
        theme: {
          typography: {
    -       default: {
    -         css: {
    -           color: theme("colors.gray.700"),
    -           '[class~="lead"]': {
    -             color: theme("colors.gray.600"),
    -           },
    -           a: {
    -             color: theme("colors.indigo.600"),
    -             fontWeight: 600,
    -             textDecoration: "none",
    -           },
    -         },
    -       },
    +       extend: {
    +         DEFAULT: {
    +           css: {
    +             color: theme("colors.gray.700"),
    +             '[class~="lead"]': {
    +               color: theme("colors.gray.600"),
    +             },
    +             a: {
    +               color: theme("colors.indigo.600"),
    +               fontWeight: 600,
    +               textDecoration: "none",
    +             },
    +           },
    +         },
    +       },
    +     },
        },
      };

    Any customizations directly under theme.typography will now completely replace the defaults, which is consistent with how theme modification generally works in Tailwind.

    Colors are read from theme by default

    In previous versions, all of the colors used by this plugin were read from Tailwind's default theme rather than from your theme. The plugin now looks for colors in your theme first, falling back to the defaults if they don't exist. So if the plugin is looking for gray.700 for the main body color, it will use your defined gray.700 if present, or fall back to the default one.

    If your colors are totally custom and the numbers don't line up with Tailwind's defaults from a contrast perspective, you probably won't get good results out of the box. In this case you should manually override the colors like you were likely already doing using the existing customization API.

  • 0.2.0 - 2020-07-15
    • Switches how variants are generated to use the new component variants API in Tailwind 1.5, dropping support for Tailwind < 1.5
from @tailwindcss/typography GitHub release notes
Commit messages
Package name: @tailwindcss/typography
  • 5482ee9 0.3.1
  • 2b6dc7b 0.3.0
  • cb415ad update peer dependency to latest tailwindcss alpha version
  • c1bbc58 Read colors from config, fallback to default config
  • 6ebf5e9 Merge pull request #92 from tailwindlabs/color-modifiers
  • 6f7feda Update Tailwind version
  • 0d2a178 Support safelisting default modifiers
  • c320fd5 Add color modifiers
  • caa70b6 chore: Prepare for Tailwind 2.0 - Part 3 (#87)
  • cbfeb47 chore: Prepare Tailwind 2.0 - Part 2 (#82)
  • 1a51113 Merge pull request #79 from tailwindlabs/prepare-tailwind-2.0
  • 49ec7a7 update typography with new defaults
  • e911196 add prettier config + reformat
  • 587db8f rename prepare to prepublishOnly
  • 6a6e9f0 bump tailwindcss to 2.0
  • 41a24c0 mark npm package as public
  • 942d0b9 Add purge information to README
  • ba33d77 Consistently use ::before instead of :before
  • 060bed3 Merge pull request #28 from ahaseeb04/master
  • d6e2c17 Allow a custom class name
  • 385f854 Merge pull request #20 from HugoDF/patch-1
  • 1974d1e Update README.md
  • d806948 Merge pull request #22 from ahaseeb04/amend-docs
  • caed2c1 Update README.md
Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs