Skip to content

Commit

Permalink
feat: add support for the new background origin utils
Browse files Browse the repository at this point in the history
Fixes #241
  • Loading branch information
muhammadsammy committed Jun 17, 2021
1 parent f7281e9 commit 04d7d9f
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 97 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@
"rollup-plugin-terser": "^7.0.2",
"semver": "^7.3.2",
"standard-version": "^9.1.0",
"tailwindcss": "^2.1.2",
"tailwindcss": "^2.2.0",
"ts-jest": "~26.5.1",
"typescript": "^4.1.3"
"typescript": "^4.3.4"
}
}
1 change: 1 addition & 0 deletions src/cli/lib/defaultTailwindConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,7 @@ export const defaultTailwindConfig = {
backgroundPosition: ['responsive'],
backgroundRepeat: ['responsive'],
backgroundSize: ['responsive'],
backgroundOrigin: ['responsive'],
blur: ['responsive'],
borderCollapse: ['responsive'],
borderColor: ['responsive', 'dark', 'group-hover', 'focus-within', 'hover', 'focus'],
Expand Down
3 changes: 3 additions & 0 deletions src/cli/lib/non-configurable/backgrounds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ const backgroundAttachment = ['bg-fixed', 'bg-local', 'bg-scroll'];

const backgroundClip = ['bg-clip-border', 'bg-clip-padding', 'bg-clip-content', 'bg-clip-text'];

const backgroundOrigin = ['bg-origin-border', 'bg-origin-padding', 'bg-origin-content'];

const backgroundRepeat = [
'bg-repeat',
'bg-no-repeat',
Expand All @@ -14,5 +16,6 @@ const backgroundRepeat = [
export default {
backgroundAttachment,
backgroundClip,
backgroundOrigin,
backgroundRepeat,
};
Loading

0 comments on commit 04d7d9f

Please sign in to comment.