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

@sproutsocial/seeds-typography

Package Overview
Dependencies
Maintainers
44
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sproutsocial/seeds-typography - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

18

gulpfile.js

@@ -57,3 +57,2 @@ const fs = require('fs');

return {
value: prop.value.value || prop.value,
app: upperFirst(prop.name),

@@ -64,6 +63,15 @@ sass:

: sassVar(prop.package, prop.name),
javascript: `{ style: ${javascriptConst(prop.package, prop.name)} }`,
lineHeightProportional: prop.value.rules && prop.value.rules['line-height'],
lineHeightPx: prop.value.rules && prop.value.rules['line-height'] * parseInt(prop.value.value, 10),
category: prop.category
javascript:
prop.category === 'font size'
? `{ style: ${javascriptConst(prop.package, prop.name)} }`
: javascriptConst(prop.package, prop.name),
category: prop.category,
value:
typeof prop.value == 'object'
? {
fontSize: prop.value.value,
lineHeightProportional: prop.value.rules && prop.value.rules['line-height'],
lineHeightPx: prop.value.rules && prop.value.rules['line-height'] * parseInt(prop.value.value, 10)
}
: prop.value
};

@@ -70,0 +78,0 @@ });

{
"name": "@sproutsocial/seeds-typography",
"version": "0.4.1",
"version": "0.4.2",
"stability": "stable",

@@ -16,4 +16,4 @@ "description": "SEEDS Design System Typography Styles",

"devDependencies": {
"@sproutsocial/seeds-utils": "^0.1.7"
"@sproutsocial/seeds-utils": "^0.1.8"
}
}
## Changelog
### v0.4.2
- **Fixed** Fixed documentation of Javascript tokens. Were showing objects for all values, but only type scale values are objects; the rest of the values are simple constants.
### v0.4.1

@@ -4,0 +7,0 @@

@@ -16,2 +16,3 @@ ## Examples

{% include_relative _generated/typography.html %}

@@ -40,6 +41,1 @@ ### Typefaces

{% include_relative example-size.html %}
<!-- Scripts needed to render examples -->
{% include_relative example-scripts.html %}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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