Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lunit/design-system-logo

Package Overview
Dependencies
Maintainers
6
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lunit/design-system-logo

Lunit Design System Logo

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

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.

FAQs

Package last updated on 20 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc