Skip to content

Commit

Permalink
feat: added heading sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
privateOmega committed Jun 8, 2020
1 parent 6bae787 commit bb18e72
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/utils/unit-conversion.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
export const defaultHeadingSizesInPixel = {
h1: 32,
h2: 24,
h3: 18.72,
h4: 16,
h5: 13.28,
h6: 10.72,
};

export const pixelRegex = /([\d.]+)px/i;
export const percentageRegex = /([\d.]+)%/i;
export const pointRegex = /(\d+)pt/i;
Expand Down

0 comments on commit bb18e72

Please sign in to comment.