Socket
Socket
Sign inDemoInstall

@loomhq/lens

Package Overview
Dependencies
Maintainers
7
Versions
680
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loomhq/lens


Version published
Weekly downloads
2.1K
increased by49.17%
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 } from "@loomhq/lens"

<Text color='primary'>Button</Text>

Import utilities

Example:

import { getTextSize } from "@loomhq/lens"

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

Running Locally

yarn
yarn start
navigate to: http://localhost:6006/

FAQs

Package last updated on 14 Jul 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