npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

figma-overlay

v1.0.12

Published

Your best friend when working with Figma designs

Downloads

21

Readme

Figma overlay

NPM version GitHub license Support Support me

Figma overlay is a drop-in component to create an overlay over your website to compare it to it's figma counterpart

It works by grabbing the page/component svg from your clipboard and creating a floating image for you to drag around and compare, letting you move it per-pixel using the arrow keys and changing the opacity for easy comparison. Figma overlay is a Web Component so it works with any framework

IntroductionInstallation

Introduction

In an effort to aid the gap between a Figma design and the implementation counterpart this tool aims to make it easier for developers to achieve pixel-perfect implementation of designs. The workflow consists on opening a figma design, selecting a component, right clicking it and selecting copy and finally selecting Copy as SVG

Once this is done, you can now go to your website running Figma-overlay and click the floating button sitting on the lower-left corner of your screen

And that's it! Now you can drag the overlay around, use the arrow keys to tune the position and the slider to change opacity and compare what you did against what you have to.

Installation

Figma overlay is a Web Component which means you can use it with any framework you like by importing it properly. This small guide will only cover how to add it to the browser and to Vite based projects, specifically with Vue. If you get it up and running with other setup and want to contribute, please make a PR to ammend the instructions.

With Vite

npm i figma-overlay

Then import the component

import FigmaOverlay from 'figma-overlay';

Add it to your html as follows.

<figma-overlay></figma-overlay>

And make sure to add figma-overlay as a Custom Element in vite.config.ts

...
plugins: [
  vue({
    template: {
      compilerOptions: {
        isCustomElement: tag => tag.includes('figma-overlay')
      }
    }
  })
],

In the browser

Add the script at the end of your body tag

<script src="https://unpkg.com/figma-overlay@latest"></script>

or

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/figma-overlay.umd.min.js"></script>

And then ideally place the component right after the body

...
<body>
	<figma-overlay></figma-overlay>
	...
</body>

Author

Figma-overlay © Pitu, Released under the MIT License. Authored and maintained by Pitu.

GitHub @Pitu