Skip to content

Commit

Permalink
feat: ShadowedCardが不要と判断したので削除
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidetaro7 committed Sep 1, 2021
1 parent e791efb commit f719b84
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 34 deletions.
15 changes: 5 additions & 10 deletions packages/tailwindcss/card.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
const plugin = require("tailwindcss/plugin");
const theme = require("./theme");
const cardStyle = require("./lib/cardStyle");

module.exports = plugin.withOptions(
// NOTE: couldn't merge plugin-side theme when wrote the plugin without withOptions
() => {
return ({ addComponents, theme }) => {
const { base } = cardStyle(theme);
addComponents([
{
".card": {
...base,
backgroundColor: theme("colors.white"),
borderRadius: theme("borderRadius.md"),
overflow: "hidden",
"border-width": "1px",
"border-color": theme("colors.gray.200"),
},

".shadowed-card": {
...base,
"border-color": theme("colors.gray.100"),
"box-shadow": `0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)`,
},
}
},
]);
};
Expand Down
8 changes: 0 additions & 8 deletions packages/tailwindcss/lib/cardStyle.js

This file was deleted.

16 changes: 0 additions & 16 deletions packages/tailwindcss/stories/ShadowedCard.stories.js

This file was deleted.

0 comments on commit f719b84

Please sign in to comment.