Skip to content

Commit

Permalink
FEAT: Add plugin in postcss
Browse files Browse the repository at this point in the history
이미지 fallback을 위한 image-set플러그인 추가
  • Loading branch information
pereng11 committed Aug 2, 2022
1 parent 7c39833 commit 6f28528
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 7 deletions.
31 changes: 30 additions & 1 deletion package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"npm-run-all": "^4.1.5",
"postcss": "^8.4.14",
"postcss-cli": "^10.0.0",
"postcss-image-set-function": "^4.0.7",
"prettier": "^2.7.1",
"tailwindcss": "^3.1.7"
}
Expand Down
11 changes: 6 additions & 5 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
plugins: [
require('tailwindcss'),
require('autoprefixer'),
require('postcss-image-set'),
],
};
Binary file added src/images/crown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 14 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,20 @@
module.exports = {
content: ['./src/**/*.{html,js}', './index.html'],
theme: {
extend: {},
extend: {
colors: {
pink1: '#FF7C98',
pink2: '#E01883',
navy1: '#224289',
beige1: '#F9F8F7',
brown1: '#918984',
brown2: '#726454',
white: '#FEFEFE',
gray: '#CDCCD5',
black1: '#2F231C',
black2: '#321C15',
},
},
},
plugins: [],
};

0 comments on commit 6f28528

Please sign in to comment.