@lunit/design-system-logo
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Lunit Design System Logo

This package provides logos used in the Lunit projects.

Development

All assets(src/assets/**) should always be exported from Figma and up to date. If the Figma link below is incorrect, please contact the Product Design team.

https://www.figma.com/file/tlomwt8dT0GWikKqzYH7TO/Lunit_Icons_v1.1.0?type=design&t=oKYnyZDasVPfCR4a-6

At repository root:

  • nx build @lunit/design-system-logo: Generates logo components and builds the logos.
  • nx storybook @lunit/design-system-logo: Running the storybook.

Installation

Install the package in your project directory with:

npx @lunit/design-system-logo --favicon-path=<relative path>

If you want to save the favicon files, please set the relative path option.

Usage

We recommend that you use path imports(option 1). It can avoid pulling in unused modules.

// option 1 size: 11.7k (gzipped: 4.6k)
import Lunit from "@lunit/design-system-logo/Lunit";
// option 2 size: 578.1k (gzipped: 87.1k)
import { Lunit } from "@lunit/design-system-logo";

const Logo = () => (
  <Lunit style={{ height: "20px" }} /> // only svg file
);

export default Logo;

Favicon

If the public directory exists, The favicon files are saved in the public directory.

// public/index.html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <link rel="icon" href="%PUBLIC_URL%/favicon.ico" sizes="any" />
    <link rel="icon" href="%PUBLIC_URL%/favicon.svg" type="image/svg+xml" />
    <link rel="apple-touch-icon" href="%PUBLIC_URL%/apple-touch-icon.png" />
    <title>Lunit</title>
  </head>
  <body></body>
</html>

If your project uses CRA, insert the code shown above into the HTML file.

Readme

Keywords

none

Package Sidebar

Install

npm i @lunit/design-system-logo

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

11.1 MB

Total Files

392

Last publish

Collaborators

  • takhyunkim
  • deminoth
  • jyseo