Files
zed/styles/src/component/input.ts
Nate Butler d91a9615b5 Format
2023-08-29 16:02:04 -04:00

24 lines
621 B
TypeScript

import { useTheme } from "../common"
import { background, border, text } from "../style_tree/components"
export const input = () => {
const theme = useTheme()
return {
background: background(theme.highest),
corner_radius: 8,
min_width: 200,
max_width: 500,
placeholder_text: text(theme.highest, "mono", "disabled"),
selection: theme.players[0],
text: text(theme.highest, "mono", "default"),
border: border(theme.highest),
padding: {
top: 3,
bottom: 3,
left: 12,
right: 8,
},
}
}