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

@loomhq/lens

Package Overview
Dependencies
Maintainers
7
Versions
690
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loomhq/lens

  • 2.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6K
decreased by-27.79%
Maintainers
7
Weekly downloads
 
Created
Source

Loom's Design System

Getting started

Installation

Add Lens to your app:

yarn add @loomhq/lens

Base styles

Add <BaseStyles /> component to your app, it injects global styles into the body tag. Place this component in a high level so it's always loaded in the app. Example:

import { BaseStyles } from "@loomhq/lens"

const App = () => (
  <div>
    <BaseStyles />
    <AppContent />
  </div>
)

Usage

Lens exports three types of contents:

  • Components
  • Variables
  • Utilities

Import components

Example:

import { Text } from "@loomhq/lens"

Import variables

Example:

import { Text, colors } from "@loomhq/lens"

<Text color={colors.primary}>Button</Text>

Import utilities

Example:

import { getTextSize } from "@loomhq/lens"

const CustomComponent = styled.div`
  ${getTextSize('large')};
`

FAQs

Package last updated on 16 Jun 2019

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