Skip to content

Instantly share code, notes, and snippets.

@sohhamm
Created January 23, 2022 09:42
Show Gist options
  • Select an option

  • Save sohhamm/4d7d4d7706b282bd2972a362eeefa32b to your computer and use it in GitHub Desktop.

Select an option

Save sohhamm/4d7d4d7706b282bd2972a362eeefa32b to your computer and use it in GitHub Desktop.

Revisions

  1. sohhamm created this gist Jan 23, 2022.
    16 changes: 16 additions & 0 deletions stitches.config.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    {
    utils: {
    mx: value => ({marginLeft: value, marginRight: value}),
    my: value => ({marginTop: value, marginBottom: value}),
    mt: value => ({marginTop: value}),
    mb: value => ({marginBottom: value}),
    mr: value => ({marginRight: value}),
    ml: value => ({marginLeft: value}),
    px: value => ({paddingLeft: value, paddingRight: value}),
    py: value => ({paddingTop: value, paddingBottom: value}),
    pt: value => ({paddingTop: value}),
    pb: value => ({paddingBottom: value}),
    pr: value => ({paddingRight: value}),
    pl: value => ({paddingLeft: value}),
    },
    }