Giter VIP home page Giter VIP logo

Comments (2)

rektdeckard avatar rektdeckard commented on May 5, 2024

@BMCwebdev Thanks! Unfortunately there's no quick fix for your use-case... We build 'padding' directly into the path info of the SVGs to make them visually consistent in size. This means there isn't really any padding to subtract, and there isn't a constant offset you could apply to every icon to get them to fit the same square. If every icon just filled the square on it's largest axis, you'd have visual inconsistencies.

from homepage.

rektdeckard avatar rektdeckard commented on May 5, 2024

I would definitely direct you to read my partner's article on the subject and why we chose to do this, and [not to preach, but] why you might want to account for it in your design system.

As an example, a square-shaped icon that fits a 32 x 32 canvas would completely fill it, and look much larger than a triangular icon that fits a 32 x 32 canvas. How much do you size up the triangle to make them look visually the same size? That's what we figure out beforehand and bake into the icons.

from homepage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.