Skip to content

Commit

Permalink
feat(tailwindcss): upgrade to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Dec 22, 2021
1 parent f7a206f commit dfa741d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@nuxtjs/moment": "1.6.1",
"@nuxtjs/stylelint-module": "4.1.0",
"@nuxtjs/tailwindcss": "4.2.1",
"autoprefixer": "10.4.0",
"eslint": "8.5.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-nuxt": "3.1.0",
Expand All @@ -57,7 +58,8 @@
"stylelint": "14.2.0",
"stylelint-config-prettier": "9.0.3",
"stylelint-config-recommended-vue": "1.1.0",
"stylelint-config-standard": "24.0.0"
"stylelint-config-standard": "24.0.0",
"tailwindcss": "3.0.0"
},
"scheduleVersion": "4.8.3"
}
5 changes: 2 additions & 3 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')

function heading(theme) {
return {
Expand Down Expand Up @@ -38,7 +38,6 @@ function prose(theme) {
}

module.exports = {
mode: 'jit',
plugins: [
require('@tailwindcss/typography'),
function ({ addBase, theme }) {
Expand Down Expand Up @@ -73,7 +72,7 @@ module.exports = {
theme: {
extend: {
colors: {
link: defaultTheme.colors.blue['700'],
link: colors.blue['700'],
},
screens: {
12: { raw: '(min-aspect-ratio: 2/1)' },
Expand Down
31 changes: 29 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3337,7 +3337,7 @@ atob@^2.1.2:
resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==

autoprefixer@^10.2.5, autoprefixer@^10.4.0:
autoprefixer@10.4.0, autoprefixer@^10.2.5, autoprefixer@^10.4.0:
version "10.4.0"
resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.0.tgz#c3577eb32a1079a440ec253e404eaf1eb21388c8"
integrity sha512-7FdJ1ONtwzV1G43GDD0kpVMn/qbiNqyOPMFTX5nRffI+7vgWoFEc6DcXOxHJxrWNDXrZh18eDsZjvZGUljSRGA==
Expand Down Expand Up @@ -6934,7 +6934,7 @@ glob-parent@^5.1.2, glob-parent@~5.1.2:
dependencies:
is-glob "^4.0.1"

glob-parent@^6.0.1:
glob-parent@^6.0.1, glob-parent@^6.0.2:
version "6.0.2"
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3"
integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==
Expand Down Expand Up @@ -12650,6 +12650,33 @@ tailwind-config-viewer@^1.6.2:
portfinder "^1.0.26"
replace-in-file "^6.1.0"

tailwindcss@3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.0.0.tgz#f7dfd30996b3b1a84d656aaf3c8b6810b70d3d42"
integrity sha512-UPAp2PS5vojAvGClJFIkdh2hfFyaSWo09Ma9j2vZYW+ANhTvpUHFjY85JgtrvvXXREtDvOXy2BxW1yHOz8apCg==
dependencies:
arg "^5.0.1"
chalk "^4.1.2"
chokidar "^3.5.2"
color-name "^1.1.4"
cosmiconfig "^7.0.1"
detective "^5.2.0"
didyoumean "^1.2.2"
dlv "^1.1.3"
fast-glob "^3.2.7"
glob-parent "^6.0.2"
is-glob "^4.0.3"
normalize-path "^3.0.0"
object-hash "^2.2.0"
postcss-js "^3.0.3"
postcss-load-config "^3.1.0"
postcss-nested "5.0.6"
postcss-selector-parser "^6.0.6"
postcss-value-parser "^4.2.0"
quick-lru "^5.1.1"
resolve "^1.20.0"
tmp "^0.2.1"

tailwindcss@^2.2.2:
version "2.2.19"
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-2.2.19.tgz#540e464832cd462bb9649c1484b0a38315c2653c"
Expand Down

0 comments on commit dfa741d

Please sign in to comment.