(Official) Bitcoin
logo provided as Web Component. It based on the original graphic promoted by bitboy
in 2010 as described by Bitcoin Design
here.
The SVG itself is friendly borrowed from Bitcoin Design
(source).
- Customize size and colors as you like
- SVG based
- No dependencies
- Small bundle size:
3.26 kB │ gzip: 1.63 kB
- Supported by modern browsers
- Use it with your favourite web framework
Use your favourite Node package manager to install bitcoin-logo
web component.
npm
npm install @bitcoinbeachtravemuende/bitcoin-logo
bun
bun add @bitcoinbeachtravemuende/bitcoin-logo
pnpm
pnpm add @bitcoinbeachtravemuende/bitcoin-logo
yarn
yarn add @bitcoinbeachtravemuende/bitcoin-logo
TBD
-
size: string
: Valid size value inpx
,%
orem
. For example:size="300px"
,size="50%"
orsize="300px"
-
background-color: string
: Background color. Value can be either a valid colorname
or ahex
color, eg.bgColor="white"
orbgColor="#FFF"
-
color: string
: Color of the capital₿
. Value can be either a valid colorname
or ahex
color, eg.color="black"
orcolor="#000"
Default
<bitcoin-logo />
Custom colors
<bitcoin-logo color="white" background-color="black"></bitcoin-logo>
All custom values
<bitcoin-logo size="300px" background-color="black" color="white"></bitcoin-logo>
Install Nix
Install pnpm
or any other Node package manager (bun
, npm
, yarn
or whatever)
- Install dependencies (command might be different for other package manager)
pnpm install
- Local build
pnpm dev
- Release build
pnpm build
Build sources land into dist
folder.