Shopping cart icon
Added in v0.2.0
A free pencil-style shopping cart icon, drawn by code from 1 polyline and 2 circles. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use shopping-cart
One package, four ways in. The icon inherits currentColor and is decorative unless you give it a title. Install it with npm i @matita/icons.
React
import { ShoppingCart } from '@matita/icons/react';
<ShoppingCart size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="shopping-cart" />JavaScript
import { ShoppingCart, toSvg } from '@matita/icons';
toSvg(ShoppingCart, { size: 24 }); // SVG stringSVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" overflow="visible" class="sketch-icon sketch-icon-shopping-cart" data-sketch="" aria-hidden="true"><path d="M2.5 3.38Q4.05 3.48 5.59 3.64Q6.52 9.69 8.04 15.62Q13.25 15.5 18.47 15.62Q19.77 11.4 20.36 7.03Q13.21 7.05 6.08 6.81" stroke-width="1.552"/><path d="M7.81 20.17C7.77 20.08 7.63 19.85 7.6 19.68C7.57 19.51 7.61 19.31 7.65 19.14C7.68 18.96 7.72 18.77 7.8 18.61C7.89 18.45 8.01 18.29 8.15 18.18C8.29 18.06 8.46 17.96 8.63 17.92C8.81 17.87 8.99 17.88 9.18 17.89C9.36 17.9 9.57 17.9 9.74 17.97C9.91 18.05 10.07 18.2 10.2 18.35C10.34 18.5 10.48 18.67 10.55 18.86C10.62 19.05 10.64 19.27 10.65 19.49C10.66 19.7 10.66 19.92 10.6 20.13C10.54 20.33 10.43 20.53 10.31 20.71C10.19 20.88 10.03 21.06 9.86 21.19C9.68 21.31 9.46 21.4 9.25 21.44C9.03 21.48 8.79 21.47 8.58 21.42C8.37 21.37 8.17 21.25 7.97 21.13C7.78 21.01 7.56 20.89 7.41 20.7C7.27 20.52 7.14 20.15 7.09 20.04" stroke-width="1.728"/><path d="M18.89 19.1C18.9 19.19 18.97 19.45 18.96 19.62C18.95 19.79 18.89 19.96 18.82 20.12C18.75 20.29 18.67 20.46 18.55 20.59C18.43 20.72 18.26 20.83 18.1 20.91C17.93 21 17.74 21.08 17.55 21.09C17.36 21.11 17.16 21.07 16.96 21.02C16.77 20.97 16.54 20.93 16.37 20.82C16.2 20.7 16.06 20.52 15.95 20.34C15.84 20.17 15.73 19.95 15.7 19.75C15.67 19.54 15.71 19.31 15.74 19.1C15.78 18.88 15.81 18.64 15.92 18.45C16.03 18.25 16.21 18.09 16.4 17.95C16.58 17.81 16.8 17.68 17.02 17.61C17.24 17.54 17.5 17.51 17.74 17.53C17.97 17.55 18.21 17.63 18.44 17.73C18.66 17.83 18.9 17.96 19.08 18.13C19.26 18.3 19.42 18.52 19.52 18.75C19.63 18.99 19.67 19.39 19.7 19.52" stroke-width="1.488"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { ShoppingCart } from '@matita/icons/react';
<ShoppingCart size={32} pencil />The file is icons/shopping-cart.svg in the package (pencil/shopping-cart.svg for the pencil variant). Matita 0.7.0.
02How it's drawn
The recipe for shopping-cart
Shopping cart is not stored as a drawing. It is a recipe of 1 polyline and 2 circles on a 24 by 24 grid, and a small program draws it like a pencil would. The wobble comes from the name, so it always comes out the same.
P 2.5 3.5 5.5 3.5 8 15.5 18.5 15.5 20.5 7 6.5 7;
C 9 19.5 1.4;
C 17.5 19.5 1.4
shopping-cart as a number: 1394971806
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, B bezier curve, S smooth line, O dot. Separate shapes with ;. Edits stay on this page.
03Takes, sizes, pencil
Same icon, every way
Pass a seed for another take of the same recipe. The wobble is capped, so it still reads at 16 px.
Five seeds of shopping-cart. Seed 0 is the default.
shopping-cart from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/shopping-cart.svg.
True pixel sizes.