@elvia/elvis-typography
Advanced tools
Comparing version 3.1.0 to 3.1.1
# Elvia Typography Changelog | ||
## 3.1.1 (05.09.24) | ||
### Minor | ||
- Removed "color: inherit" from all typographies. | ||
## 3.1.0 (31.07.24) | ||
@@ -4,0 +10,0 @@ |
@@ -12,3 +12,2 @@ export declare const ElviaTypography: { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -25,3 +24,2 @@ 'title-md': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -38,3 +36,2 @@ 'title-sm': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -51,3 +48,2 @@ 'title-xs': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -63,3 +59,2 @@ 'title-xxs': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -75,3 +70,2 @@ 'title-caps': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -87,3 +81,2 @@ 'text-interactive-lg': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -99,3 +92,2 @@ 'text-interactive-md': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -111,3 +103,2 @@ 'text-interactive-sm': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -123,3 +114,2 @@ 'text-lead': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -136,3 +126,2 @@ 'text-lg': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -149,3 +138,2 @@ 'text-lg-strong': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -162,3 +150,2 @@ 'text-lg-light': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -186,3 +173,2 @@ 'text-lg-mono': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -199,3 +185,2 @@ 'text-md-strong': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -212,3 +197,2 @@ 'text-md-light': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -235,3 +219,2 @@ 'text-md-mono': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -247,3 +230,2 @@ 'text-sm-strong': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -259,3 +241,2 @@ 'text-sm-light': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -280,3 +261,2 @@ 'text-sm-mono': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -291,3 +271,2 @@ 'text-micro-strong': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -302,3 +281,2 @@ 'text-micro-light': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -314,3 +292,2 @@ 'text-quote': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -326,3 +303,2 @@ 'text-img': { | ||
textTransform: string; | ||
color: string; | ||
textAlign: string; | ||
@@ -339,3 +315,2 @@ }; | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -351,3 +326,2 @@ 'text-option': { | ||
textTransform: string; | ||
color: string; | ||
}; | ||
@@ -354,0 +328,0 @@ }; |
@@ -1,6 +0,6 @@ | ||
var l=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var x=(t,e)=>{for(var i in e)l(t,i,{get:e[i],enumerable:!0})},c=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!h.call(t,n)&&n!==i&&l(t,n,{get:()=>e[n],enumerable:!(o=m(e,n))||o.enumerable});return t};var y=t=>c(l({},"__esModule",{value:!0}),t);var d={};x(d,{ElviaTypography:()=>r,default:()=>u,getTypography:()=>f,getTypographyCss:()=>S});module.exports=y(d);var r={"title-lg":{altLabels:["title-large"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"2.75rem",fontSizeMobile:"2rem",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:"1.875rem",fontSizeMobile:"1.5rem",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:"1.5rem",fontSizeMobile:"1.25rem",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:"1.125rem",fontSizeMobile:"1rem",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:"1rem",fontWeight:"700",lineHeight:"1.2",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"title-caps":{altLabels:["text-caps"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"0.875rem",fontWeight:"500",lineHeight:"1.2",letterSpacing:"0.05rem",fontStyle:"unset",textTransform:"uppercase",color:"inherit"},"text-interactive-lg":{altLabels:["text-interactive-large"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"1.125rem",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:"1rem",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:"0.875rem",fontWeight:"500",lineHeight:"1.43",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-lead":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"1.5rem",fontSizeMobile:"1.25rem",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:"1.25rem",fontSizeMobile:"1.125rem",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:"1.25rem",fontSizeMobile:"1.125rem",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:"1.25rem",fontSizeMobile:"1.125rem",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:"1.25rem",fontSizeMobile:"1.125rem",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:"1rem",fontWeight:"400",lineHeight:"1.6",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:"1rem",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:"1rem",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:"1rem",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:"0.875rem",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:"0.875rem",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:"0.875rem",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:"0.875rem",fontWeight:"400",lineHeight:"1.6",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-micro":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"0.6875rem",fontWeight:"400",lineHeight:"1.4",letterSpacing:"0.0125rem",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-micro-strong":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"0.6875rem",fontWeight:"500",lineHeight:"1.4",letterSpacing:"0.0125rem",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-micro-light":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"0.6875rem",fontWeight:"300",lineHeight:"1.4",letterSpacing:"0.0125rem",fontStyle:"unset",textTransform:"unset",color:"inherit"},"text-quote":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"1.625rem",fontSizeMobile:"1.25rem",fontWeight:"400",lineHeight:"1.6",letterSpacing:"unset",fontStyle:"italic",textTransform:"unset",color:"inherit"},"text-img":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"1.125rem",fontSizeMobile:"1rem",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"}},u=r,f=t=>r[t]?("deprecated"in r[t]&&p(t),r[t]):(console.error(`Cannot get typography ${t} from elvis-typography.`),null),s=t=>t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`),S=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}; | ||
`)}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}; | ||
var l=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var y=(t,e)=>{for(var i in e)l(t,i,{get:e[i],enumerable:!0})},u=(t,e,i,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!x.call(t,n)&&n!==i&&l(t,n,{get:()=>e[n],enumerable:!(a=m(e,n))||a.enumerable});return t};var S=t=>u(l({},"__esModule",{value:!0}),t);var c={};y(c,{ElviaTypography:()=>s,default:()=>p,getTypography:()=>f,getTypographyCss:()=>d});module.exports=S(c);var s={"title-lg":{altLabels:["title-large"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"2.75rem",fontSizeMobile:"2rem",fontWeight:"900",lineHeight:"1.2",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"title-md":{altLabels:["title-medium"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"1.875rem",fontSizeMobile:"1.5rem",fontWeight:"700",lineHeight:"1.2",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"title-sm":{altLabels:["title-small"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"1.5rem",fontSizeMobile:"1.25rem",fontWeight:"700",lineHeight:"1.2",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"title-xs":{altLabels:["title-xsmall"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"1.125rem",fontSizeMobile:"1rem",fontWeight:"700",lineHeight:"1.2",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"title-xxs":{altLabels:["title-xxsmall"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"1rem",fontWeight:"700",lineHeight:"1.2",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"title-caps":{altLabels:["text-caps"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"0.875rem",fontWeight:"500",lineHeight:"1.2",letterSpacing:"0.05rem",fontStyle:"unset",textTransform:"uppercase"},"text-interactive-lg":{altLabels:["text-interactive-large"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"1.125rem",fontWeight:"500",lineHeight:"1.33",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-interactive-md":{altLabels:["text-interactive-medium"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"1rem",fontWeight:"500",lineHeight:"1.38",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-interactive-sm":{altLabels:["text-interactive-small"],fontFamily:'"Red Hat Display", Verdana, sans-serif',fontSize:"0.875rem",fontWeight:"500",lineHeight:"1.43",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-lead":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"1.5rem",fontSizeMobile:"1.25rem",fontWeight:"400",lineHeight:"1.6",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-lg":{altLabels:["text-large","text-body"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"1.25rem",fontSizeMobile:"1.125rem",fontWeight:"400",lineHeight:"1.6",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-lg-strong":{altLabels:["text-large-strong"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"1.25rem",fontSizeMobile:"1.125rem",fontWeight:"500",lineHeight:"1.6",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-lg-light":{altLabels:["text-large-light"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"1.25rem",fontSizeMobile:"1.125rem",fontWeight:"300",lineHeight:"1.6",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-lg-mono":{altLabels:["text-large-mono"],fontFamily:'"Red Hat Mono", monospace',fontSize:"1.25rem",fontSizeMobile:"1.125rem",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:"1rem",fontWeight:"400",lineHeight:"1.6",lineHeightMobile:"1.6",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-md-strong":{altLabels:["text-medium-strong"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"1rem",fontWeight:"500",lineHeight:"1.75",lineHeightMobile:"1.6",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-md-light":{altLabels:["text-medium-light"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"1rem",fontWeight:"300",lineHeight:"1.75",lineHeightMobile:"1.6",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-md-mono":{altLabels:["text-medium-mono"],fontFamily:'"Red Hat Mono", monospace',fontSize:"1rem",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:"0.875rem",fontWeight:"400",lineHeight:"1.6",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-sm-strong":{altLabels:["text-small-strong"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"0.875rem",fontWeight:"500",lineHeight:"1.6",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-sm-light":{altLabels:["text-small-light"],fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"0.875rem",fontWeight:"300",lineHeight:"1.6",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-sm-mono":{altLabels:["text-small-mono"],fontFamily:'"Red Hat Mono", monospace',fontSize:"0.875rem",fontWeight:"400",lineHeight:"1.6",letterSpacing:"unset",fontStyle:"unset",textTransform:"unset"},"text-micro":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"0.6875rem",fontWeight:"400",lineHeight:"1.4",letterSpacing:"0.0125rem",fontStyle:"unset",textTransform:"unset"},"text-micro-strong":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"0.6875rem",fontWeight:"500",lineHeight:"1.4",letterSpacing:"0.0125rem",fontStyle:"unset",textTransform:"unset"},"text-micro-light":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"0.6875rem",fontWeight:"300",lineHeight:"1.4",letterSpacing:"0.0125rem",fontStyle:"unset",textTransform:"unset"},"text-quote":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"1.625rem",fontSizeMobile:"1.25rem",fontWeight:"400",lineHeight:"1.6",letterSpacing:"unset",fontStyle:"italic",textTransform:"unset"},"text-img":{fontFamily:'"Red Hat Text", Verdana, sans-serif',fontSize:"1.125rem",fontSizeMobile:"1rem",fontWeight:"400",lineHeight:"1.6",letterSpacing:"unset",fontStyle:"italic",textTransform:"unset",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"},"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"}},p=s,f=t=>s[t]?("deprecated"in s[t]&&h(t),s[t]):(console.error(`Cannot get typography ${t} from elvis-typography.`),null),r=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 o=e[n];!n.endsWith("Mobile")&&n!=="altLabels"&&(i+=`${r(n)}: ${o}; | ||
`)}let a=Object.fromEntries(Object.entries(e).filter(([n])=>n.endsWith("Mobile")));if(Object.keys(a).length>0){i+=`@media (max-width: 767px) { | ||
`;for(let n in a){let o=a[n];i+=` ${r(n.slice(0,-6))}: ${o}; | ||
`}i+=`} | ||
`}return i},p=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}); | ||
`}return i},h=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":"2.75rem","fontSizeMobile":"2rem","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":"1.875rem","fontSizeMobile":"1.5rem","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":"1.5rem","fontSizeMobile":"1.25rem","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":"1.125rem","fontSizeMobile":"1rem","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":"1rem","fontWeight":"700","lineHeight":"1.2","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"title-caps":{"altLabels":["text-caps"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"0.875rem","fontWeight":"500","lineHeight":"1.2","letterSpacing":"0.05rem","fontStyle":"unset","textTransform":"uppercase","color":"inherit"},"text-interactive-lg":{"altLabels":["text-interactive-large"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"1.125rem","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":"1rem","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":"0.875rem","fontWeight":"500","lineHeight":"1.43","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-lead":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"1.5rem","fontSizeMobile":"1.25rem","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":"1.25rem","fontSizeMobile":"1.125rem","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":"1.25rem","fontSizeMobile":"1.125rem","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":"1.25rem","fontSizeMobile":"1.125rem","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":"1.25rem","fontSizeMobile":"1.125rem","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":"1rem","fontWeight":"400","lineHeight":"1.6","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":"1rem","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":"1rem","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":"1rem","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":"0.875rem","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":"0.875rem","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":"0.875rem","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":"0.875rem","fontWeight":"400","lineHeight":"1.6","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-micro":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"0.6875rem","fontWeight":"400","lineHeight":"1.4","letterSpacing":"0.0125rem","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-micro-strong":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"0.6875rem","fontWeight":"500","lineHeight":"1.4","letterSpacing":"0.0125rem","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-micro-light":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"0.6875rem","fontWeight":"300","lineHeight":"1.4","letterSpacing":"0.0125rem","fontStyle":"unset","textTransform":"unset","color":"inherit"},"text-quote":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"1.625rem","fontSizeMobile":"1.25rem","fontWeight":"400","lineHeight":"1.6","letterSpacing":"unset","fontStyle":"italic","textTransform":"unset","color":"inherit"},"text-img":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"1.125rem","fontSizeMobile":"1rem","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"}} | ||
{"title-lg":{"altLabels":["title-large"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"2.75rem","fontSizeMobile":"2rem","fontWeight":"900","lineHeight":"1.2","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"title-md":{"altLabels":["title-medium"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"1.875rem","fontSizeMobile":"1.5rem","fontWeight":"700","lineHeight":"1.2","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"title-sm":{"altLabels":["title-small"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"1.5rem","fontSizeMobile":"1.25rem","fontWeight":"700","lineHeight":"1.2","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"title-xs":{"altLabels":["title-xsmall"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"1.125rem","fontSizeMobile":"1rem","fontWeight":"700","lineHeight":"1.2","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"title-xxs":{"altLabels":["title-xxsmall"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"1rem","fontWeight":"700","lineHeight":"1.2","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"title-caps":{"altLabels":["text-caps"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"0.875rem","fontWeight":"500","lineHeight":"1.2","letterSpacing":"0.05rem","fontStyle":"unset","textTransform":"uppercase"},"text-interactive-lg":{"altLabels":["text-interactive-large"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"1.125rem","fontWeight":"500","lineHeight":"1.33","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-interactive-md":{"altLabels":["text-interactive-medium"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"1rem","fontWeight":"500","lineHeight":"1.38","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-interactive-sm":{"altLabels":["text-interactive-small"],"fontFamily":"\"Red Hat Display\", Verdana, sans-serif","fontSize":"0.875rem","fontWeight":"500","lineHeight":"1.43","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-lead":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"1.5rem","fontSizeMobile":"1.25rem","fontWeight":"400","lineHeight":"1.6","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-lg":{"altLabels":["text-large","text-body"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"1.25rem","fontSizeMobile":"1.125rem","fontWeight":"400","lineHeight":"1.6","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-lg-strong":{"altLabels":["text-large-strong"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"1.25rem","fontSizeMobile":"1.125rem","fontWeight":"500","lineHeight":"1.6","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-lg-light":{"altLabels":["text-large-light"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"1.25rem","fontSizeMobile":"1.125rem","fontWeight":"300","lineHeight":"1.6","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-lg-mono":{"altLabels":["text-large-mono"],"fontFamily":"\"Red Hat Mono\", monospace","fontSize":"1.25rem","fontSizeMobile":"1.125rem","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":"1rem","fontWeight":"400","lineHeight":"1.6","lineHeightMobile":"1.6","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-md-strong":{"altLabels":["text-medium-strong"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"1rem","fontWeight":"500","lineHeight":"1.75","lineHeightMobile":"1.6","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-md-light":{"altLabels":["text-medium-light"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"1rem","fontWeight":"300","lineHeight":"1.75","lineHeightMobile":"1.6","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-md-mono":{"altLabels":["text-medium-mono"],"fontFamily":"\"Red Hat Mono\", monospace","fontSize":"1rem","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":"0.875rem","fontWeight":"400","lineHeight":"1.6","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-sm-strong":{"altLabels":["text-small-strong"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"0.875rem","fontWeight":"500","lineHeight":"1.6","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-sm-light":{"altLabels":["text-small-light"],"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"0.875rem","fontWeight":"300","lineHeight":"1.6","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-sm-mono":{"altLabels":["text-small-mono"],"fontFamily":"\"Red Hat Mono\", monospace","fontSize":"0.875rem","fontWeight":"400","lineHeight":"1.6","letterSpacing":"unset","fontStyle":"unset","textTransform":"unset"},"text-micro":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"0.6875rem","fontWeight":"400","lineHeight":"1.4","letterSpacing":"0.0125rem","fontStyle":"unset","textTransform":"unset"},"text-micro-strong":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"0.6875rem","fontWeight":"500","lineHeight":"1.4","letterSpacing":"0.0125rem","fontStyle":"unset","textTransform":"unset"},"text-micro-light":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"0.6875rem","fontWeight":"300","lineHeight":"1.4","letterSpacing":"0.0125rem","fontStyle":"unset","textTransform":"unset"},"text-quote":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"1.625rem","fontSizeMobile":"1.25rem","fontWeight":"400","lineHeight":"1.6","letterSpacing":"unset","fontStyle":"italic","textTransform":"unset"},"text-img":{"fontFamily":"\"Red Hat Text\", Verdana, sans-serif","fontSize":"1.125rem","fontSizeMobile":"1rem","fontWeight":"400","lineHeight":"1.6","letterSpacing":"unset","fontStyle":"italic","textTransform":"unset","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"},"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"}} |
{ | ||
"name": "@elvia/elvis-typography", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Elvia typography", | ||
@@ -8,3 +8,3 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://github.com/3lvia/designsystem.git", | ||
"url": "git+https://github.com/3lvia/designsystem.git", | ||
"directory": "packages/elvis-typography" | ||
@@ -29,8 +29,8 @@ }, | ||
"@types/gulp": "^4.0.17", | ||
"@types/node": "^20.14.13", | ||
"@types/node": "^20.16.5", | ||
"gulp": "^5.0.0", | ||
"ts-node": "^10.9.2", | ||
"tsup": "^8.2.3", | ||
"tsup": "^8.2.4", | ||
"typescript": "~5.5.4" | ||
} | ||
} |
@@ -36,2 +36,3 @@ # Elvia typography | ||
import { getTypography } from '@elvia/elvis-typography'; | ||
const typography = getTypography('text-md'); | ||
@@ -46,2 +47,3 @@ ``` | ||
import { getTypographyCss } from '@elvia/elvis-typography'; | ||
const typography = getTypographyCss('text-md'); | ||
@@ -52,4 +54,4 @@ ``` | ||
All typographies are built from the `ElviaTypography`-object in `./src/elviaTypography.js` through Gulp. | ||
Remember to run `yarn build` if you make any changes. `Elvis` may also need to be rebuilt to include any | ||
changes made to the typographies. | ||
All typographies are built from the `ElviaTypography`-object in `./src/elviaTypography.ts` through Gulp. | ||
Remember to run `yarn build` if you make any changes. `@elvia/elvis` may also need to be rebuilt to include | ||
any changes made to the typographies. |
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
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
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
55
84822
378