1import Theme from "../themes/common/theme";
2import { backgroundColor, border, popoverShadow, text } from "./components";
3
4export default function tooltip(theme: Theme) {
5 return {
6 background: backgroundColor(theme, 500),
7 border: border(theme, "secondary"),
8 padding: { top: 4, bottom: 4, left: 8, right: 8 },
9 margin: { top: 6, left: 6 },
10 shadow: popoverShadow(theme),
11 cornerRadius: 6,
12 text: text(theme, "sans", "primary", { size: "xs" }),
13 keystroke: {
14 background: backgroundColor(theme, "on500"),
15 cornerRadius: 4,
16 margin: { left: 6 },
17 padding: { left: 4, right: 4 },
18 ...text(theme, "mono", "secondary", { size: "xs", weight: "bold" }),
19 },
20 maxTextWidth: 200,
21 };
22}