Skip to content

Instantly share code, notes, and snippets.

View nikitatrifan's full-sized avatar

Nikita Trifan nikitatrifan

View GitHub Profile
@nikitatrifan
nikitatrifan / Button.tsx
Last active October 4, 2024 22:29
createStyled for Restyle to add support for variants and compound variants
import { createStyled } from "./createStyled";
export const Button = createStyled({
as: "button",
styles: {
$$textColor: "$textColors$primary",
$$iconColor: "$iconColors$primary",
$$backgroundColor: "$colors$dark10",
$$backgroundColorOnHover: "$colors$dark20",