Re-organise

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-25 21:52:45 +01:00
parent 34a2740106
commit 6891a7517a
440 changed files with 0 additions and 16 deletions

View file

@ -0,0 +1,47 @@
// Start create plugin
const plugin = require("tailwindcss/plugin");
module.exports = plugin(({ addComponents, theme }) {
});
// End create plugin
// Start define styles
const plugin = require("tailwindcss/plugin");
module.exports = plugin(({ addComponents, theme }) {
let styles = {
primary: {
default: {
backgroundColor: theme("colors.primary.DEFAULT"),
border: `2px solid ${theme("colors.primary.dark")}`,
borderRadius: "10px",
color: theme("colors.white"),
cursor: "pointer",
padding: `${theme("padding.3")} ${theme("padding.12")}`,
},
hover: {
backgroundColor: theme("colors.white"),
color: theme("colors.primary.DEFAULT"),
},
},
}
});
// End define styles
// Start add components
const plugin = require("tailwindcss/plugin");
module.exports = plugin(({ addComponents, theme }) {
// ...
addComponents({
"#edit-checkout.button": styles.primary.default,
"#edit-checkout.button:hover, #edit-checkout.button:focus":
styles.primary.hover,
});
});
// End add components