lucide icon indicating copy to clipboard operation
lucide copied to clipboard

Add `electric-truck` icon

Open LienMaas opened this issue 1 year ago • 10 comments

What is the purpose of this pull request?

  • [x] New Icon
  • [ ] Bug fix
  • [ ] New Feature
  • [ ] Documentation update
  • [ ] Other:

Description

Adds an icon for electric trucks image

Icon use case

Makes it possible to distinguish between regular and electric trucks.

Alternative icon designs

Icon Design Checklist

Concept

  • [x] I have provided valid use cases for each icon.
  • [x] I have not added any a brand or logo icon.
  • [x] I have not used any hate symbols.
  • [x] I have not included any religious or political imagery.

Author, credits & license

  • [ ] The icons are solely my own creation.
  • [ ] The icons were originally created in #<issueNumber> by @<githubUser>
  • [x] I've based them on the following Lucide icons: truck
  • [ ] I've based them on the following design:

Naming

  • [x] I've read and followed the naming conventions
  • [x] I've named icons by what they are rather than their use case.
  • [x] I've provided meta JSON files in icons/[iconName].json.

Design

  • [x] I've read and followed the icon design guidelines
  • [x] I've made sure that the icons look sharp on low DPI displays.
  • [x] I've made sure that the icons look consistent with the icon set in size, optical volume and density.
  • [x] I've made sure that the icons are visually centered.
  • [x] I've correctly optimized all icons to two points of precision.

Before Submitting

  • [x] I've read the Contribution Guidelines.
  • [x] I've checked if there was an existing PR that solves the same issue.

LienMaas avatar Jan 14 '24 10:01 LienMaas

Added or changed icons

icons/truck-electric.svg
Preview cohesion icons/square-kanban.svg
icons/truck-electric.svg
icons/train-front-tunnel.svg
Preview stroke widths icons/truck-electric.svg
icons/truck-electric.svg
icons/truck-electric.svg
DPI Preview (24px) icons/truck-electric.svg
Icon X-rays icons/truck-electric.svg
Icons as code

Works for: lucide-react, lucide-react-native, lucide-preact, lucide-vue-next

const TruckElectricIcon = createLucideIcon('TruckElectric', [
  ["path",{"d":"M14 18V6a2 2 0 0 0-2-2M4 4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2m10 0H9m10 0h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.62L18.3 8.38a1 1 0 0 0-.78-.38H14"}],
  ["path",{"d":"M17 20a2 2 0 1 0 0-4 2 2 0 0 0 0 4M7 20a2 2 0 1 0 0-4 2 2 0 0 0 0 4M8.07 4 6.58 6.22A.5.5 0 0 0 7 7h2.13a.5.5 0 0 1 .42.78L8.07 10"}]
])

github-actions[bot] avatar Jan 14 '24 10:01 github-actions[bot]

@LienMaas Can we try to make a variant with the zap a bit bigger? On 100% scale the zap looks a bit small.

ericfennis avatar Jan 16 '24 14:01 ericfennis

@LienMaas It should also be centred in the van I think. See also #1460, for consistency…

danielbayley avatar Jan 16 '24 17:01 danielbayley

@danielbayley I tried putting the zap in the middle, but the zap had to be really small to not violate the 2px rule.

This way I can definetly make the zap a bit bigger

LienMaas avatar Jan 16 '24 17:01 LienMaas

I tried putting the zap in the middle, but the zap had to be really small to not violate the 2px rule. This way I can definetly make the zap a bit bigger

@LienMaas Yeah I meant something a bit like this…

preview

danielbayley avatar Jan 16 '24 17:01 danielbayley

I tried putting the zap in the middle, but the zap had to be really small to not violate the 2px rule. This way I can definetly make the zap a bit bigger

@LienMaas Yeah I meant something a bit like this…

preview

I like it, here is the studio link.

https://lucide-studio.vercel.app/?value=%3Csvg++xmlns=%22http://www.w3.org/2000/svg%22++width=%2224%22++height=%2224%22++viewBox=%220+0+24+24%22++fill=%22none%22++stroke=%22currentColor%22++stroke-width=%222%22++stroke-linecap=%22round%22++stroke-linejoin=%22round%22%3E++%3Cpath+d=%22M12+5h1a1+1+0+0+1+1+1v11%22+/%3E++%3Cpath+d=%22M14+8h4l4+4v4a1+1+0+0+1-1+1h-2%22+/%3E++%3Cpath+d=%22M15+17H9%22+/%3E++%3Cpath+d=%22M3.2+5H3a1+1+0+0+0-1+1v10a1+1+0+0+0+1+1h2%22+/%3E++%3Cpath+d=%22M8+5+6+8h4l-2+3%22+/%3E++%3Ccircle+cx=%2217%22+cy=%2217%22+r=%222%22+/%3E++%3Ccircle+cx=%227%22+cy=%2217%22+r=%222%22+/%3E%3C/svg%3E

jguddas avatar Jan 16 '24 20:01 jguddas

Related to PR #1819, this could affect this icon's design.

ericfennis avatar Jan 22 '24 17:01 ericfennis

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Mar 07 '24 01:03 github-actions[bot]

I think we should maybe go for the original design concept where the zap is in the corner. Because it is centered and with gap in the top it looks a bit if something is wrong with the truck. Like a crack 😄

ericfennis avatar Jul 19 '24 08:07 ericfennis

Something more like this than?

icons
Open lucide studio

LienMaas avatar Jul 22 '24 19:07 LienMaas

@LienMaas Looks more like it. But there should be 1px spacing with the canvas.

ericfennis avatar Jul 26 '24 10:07 ericfennis