Files
netris-nestri/packages/www/src/ui/button.ts
Wanjohi f62fc1fb4b feat(www): Finish up on the onboarding (#210)
Merging this prematurely to make sure the team is on the same boat... like dang! We need to find a better way to do this. 

Plus it has become too big
2025-03-26 02:21:53 +03:00

35 lines
1001 B
TypeScript

import { theme } from "./theme";
import { styled } from "@macaron-css/solid";
export const Button = styled("button", {
base: {
borderRadius: 6,
border: "1px solid transparent",
padding: `${theme.space[2]} ${theme.space[4]}`,
fontWeight: 500,
letterSpacing: 0.1,
lineHeight: "normal",
fontFamily: theme.font.family.heading,
textAlign: "center",
cursor: "pointer",
transitionDelay: "0s, 0s",
transitionDuration: "0.2s, 0.2s",
transitionProperty: "background-color, border",
transitionTimingFunction: "ease-out, ease-out",
display: "inline-flex",
gap: theme.space[1.5],
alignItems: "center",
justifyContent: "center",
":disabled": {
pointerEvents: "none",
},
},
variants: {
color: {
brand: {
backgroundColor: theme.color.brand,
color: "#FFF",
}
}
}
})