@novalabsxyz/base-theme
Advanced tools
Comparing version 0.1.32-alpha.0 to 0.1.33-alpha.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PermanentMarkerFont = exports.HeliumFont = exports.NovaFont = exports.borderRadius = exports.breakpoints = exports.negativeSpacing = exports.gradients = void 0; | ||
exports.PermanentMarkerFont = exports.HeliumFont = exports.NovaFont = exports.borderRadius = exports.breakpoints = exports.negativeSpacing = exports.webGradients = exports.gradients = void 0; | ||
const NovaFont = { | ||
@@ -96,12 +96,24 @@ bold: 'DMSans-Bold', | ||
}; | ||
exports.webGradients = Object.keys(exports.gradients).reduce((acc, key) => { | ||
// Find gradient | ||
let colors = ''; | ||
exports.gradients[key].colors.forEach((element, index) => { | ||
if (index === exports.gradients[key].colors.length - 1) { | ||
colors += `${element} ${exports.gradients[key].locations[index] * 100}%`; | ||
return; | ||
} | ||
colors += `${element} ${exports.gradients[key].locations[index] * 100}%, `; | ||
}); | ||
return Object.assign(Object.assign({}, acc), { [key]: `linear-gradient(${exports.gradients[key].angle}deg, ${colors})` }); | ||
}, {}); | ||
// TODO: Do we need this? | ||
// const light = { | ||
// fontFamily: NovaFont.light, | ||
// } | ||
// const medium = { | ||
// fontFamily: NovaFont.medium, | ||
// } | ||
// const bold = { | ||
// fontFamily: NovaFont.bold, | ||
// } | ||
const light = { | ||
fontFamily: NovaFont.light, | ||
}; | ||
const medium = { | ||
fontFamily: NovaFont.medium, | ||
}; | ||
const bold = { | ||
fontFamily: NovaFont.bold, | ||
}; | ||
let baseTextVariants = { | ||
@@ -157,3 +169,3 @@ h1: { | ||
}; | ||
const textVariants = Object.assign({}, baseTextVariants); | ||
const textVariants = Object.assign(Object.assign({}, baseTextVariants), { h2Light: Object.assign(Object.assign({}, baseTextVariants.h2), light), h2Medium: Object.assign(Object.assign({}, baseTextVariants.h2), medium), h2Bold: Object.assign(Object.assign({}, baseTextVariants.h2), bold), h3Light: Object.assign(Object.assign({}, baseTextVariants.h3), light), h3Medium: Object.assign(Object.assign({}, baseTextVariants.h3), medium), h3Bold: Object.assign(Object.assign({}, baseTextVariants.h3), bold), h4Light: Object.assign(Object.assign({}, baseTextVariants.h4), light), h4Medium: Object.assign(Object.assign({}, baseTextVariants.h4), medium), h4Bold: Object.assign(Object.assign({}, baseTextVariants.h4), bold) }); | ||
const baseSpacing = { | ||
@@ -160,0 +172,0 @@ '0': 0, |
{ | ||
"name": "@novalabsxyz/base-theme", | ||
"version": "0.1.32-alpha.0", | ||
"version": "0.1.33-alpha.0", | ||
"description": "BaseTheme for Novalabs", | ||
@@ -19,3 +19,3 @@ "contributors": [ | ||
}, | ||
"gitHead": "22dc50ddc5365d94ae5e2261ce7d3b354e05709f" | ||
"gitHead": "2138fdb289c18cb3e52049de1b60e396cabe6373" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
679724
7523