@truehome-assets/loft-website-icons
v1.0.2
Published
React icon library with loft website icons
Downloads
17
Readme
Instalation
On your project directory run the command yarn add @truehome-assets/loft-website-icons
Usage
You already have all icons of loft website.
Basic usage
import React from 'react'
import { IconName } from '@truehome-assets/loft-website-icons'
export const App = () => (
<div>
<IconName />
</div>
)
Customize icon
import React from 'react'
import { IconName } from '@truehome-assets/loft-website-icons'
export const App = () => (
<div>
<IconName fontSize={28} color="#de3023" />
</div>
)
Add new Icons
Setup
To set up the proyect run yarn install
in order to get all the dependencies required for the project.
Add new icons
To add new icons first move the new svg files into resources/icons
, the fill property of the path element should be #191F23
.
Run the command line yarn run build
Publish the new version with command line npm publish