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

@littlespoon/theme

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@littlespoon/theme

Little Spoon theme

  • 1.11.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
130
decreased by-45.61%
Maintainers
1
Weekly downloads
 
Created
Source

@littlespoon/theme

NPM version

Install

Yarn:

yarn add @littlespoon/theme

npm:

npm install @littlespoon/theme --save

UNPKG

Usage

Import theme:

import theme from '@littlespoon/theme'

theme.colors.primary.primaryBlue.blue60() // 'rgba(44,213,196,1)'

Import colors:

import colors from '@littlespoon/theme/lib/colors'

colors.primary.primaryBlue.blue60() // 'rgba(44,213,196,1)'

Import color with alpha transparency:

import { blue60 } from '@littlespoon/theme/lib/colors/primary'

blue60(0.5) // 'rgba(44,213,196,0.5)'

Import fonts:

import { primary, secondary } from '@littlespoon/theme/lib/fonts'

primary.family // 'Lato, sans-serif'
primary.weight.bold // 700

Import primary font-family and font-weight:

import { family, weight } from '@littlespoon/theme/lib/fonts/primary'

family // 'Lato, sans-serif'
weight.bold // 700

Import breakpoints:

import breakpoints, { desktop } from '@littlespoon/theme/lib/breakpoints'

breakpoints.mobile // 0
desktop // 1000

Generate media queries:

import { desktop, down, mobile, up } from '@littlespoon/theme/lib/breakpoints'

up(mobile, 'font-size: 42rem') // '@media (min-width: 0px) { font-size: 42rem; }'
down(desktop, 'display: none') // '@media (max-width: 1000px) { display: none; }'

Keywords

FAQs

Package last updated on 28 Oct 2021

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