mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-12 16:18:41 -05:00
* new filter for modes * new filter for abilities * prettifier * fix imports * fix margin + some things from pull request * better fix for select * MySelect default style + styles for selects on builds page. * Remove duplicates, import default style from file
46 lines
952 B
TypeScript
46 lines
952 B
TypeScript
import { useMyTheme } from "../hooks/common";
|
|
|
|
|
|
const defaultStyles = () => {
|
|
const {
|
|
borderColor,
|
|
themeColorHex,
|
|
themeColorOpaque,
|
|
textColor,
|
|
} = useMyTheme();
|
|
|
|
return {
|
|
singleValue: (base: any) => ({
|
|
...base,
|
|
padding: 5,
|
|
borderRadius: 5,
|
|
color: textColor,
|
|
display: "flex",
|
|
}),
|
|
input: (base: any) => ({
|
|
...base,
|
|
color: textColor,
|
|
}),
|
|
multiValue: (base: any) => ({
|
|
...base,
|
|
background: themeColorHex,
|
|
color: "black",
|
|
}),
|
|
option: (styles: any, {isFocused}: any) => {
|
|
return {
|
|
...styles,
|
|
backgroundColor: isFocused ? themeColorOpaque : undefined,
|
|
color: textColor,
|
|
};
|
|
},
|
|
menu: (styles: any) => ({...styles, zIndex: 999}),
|
|
control: (base: any) => ({
|
|
...base,
|
|
borderColor,
|
|
minHeight: "2.5rem",
|
|
background: "hsla(0, 0%, 0%, 0)",
|
|
}),
|
|
};
|
|
};
|
|
|
|
export default defaultStyles; |