@clerk/themes
Version:
Themes for the Clerk auth components
143 lines (142 loc) • 3.69 kB
JavaScript
;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var neobrutalism_exports = {};
__export(neobrutalism_exports, {
neobrutalism: () => neobrutalism
});
module.exports = __toCommonJS(neobrutalism_exports);
var import_createTheme = require("../createTheme");
const buttonStyle = {
boxShadow: "3px 3px 0px #000",
border: "2px solid #000",
"&:focus": {
boxShadow: "4px 4px 0px #000",
border: "2px solid #000",
transform: "scale(1.01)"
},
"&:active": {
boxShadow: "2px 2px 0px #000",
transform: "translate(1px)"
}
};
const shadowStyle = {
boxShadow: "3px 3px 0px #000",
border: "2px solid #000"
};
const neobrutalism = (0, import_createTheme.experimental_createTheme)({
name: "neobrutalism",
//@ts-expect-error not public api
simpleStyles: true,
variables: {
colorPrimary: "#DF1B1B",
colorShimmer: "rgba(255,255,255,0.64)",
fontWeight: {
normal: 500,
medium: 600,
bold: 700
}
},
elements: {
cardBox: {
boxShadow: "7px 7px 0px #000",
border: "3px solid #000"
},
card: {
borderRadius: "0"
},
headerSubtitle: { color: "#212126" },
alternativeMethodsBlockButton: buttonStyle,
socialButtonsIconButton: {
...buttonStyle
},
selectButton: {
...buttonStyle,
...shadowStyle,
transition: "all 0.2s ease-in-out",
"&:focus": {
boxShadow: "4px 4px 0px #000",
border: "2px solid #000",
transform: "scale(1.01)"
}
},
socialButtonsBlockButton: { ...buttonStyle, color: "#212126" },
profileSectionPrimaryButton: buttonStyle,
profileSectionItem: { color: "#212126" },
avatarImageActionsUpload: buttonStyle,
menuButton: shadowStyle,
menuList: shadowStyle,
formButtonPrimary: buttonStyle,
navbarButton: buttonStyle,
formFieldAction: {
fontWeight: "700"
},
formFieldInput: {
...shadowStyle,
transition: "all 0.2s ease-in-out",
"&:focus": {
boxShadow: "4px 4px 0px #000",
border: "2px solid #000",
transform: "scale(1.01)"
},
"&:hover": {
...shadowStyle,
transform: "scale(1.01)"
}
},
table: shadowStyle,
tableHead: {
color: "#212126"
},
dividerLine: {
background: "#000"
},
dividerText: {
fontWeight: "700",
color: "#212126"
},
footer: {
background: "#fff",
"& div": {
color: "#212126"
}
},
footerActionText: {
color: "#212126"
},
footerActionLink: {
fontWeight: "700",
borderBottom: "3px solid",
"&:focus": {
boxShadow: "none"
}
},
actionCard: {
...shadowStyle
},
badge: {
border: "1px solid #000",
background: "#fff",
color: "#212126"
}
}
});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
neobrutalism
});