feather icons and inter (#3366)

This commit is contained in:
Peer Richelsen authored and GitHub committed 2022-07-26 20:24:00 -06:00
1 parent a1fcdcae44
commit b9645b4de5
142 files changed
+636 -941

No files matched your search

+4 -2
View File
@@ -9,8 +9,9 @@ module.exports = {
darkMode: "class",
theme: {
fontFamily: {
cal: ["Cal Sans", "sans-serif"],
cal: ['"Cal Sans"', "sans-serif"],
mono: ["Roboto Mono", "monospace"],
sans: ['"Inter var"', "sans-serif"],
},
extend: {
colors: {
@@ -113,8 +114,9 @@ module.exports = {
},
},
fontFamily: {
cal: ["Cal Sans", "sans-serif"],
cal: ['"Cal Sans"', "sans-serif"],
mono: ["Roboto Mono", "monospace"],
sans: ['"Inter var"', "sans-serif"],
},
maxHeight: (theme) => ({
0: "0",
+2 -2
View File
@@ -58,7 +58,7 @@ export const Button = forwardRef<HTMLAnchorElement | HTMLButtonElement, ButtonPr
size === "base" && "px-3 py-2 text-sm font-medium rounded-sm",
size === "lg" && "px-4 py-2 text-base font-medium rounded-sm",
size === "icon" &&
"group p-2 border rounded-sm border-transparent text-neutral-400 hover:border-gray-200 transition",
"w-10 h-10 justify-center group p-2 border rounded-lg border-transparent text-neutral-400 hover:border-gray-200 transition",
// turn button into a floating action button (fab)
size === "fab" ? "fixed" : "relative",
size === "fab" && "justify-center bottom-20 right-8 rounded-full p-4 w-14 h-14",
@@ -105,7 +105,7 @@ export const Button = forwardRef<HTMLAnchorElement | HTMLButtonElement, ButtonPr
<StartIcon
className={classNames(
"inline",
size === "icon" ? "h-5 w-5 " : "-ml-1 h-5 w-5 ltr:mr-2 rtl:ml-2 rtl:-mr-1",
size === "icon" ? "h-4 w-4 " : "-ml-1 h-4 w-4 ltr:mr-2 rtl:ml-2 rtl:-mr-1",
startIconClassName || ""
)}
/>
+18
View File
@@ -0,0 +1,18 @@
// find all feather icons at https://feathericons.com/
// github https://github.com/feathericons/feather
export * as Icon from "react-feather";
// if feather icon is missing, use "@heroicons/react/outline";
export { CollectionIcon } from "@heroicons/react/outline";
export { ShieldCheckIcon } from "@heroicons/react/outline";
export { BadgeCheckIcon } from "@heroicons/react/outline";
export { ClipboardCopyIcon } from "@heroicons/react/outline";
// TODO:
// right now: Icon.Sun comes from react-feather
// CollectionIcon comes from "@heroicons/react/outline";
// I want:
// export CollectionIcon as Icon.Collection
// so I can
// import { Icon } from "@calcom/ui/Icon";