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

@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.7.0 to 2.7.1

6

CHANGELOG.md
# Elvia Typography Changelog
## 2.7.1 (18.04.24)
### Patch
- Typography line heights are now defined relative to the font size, instead of being fixed values.
## 2.7.0 (07.11.23)

@@ -4,0 +10,0 @@

351

dist/elviaTypography.d.ts

@@ -9,3 +9,2 @@ export declare const ElviaTypography: {

lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;

@@ -23,3 +22,2 @@ fontStyle: string;

lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;

@@ -37,3 +35,2 @@ fontStyle: string;

lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;

@@ -60,3 +57,2 @@ fontStyle: string;

fontSize: string;
fontSizeMobile: string;
fontWeight: string;

@@ -119,3 +115,2 @@ lineHeight: string;

lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;

@@ -133,3 +128,2 @@ fontStyle: string;

lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;

@@ -147,3 +141,2 @@ fontStyle: string;

lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;

@@ -161,3 +154,2 @@ fontStyle: string;

lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;

@@ -175,3 +167,2 @@ fontStyle: string;

lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;

@@ -199,2 +190,3 @@ fontStyle: string;

lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;

@@ -211,2 +203,3 @@ fontStyle: string;

lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;

@@ -223,2 +216,3 @@ fontStyle: string;

lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;

@@ -307,3 +301,2 @@ fontStyle: string;

lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;

@@ -320,3 +313,2 @@ fontStyle: string;

lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;

@@ -359,338 +351,3 @@ fontStyle: string;

*/
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': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontSizeMobile: string;
fontWeight: string;
lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'title-md': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontSizeMobile: string;
fontWeight: string;
lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'title-sm': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontSizeMobile: string;
fontWeight: string;
lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'title-xs': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontSizeMobile: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: 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': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: 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': {
fontFamily: string;
fontSize: string;
fontSizeMobile: string;
fontWeight: string;
lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-lg': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontSizeMobile: string;
fontWeight: string;
lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-lg-strong': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontSizeMobile: string;
fontWeight: string;
lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-lg-light': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontSizeMobile: string;
fontWeight: string;
lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: 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': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-md-strong': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-md-light': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-md-mono': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
};
'text-sm': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-sm-strong': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-sm-light': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-sm-mono': {
altLabels: string[];
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
};
'text-micro': {
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-micro-strong': {
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-micro-light': {
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-quote': {
fontFamily: string;
fontSize: string;
fontSizeMobile: string;
fontWeight: string;
lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-img': {
fontFamily: string;
fontSize: string;
fontSizeMobile: string;
fontWeight: string;
lineHeight: string;
lineHeightMobile: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
textAlign: string;
};
'text-label': {
deprecated: string;
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
'text-option': {
deprecated: string;
fontFamily: string;
fontSize: string;
fontWeight: string;
lineHeight: string;
letterSpacing: string;
fontStyle: string;
textTransform: string;
color: string;
};
}[Key] | null;
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) => (typeof ElviaTypography)[Key] | null;
/**

@@ -697,0 +354,0 @@ * @param typographyName Name of requested typography.

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

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};
var s=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var p=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 g(e))!p.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:"1.2",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:"1.2",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:"1.2",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:"1.2",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"title-xxs":{altLabels:["title-xxsmall"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"15px",fontWeight:"700",lineHeight:"1.25",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:"1.2",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:"1.33",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:"1.38",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:"1.43",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-lead":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"24px",fontSizeMobile:"22px",fontWeight:"400",lineHeight:"1.6",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:"1.6",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:"1.6",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:"1.6",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:"1.6",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:"1.75",lineHeightMobile:"1.6",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:"1.75",lineHeightMobile:"1.6",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:"1.75",lineHeightMobile:"1.6",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:"1.75",lineHeightMobile:"1.6",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:"1.6",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:"1.6",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:"1.6",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:"1.6",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-micro":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"11px",fontWeight:"400",lineHeight:"1.4",letterSpacing:"0.2px",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-micro-strong":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"11px",fontWeight:"500",lineHeight:"1.4",letterSpacing:"0.2px",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-micro-light":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"11px",fontWeight:"300",lineHeight:"1.4",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:"1.6",letterSpacing:"unset",fontStyle:"italic",textTransform:"unset",color:"inherit"},"text-img":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"18px",fontSizeMobile:"16px",fontWeight:"400",lineHeight:"1.6",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) {

@@ -3,0 +3,0 @@ `;for(let n in o){let l=o[n];i+=` ${r(n.slice(0,-6))}: ${l};

@@ -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-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"}}
{"title-lg":{"altLabels":["title-large"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"44px","fontSizeMobile":"32px","fontWeight":"900","lineHeight":"1.2","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":"1.2","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":"1.2","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":"1.2","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"title-xxs":{"altLabels":["title-xxsmall"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"15px","fontWeight":"700","lineHeight":"1.25","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":"1.2","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":"1.33","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":"1.38","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":"1.43","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-lead":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"24px","fontSizeMobile":"22px","fontWeight":"400","lineHeight":"1.6","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":"1.6","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":"1.6","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":"1.6","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":"1.6","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":"1.75","lineHeightMobile":"1.6","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":"1.75","lineHeightMobile":"1.6","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":"1.75","lineHeightMobile":"1.6","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":"1.75","lineHeightMobile":"1.6","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":"1.6","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":"1.6","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":"1.6","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":"1.6","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-micro":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"11px","fontWeight":"400","lineHeight":"1.4","letterSpacing":"0.2px","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-micro-strong":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"11px","fontWeight":"500","lineHeight":"1.4","letterSpacing":"0.2px","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-micro-light":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"11px","fontWeight":"300","lineHeight":"1.4","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":"1.6","letterSpacing":"unset","fontStyle":"italic","textTransform":"unset","color":"inherit"},"text-img":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"18px","fontSizeMobile":"16px","fontWeight":"400","lineHeight":"1.6","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.7.0",
"version": "2.7.1",
"description": "Elvia typography",

@@ -22,10 +22,9 @@ "license": "MIT",

"devDependencies": {
"@types/gulp": "^4.0.16",
"@types/node": "^20.8.10",
"del": "^6.1.1",
"gulp": "^4.0.2",
"ts-node": "^10.9.1",
"tsup": "^7.2.0",
"typescript": "~5.1.0"
"@types/gulp": "^4.0.17",
"@types/node": "^20.12.7",
"gulp": "^5.0.0",
"ts-node": "^10.9.2",
"tsup": "^8.0.2",
"typescript": "~5.4.5"
}
}

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