Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

teeny tiny gradients in sketch #5

Closed
VinSpee opened this issue Apr 27, 2018 · 1 comment
Closed

teeny tiny gradients in sketch #5

VinSpee opened this issue Apr 27, 2018 · 1 comment

Comments

@VinSpee
Copy link

VinSpee commented Apr 27, 2018

Hi!

I'm using this plugin on a RN / Sketch / Web project and running into an issue with gradients in Sketch.

Code:

const Bg = ({ type }: { type: string }) => (
  <Svg
    id="grad"
    style={{
      position: 'absolute',
      ...StyleSheet.absoluteFillObject,
      width: '100%',
      height: '100%',
    }}
  >
    <Defs>
      <LinearGradient
        id={`button-sheen-${type}`}
        x1="0"
        x2="0"
        y1="0"
        y2="1"
      >
        <Stop
          offset="0%"
          stopColor={THEME[type.toUpperCase()].BG_COLOR_START}
        />
        <Stop
          offset="100%"
          stopColor={THEME[type.toUpperCase()].BG_COLOR_END}
        />
      </LinearGradient>
    </Defs>
    <Rect
      fill={`url(#button-sheen-${type})`}
      style={{
        position: 'absolute',
        ...StyleSheet.absoluteFillObject,
        width: '100%',
        height: '100%',
      }}
      x="0"
      y="0"
    />
  </Svg>
);

Web screencap (yay!):
screen shot 2018-04-27 at 2 18 27 pm

Sketch screencap (no gradient?):
screen shot 2018-04-27 at 2 18 11 pm

Sketch gradient detail (ahh, there's a gradient it's just TINY?):
screen shot 2018-04-27 at 2 19 12 pm

any thoughts on why this might be?

@VinSpee
Copy link
Author

VinSpee commented Apr 27, 2018

not a problem with this repo, sorry to bother!

airbnb/react-sketchapp#269 (comment)

@VinSpee VinSpee closed this as completed Apr 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant