New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nulogy/css

Package Overview
Dependencies
Maintainers
7
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nulogy/css - npm Package Compare versions

Comparing version 0.1.2 to 0.1.6

readme.md

5

package.json
{
"name": "@nulogy/css",
"version": "0.1.2",
"version": "0.1.6",
"description": "Global Styles for Nulogy Design System",

@@ -35,6 +35,7 @@ "private": false,

"styled-components": "^3.2.6",
"styled-normalize": "^8.0.0",
"webpack": "^4.8.3",
"webpack-cli": "^3.1.0"
},
"gitHead": "64e0af44e478762644e9218f8d6b84688b2f4c94"
"gitHead": "045473a0f4a324cb5a4727b44ad159efb37f82ec"
}
import { injectGlobal } from 'styled-components';
import styledNormalize from 'styled-normalize';
import { loadIBMPlexFont, fontMixins } from "./typography"
injectGlobal`
${ styledNormalize }
${ loadIBMPlexFont }
body {
${ fontMixins["font-family--regular"] }
${ fontMixins["font-family--regular", "line-height--regular"] }
}
`
h1, h2, h3, h4 {
${ fontMixins["font-weight--medium"]
}
`

10

src/typography.js

@@ -18,3 +18,3 @@ import {css, injectGlobal} from 'styled-components';

'font-size--section-title': css`font-size: ${font.size.sectionTitle}px`,
'font-size--subsection-title': css`font-size: ${font.size.sectionTitle}px`,
'font-size--subsection-title': css`font-size: ${font.size.subsectionTitle}px`,

@@ -26,5 +26,9 @@ // Family

// Weight
'font-weight--normal': css`font-weight: ${font.weight.normal}`,
'font-weight--medium': css`font-weight: ${font.weight.medium}`,
'font-weight--bold': css`font-weight: ${font.weight.bold}`,
'line-height--regular': css`line-height: ${font.lineHeight.smaller}`,
'line-height--smaller': css`line-height: ${font.lineHeight.normal}`,
// Line Height
'line-height--regular': css`line-height: ${font.lineHeight.regular}`,
'line-height--smaller': css`line-height: ${font.lineHeight.smaller}`,
}

@@ -31,0 +35,0 @@

@@ -29,3 +29,3 @@ import React from 'react';

<Specimen className="font-size--section-title" />
<Specimen className="font-size--section-title" />
<Specimen className="font-size--subsection-title" />
<Specimen className="font-size--smaller" />

@@ -32,0 +32,0 @@ <Specimen className="font-size--small" />

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