Socket
Socket
Sign inDemoInstall

@elvia/elvis-typography

Package Overview
Dependencies
Maintainers
7
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elvia/elvis-typography - npm Package Compare versions

Comparing version 2.6.0 to 2.7.0

10

CHANGELOG.md
# Elvia Typography Changelog
## 2.7.0 (07.11.23)
### New feature
- Added new typographies:
- text-interactive (small, medium, and large).
- text-mono (small, medium, and large).
- Title xxsmall.
- Now using font weight 300 instead of a lighter text color for light typographies.
## 2.6.0 (05.10.23)

@@ -4,0 +14,0 @@

158

dist/elviaTypography.d.ts

@@ -53,2 +53,14 @@ export declare const ElviaTypography: {

};
'title-xxs': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontSizeMobile: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'title-caps': {

@@ -65,2 +77,35 @@ altLabels: string[];

};
'text-interactive-lg': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-interactive-md': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-interactive-sm': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-lead': {

@@ -117,2 +162,14 @@ fontFamily: string;

};
'text-lg-mono': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontSizeMobile: string;
fontWeight: string;
lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
};
'text-md': {

@@ -152,2 +209,12 @@ altLabels: string[];

};
'text-md-mono': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
};
'text-sm': {

@@ -186,2 +253,12 @@ altLabels: string[];

};
'text-sm-mono': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
};
'text-micro': {

@@ -273,3 +350,3 @@ fontFamily: string;

*/
export declare const getTypography: <Key extends "title-lg" | "title-md" | "title-sm" | "title-xs" | "title-caps" | "text-lead" | "text-lg" | "text-lg-strong" | "text-lg-light" | "text-md" | "text-md-strong" | "text-md-light" | "text-sm" | "text-sm-strong" | "text-sm-light" | "text-micro" | "text-micro-strong" | "text-micro-light" | "text-quote" | "text-img" | "text-label" | "text-option">(typographyName: Key) => {
export declare const getTypography: <Key extends "title-lg" | "title-md" | "title-sm" | "title-xs" | "title-xxs" | "title-caps" | "text-interactive-lg" | "text-interactive-md" | "text-interactive-sm" | "text-lead" | "text-lg" | "text-lg-strong" | "text-lg-light" | "text-lg-mono" | "text-md" | "text-md-strong" | "text-md-light" | "text-md-mono" | "text-sm" | "text-sm-strong" | "text-sm-light" | "text-sm-mono" | "text-micro" | "text-micro-strong" | "text-micro-light" | "text-quote" | "text-img" | "text-label" | "text-option">(typographyName: Key) => {
'title-lg': {

@@ -326,2 +403,14 @@ altLabels: string[];

};
'title-xxs': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontSizeMobile: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'title-caps': {

@@ -338,2 +427,35 @@ altLabels: string[];

};
'text-interactive-lg': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-interactive-md': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-interactive-sm': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-lead': {

@@ -390,2 +512,14 @@ fontFamily: string;

};
'text-lg-mono': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontSizeMobile: string;
fontWeight: string;
lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
};
'text-md': {

@@ -425,2 +559,12 @@ altLabels: string[];

};
'text-md-mono': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
};
'text-sm': {

@@ -459,2 +603,12 @@ altLabels: string[];

};
'text-sm-mono': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
};
'text-micro': {

@@ -542,3 +696,3 @@ fontFamily: string;

*/
export declare const getTypographyCss: <Key extends "title-lg" | "title-md" | "title-sm" | "title-xs" | "title-caps" | "text-lead" | "text-lg" | "text-lg-strong" | "text-lg-light" | "text-md" | "text-md-strong" | "text-md-light" | "text-sm" | "text-sm-strong" | "text-sm-light" | "text-micro" | "text-micro-strong" | "text-micro-light" | "text-quote" | "text-img" | "text-label" | "text-option">(typographyName: Key) => string;
export declare const getTypographyCss: <Key extends "title-lg" | "title-md" | "title-sm" | "title-xs" | "title-xxs" | "title-caps" | "text-interactive-lg" | "text-interactive-md" | "text-interactive-sm" | "text-lead" | "text-lg" | "text-lg-strong" | "text-lg-light" | "text-lg-mono" | "text-md" | "text-md-strong" | "text-md-light" | "text-md-mono" | "text-sm" | "text-sm-strong" | "text-sm-light" | "text-sm-mono" | "text-micro" | "text-micro-strong" | "text-micro-light" | "text-quote" | "text-img" | "text-label" | "text-option">(typographyName: Key) => string;
//# sourceMappingURL=elviaTypography.d.ts.map

4

dist/elviaTypography.js

@@ -1,6 +0,6 @@

var r=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var h=(t,e)=>{for(var i in e)r(t,i,{get:e[i],enumerable:!0})},c=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p(e))!g.call(t,n)&&n!==i&&r(t,n,{get:()=>e[n],enumerable:!(o=x(e,n))||o.enumerable});return t};var y=t=>c(r({},"__esModule",{value:!0}),t);var m={};h(m,{ElviaTypography:()=>l,default:()=>u,getTypography:()=>f,getTypographyCss:()=>d});module.exports=y(m);var l={"title-lg":{altLabels:["title-large"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"44px",fontSizeMobile:"32px",fontWeight:"900",lineHeight:"53px",lineHeightMobile:"34px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"title-md":{altLabels:["title-medium"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"30px",fontSizeMobile:"24px",fontWeight:"700",lineHeight:"36px",lineHeightMobile:"29px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"title-sm":{altLabels:["title-small"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"24px",fontSizeMobile:"20px",fontWeight:"700",lineHeight:"29px",lineHeightMobile:"24px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"title-xs":{altLabels:["title-xsmall"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"18px",fontSizeMobile:"16px",fontWeight:"700",lineHeight:"22px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"title-caps":{altLabels:["text-caps"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"14px",fontWeight:"500",lineHeight:"17px",letterSpacing:"0.8px",fontStyle:"unset",textTransform:"uppercase",color:"inherit"},"text-lead":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"24px",fontSizeMobile:"22px",fontWeight:"400",lineHeight:"39px",lineHeightMobile:"36px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-lg":{altLabels:["text-large","text-body"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"20px",fontSizeMobile:"18px",fontWeight:"400",lineHeight:"32px",lineHeightMobile:"29px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-lg-strong":{altLabels:["text-large-strong"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"20px",fontSizeMobile:"18px",fontWeight:"500",lineHeight:"32px",lineHeightMobile:"29px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-lg-light":{altLabels:["text-large-light"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"20px",fontSizeMobile:"18px",fontWeight:"400",lineHeight:"32px",lineHeightMobile:"29px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"var(--e-color-text-2)"},"text-md":{altLabels:["text-medium","text-description"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"16px",fontWeight:"400",lineHeight:"28px",lineHeightMobile:"160%",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-md-strong":{altLabels:["text-medium-strong"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"16px",fontWeight:"500",lineHeight:"28px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-md-light":{altLabels:["text-medium-light"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"16px",fontWeight:"400",lineHeight:"28px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"var(--e-color-text-2)"},"text-sm":{altLabels:["text-small","text-info"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"14px",fontWeight:"400",lineHeight:"22px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-sm-strong":{altLabels:["text-small-strong"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"14px",fontWeight:"500",lineHeight:"22px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-sm-light":{altLabels:["text-small-light"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"14px",fontWeight:"400",lineHeight:"22px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"var(--e-color-text-2)"},"text-micro":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"11px",fontWeight:"400",lineHeight:"14px",letterSpacing:"0.2px",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-micro-strong":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"11px",fontWeight:"500",lineHeight:"14px",letterSpacing:"0.2px",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-micro-light":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"11px",fontWeight:"400",lineHeight:"14px",letterSpacing:"0.2px",fontStyle:"unset",textTransform:"unset",color:"var(--e-color-text-2)"},"text-quote":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"26px",fontSizeMobile:"20px",fontWeight:"400",lineHeight:"42px",lineHeightMobile:"32px",letterSpacing:"unset",fontStyle:"italic",textTransform:"unset",color:"inherit"},"text-img":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"18px",fontSizeMobile:"16px",fontWeight:"400",lineHeight:"29px",lineHeightMobile:"26px",letterSpacing:"unset",fontStyle:"italic",textTransform:"unset",color:"inherit",textAlign:"center"},"text-label":{deprecated:"1.0.0",fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"16px",fontWeight:"500",lineHeight:"23px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-option":{deprecated:"1.0.0",fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"16px",fontWeight:"400",lineHeight:"22px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"}},u=l,f=t=>l[t]?("deprecated"in l[t]&&S(t),l[t]):(console.error(`Cannot get typography ${t} from elvis-typography.`),null),s=t=>t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`),d=t=>{let e=f(t);if(!e)return console.error(`Cannot get typography ${t} from elvis-typography.`),"";let i="";for(let n in e){let a=e[n];!n.endsWith("Mobile")&&n!=="altLabels"&&(i+=`${s(n)}: ${a};
var s=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var h=(t,e)=>{for(var i in e)s(t,i,{get:e[i],enumerable:!0})},m=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p(e))!g.call(t,n)&&n!==i&&s(t,n,{get:()=>e[n],enumerable:!(o=x(e,n))||o.enumerable});return t};var c=t=>m(s({},"__esModule",{value:!0}),t);var d={};h(d,{ElviaTypography:()=>a,default:()=>y,getTypography:()=>f,getTypographyCss:()=>u});module.exports=c(d);var a={"title-lg":{altLabels:["title-large"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"44px",fontSizeMobile:"32px",fontWeight:"900",lineHeight:"53px",lineHeightMobile:"34px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"title-md":{altLabels:["title-medium"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"30px",fontSizeMobile:"24px",fontWeight:"700",lineHeight:"36px",lineHeightMobile:"29px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"title-sm":{altLabels:["title-small"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"24px",fontSizeMobile:"20px",fontWeight:"700",lineHeight:"29px",lineHeightMobile:"24px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"title-xs":{altLabels:["title-xsmall"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"18px",fontSizeMobile:"16px",fontWeight:"700",lineHeight:"22px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"title-xxs":{altLabels:["title-xxsmall"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"15px",fontSizeMobile:"15px",fontWeight:"700",lineHeight:"19px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"title-caps":{altLabels:["text-caps"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"14px",fontWeight:"500",lineHeight:"17px",letterSpacing:"0.8px",fontStyle:"unset",textTransform:"uppercase",color:"inherit"},"text-interactive-lg":{altLabels:["text-interactive-large"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"18px",fontWeight:"500",lineHeight:"24px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-interactive-md":{altLabels:["text-interactive-medium"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"16px",fontWeight:"500",lineHeight:"22px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-interactive-sm":{altLabels:["text-interactive-small"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"14px",fontWeight:"500",lineHeight:"20px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-lead":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"24px",fontSizeMobile:"22px",fontWeight:"400",lineHeight:"39px",lineHeightMobile:"36px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-lg":{altLabels:["text-large","text-body"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"20px",fontSizeMobile:"18px",fontWeight:"400",lineHeight:"32px",lineHeightMobile:"29px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-lg-strong":{altLabels:["text-large-strong"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"20px",fontSizeMobile:"18px",fontWeight:"500",lineHeight:"32px",lineHeightMobile:"29px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-lg-light":{altLabels:["text-large-light"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"20px",fontSizeMobile:"18px",fontWeight:"300",lineHeight:"32px",lineHeightMobile:"29px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-lg-mono":{altLabels:["text-large-mono"],fontFamily:'"Red Hat Mono", monospace',fontSize:"20px",fontSizeMobile:"18px",fontWeight:"400",lineHeight:"32px",lineHeightMobile:"29px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-md":{altLabels:["text-medium","text-description"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"16px",fontWeight:"400",lineHeight:"28px",lineHeightMobile:"160%",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-md-strong":{altLabels:["text-medium-strong"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"16px",fontWeight:"500",lineHeight:"28px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-md-light":{altLabels:["text-medium-light"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"16px",fontWeight:"300",lineHeight:"28px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-md-mono":{altLabels:["text-medium-mono"],fontFamily:'"Red Hat Mono", monospace',fontSize:"16px",fontWeight:"400",lineHeight:"28px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-sm":{altLabels:["text-small","text-info"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"14px",fontWeight:"400",lineHeight:"22px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-sm-strong":{altLabels:["text-small-strong"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"14px",fontWeight:"500",lineHeight:"22px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-sm-light":{altLabels:["text-small-light"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"14px",fontWeight:"300",lineHeight:"22px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-sm-mono":{altLabels:["text-small-mono"],fontFamily:'"Red Hat Mono", monospace',fontSize:"14px",fontWeight:"400",lineHeight:"22px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-micro":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"11px",fontWeight:"400",lineHeight:"14px",letterSpacing:"0.2px",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-micro-strong":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"11px",fontWeight:"500",lineHeight:"14px",letterSpacing:"0.2px",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-micro-light":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"11px",fontWeight:"300",lineHeight:"14px",letterSpacing:"0.2px",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-quote":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"26px",fontSizeMobile:"20px",fontWeight:"400",lineHeight:"42px",lineHeightMobile:"32px",letterSpacing:"unset",fontStyle:"italic",textTransform:"unset",color:"inherit"},"text-img":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"18px",fontSizeMobile:"16px",fontWeight:"400",lineHeight:"29px",lineHeightMobile:"26px",letterSpacing:"unset",fontStyle:"italic",textTransform:"unset",color:"inherit",textAlign:"center"},"text-label":{deprecated:"1.0.0",fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"16px",fontWeight:"500",lineHeight:"23px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-option":{deprecated:"1.0.0",fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"16px",fontWeight:"400",lineHeight:"22px",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"}},y=a,f=t=>a[t]?("deprecated"in a[t]&&S(t),a[t]):(console.error(`Cannot get typography ${t} from elvis-typography.`),null),r=t=>t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`),u=t=>{let e=f(t);if(!e)return console.error(`Cannot get typography ${t} from elvis-typography.`),"";let i="";for(let n in e){let l=e[n];!n.endsWith("Mobile")&&n!=="altLabels"&&(i+=`${r(n)}: ${l};
`)}let o=Object.fromEntries(Object.entries(e).filter(([n])=>n.endsWith("Mobile")));if(Object.keys(o).length>0){i+=`@media (max-width: 767px) {
`;for(let n in o){let a=o[n];i+=` ${s(n.slice(0,-6))}: ${a};
`;for(let n in o){let l=o[n];i+=` ${r(n.slice(0,-6))}: ${l};
`}i+=`}
`}return i},S=t=>{typeof window!="undefined"&&(window!=null&&window.location.href.includes("localhost"))&&console.warn(`The typography "${t}" has been deprecated.`)};0&&(module.exports={ElviaTypography,getTypography,getTypographyCss});
//# sourceMappingURL=elviaTypography.js.map

@@ -1,1 +0,1 @@

{"title-lg":{"altLabels":["title-large"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"44px","fontSizeMobile":"32px","fontWeight":"900","lineHeight":"53px","lineHeightMobile":"34px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"title-md":{"altLabels":["title-medium"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"30px","fontSizeMobile":"24px","fontWeight":"700","lineHeight":"36px","lineHeightMobile":"29px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"title-sm":{"altLabels":["title-small"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"24px","fontSizeMobile":"20px","fontWeight":"700","lineHeight":"29px","lineHeightMobile":"24px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"title-xs":{"altLabels":["title-xsmall"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"18px","fontSizeMobile":"16px","fontWeight":"700","lineHeight":"22px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"title-caps":{"altLabels":["text-caps"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"14px","fontWeight":"500","lineHeight":"17px","letterSpacing":"0.8px","fontStyle":"unset","textTransform":"uppercase","color":"inherit"},"text-lead":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"24px","fontSizeMobile":"22px","fontWeight":"400","lineHeight":"39px","lineHeightMobile":"36px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-lg":{"altLabels":["text-large","text-body"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"20px","fontSizeMobile":"18px","fontWeight":"400","lineHeight":"32px","lineHeightMobile":"29px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-lg-strong":{"altLabels":["text-large-strong"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"20px","fontSizeMobile":"18px","fontWeight":"500","lineHeight":"32px","lineHeightMobile":"29px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-lg-light":{"altLabels":["text-large-light"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"20px","fontSizeMobile":"18px","fontWeight":"400","lineHeight":"32px","lineHeightMobile":"29px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"var(--e-color-text-2)"},"text-md":{"altLabels":["text-medium","text-description"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"16px","fontWeight":"400","lineHeight":"28px","lineHeightMobile":"160%","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-md-strong":{"altLabels":["text-medium-strong"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"16px","fontWeight":"500","lineHeight":"28px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-md-light":{"altLabels":["text-medium-light"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"16px","fontWeight":"400","lineHeight":"28px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"var(--e-color-text-2)"},"text-sm":{"altLabels":["text-small","text-info"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"14px","fontWeight":"400","lineHeight":"22px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-sm-strong":{"altLabels":["text-small-strong"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"14px","fontWeight":"500","lineHeight":"22px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-sm-light":{"altLabels":["text-small-light"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"14px","fontWeight":"400","lineHeight":"22px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"var(--e-color-text-2)"},"text-micro":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"11px","fontWeight":"400","lineHeight":"14px","letterSpacing":"0.2px","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-micro-strong":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"11px","fontWeight":"500","lineHeight":"14px","letterSpacing":"0.2px","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-micro-light":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"11px","fontWeight":"400","lineHeight":"14px","letterSpacing":"0.2px","fontStyle":"unset","textTransform":"unset","color":"var(--e-color-text-2)"},"text-quote":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"26px","fontSizeMobile":"20px","fontWeight":"400","lineHeight":"42px","lineHeightMobile":"32px","letterSpacing":"unset","fontStyle":"italic","textTransform":"unset","color":"inherit"},"text-img":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"18px","fontSizeMobile":"16px","fontWeight":"400","lineHeight":"29px","lineHeightMobile":"26px","letterSpacing":"unset","fontStyle":"italic","textTransform":"unset","color":"inherit","textAlign":"center"},"text-label":{"deprecated":"1.0.0","fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"16px","fontWeight":"500","lineHeight":"23px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-option":{"deprecated":"1.0.0","fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"16px","fontWeight":"400","lineHeight":"22px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"}}
{"title-lg":{"altLabels":["title-large"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"44px","fontSizeMobile":"32px","fontWeight":"900","lineHeight":"53px","lineHeightMobile":"34px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"title-md":{"altLabels":["title-medium"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"30px","fontSizeMobile":"24px","fontWeight":"700","lineHeight":"36px","lineHeightMobile":"29px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"title-sm":{"altLabels":["title-small"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"24px","fontSizeMobile":"20px","fontWeight":"700","lineHeight":"29px","lineHeightMobile":"24px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"title-xs":{"altLabels":["title-xsmall"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"18px","fontSizeMobile":"16px","fontWeight":"700","lineHeight":"22px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"title-xxs":{"altLabels":["title-xxsmall"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"15px","fontSizeMobile":"15px","fontWeight":"700","lineHeight":"19px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"title-caps":{"altLabels":["text-caps"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"14px","fontWeight":"500","lineHeight":"17px","letterSpacing":"0.8px","fontStyle":"unset","textTransform":"uppercase","color":"inherit"},"text-interactive-lg":{"altLabels":["text-interactive-large"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"18px","fontWeight":"500","lineHeight":"24px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-interactive-md":{"altLabels":["text-interactive-medium"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"16px","fontWeight":"500","lineHeight":"22px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-interactive-sm":{"altLabels":["text-interactive-small"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"14px","fontWeight":"500","lineHeight":"20px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-lead":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"24px","fontSizeMobile":"22px","fontWeight":"400","lineHeight":"39px","lineHeightMobile":"36px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-lg":{"altLabels":["text-large","text-body"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"20px","fontSizeMobile":"18px","fontWeight":"400","lineHeight":"32px","lineHeightMobile":"29px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-lg-strong":{"altLabels":["text-large-strong"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"20px","fontSizeMobile":"18px","fontWeight":"500","lineHeight":"32px","lineHeightMobile":"29px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-lg-light":{"altLabels":["text-large-light"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"20px","fontSizeMobile":"18px","fontWeight":"300","lineHeight":"32px","lineHeightMobile":"29px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-lg-mono":{"altLabels":["text-large-mono"],"fontFamily":"\"Red Hat Mono\", monospace","fontSize":"20px","fontSizeMobile":"18px","fontWeight":"400","lineHeight":"32px","lineHeightMobile":"29px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-md":{"altLabels":["text-medium","text-description"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"16px","fontWeight":"400","lineHeight":"28px","lineHeightMobile":"160%","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-md-strong":{"altLabels":["text-medium-strong"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"16px","fontWeight":"500","lineHeight":"28px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-md-light":{"altLabels":["text-medium-light"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"16px","fontWeight":"300","lineHeight":"28px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-md-mono":{"altLabels":["text-medium-mono"],"fontFamily":"\"Red Hat Mono\", monospace","fontSize":"16px","fontWeight":"400","lineHeight":"28px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-sm":{"altLabels":["text-small","text-info"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"14px","fontWeight":"400","lineHeight":"22px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-sm-strong":{"altLabels":["text-small-strong"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"14px","fontWeight":"500","lineHeight":"22px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-sm-light":{"altLabels":["text-small-light"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"14px","fontWeight":"300","lineHeight":"22px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-sm-mono":{"altLabels":["text-small-mono"],"fontFamily":"\"Red Hat Mono\", monospace","fontSize":"14px","fontWeight":"400","lineHeight":"22px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-micro":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"11px","fontWeight":"400","lineHeight":"14px","letterSpacing":"0.2px","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-micro-strong":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"11px","fontWeight":"500","lineHeight":"14px","letterSpacing":"0.2px","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-micro-light":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"11px","fontWeight":"300","lineHeight":"14px","letterSpacing":"0.2px","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-quote":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"26px","fontSizeMobile":"20px","fontWeight":"400","lineHeight":"42px","lineHeightMobile":"32px","letterSpacing":"unset","fontStyle":"italic","textTransform":"unset","color":"inherit"},"text-img":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"18px","fontSizeMobile":"16px","fontWeight":"400","lineHeight":"29px","lineHeightMobile":"26px","letterSpacing":"unset","fontStyle":"italic","textTransform":"unset","color":"inherit","textAlign":"center"},"text-label":{"deprecated":"1.0.0","fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"16px","fontWeight":"500","lineHeight":"23px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-option":{"deprecated":"1.0.0","fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"16px","fontWeight":"400","lineHeight":"22px","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"}}
{
"name": "@elvia/elvis-typography",
"version": "2.6.0",
"version": "2.7.0",
"description": "Elvia typography",

@@ -22,5 +22,5 @@ "license": "MIT",

"devDependencies": {
"@types/gulp": "^4.0.14",
"@types/node": "^18.11.18",
"del": "^6.0.0",
"@types/gulp": "^4.0.16",
"@types/node": "^20.8.10",
"del": "^6.1.1",
"gulp": "^4.0.2",

@@ -27,0 +27,0 @@ "ts-node": "^10.9.1",

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

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