Skip to content

Commit

Permalink
Merge pull request #319 from chrismwilliams/remove/tailwind-aspect-ratio
Browse files Browse the repository at this point in the history
Remove: @tailwindcss/aspect-ratio
  • Loading branch information
chrismwilliams authored Oct 8, 2024
2 parents 6faee86 + 151d91d commit 1b15f33
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"@iconify-json/mdi": "^1.1.68",
"@pagefind/default-ui": "^1.1.0",
"@resvg/resvg-js": "^2.6.2",
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/typography": "^0.5.14",
"@types/hast": "^3.0.4",
"@types/mdast": "^4.0.4",
Expand Down
12 changes: 0 additions & 12 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/components/blog/Masthead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const dateTimeOptions: Intl.DateTimeFormatOptions = {

{
data.coverImage && (
<div class="aspect-h-9 aspect-w-16 mb-6">
<div class="aspect-[16/9] mb-6">
<Image
alt={data.coverImage.alt}
class="object-cover"
Expand Down
5 changes: 1 addition & 4 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,18 @@ export default {
"!./src/pages/og-image/[slug].png.ts",
],
corePlugins: {
// disable aspect ratio as per docs -> @tailwindcss/aspect-ratio
aspectRatio: false,
// disable some core plugins as they are included in the css, even when unused
borderOpacity: false,
fontVariantNumeric: false,
ringOffsetColor: false,
ringOffsetWidth: false,
scrollSnapType: false,
textOpacity: false,
// disable some core plugins as they are included in the css, even when unused
touchAction: false,
},
darkMode: ["class", '[data-theme="dark"]'],
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/aspect-ratio"),
plugin(({ addComponents }) => {
addComponents({
".cactus-link": {
Expand Down

0 comments on commit 1b15f33

Please sign in to comment.