Skip to content

Commit

Permalink
feat: add border tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
feerglas committed Aug 13, 2021
1 parent 7a37954 commit 85b6ea4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions designTokens/border.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/* eslint-disable sort-keys */

const baseBorderWidth = 1;
const baseBorderRadius = 2;

const borderWidth = (width) => width * Number(baseBorderWidth);
const borderRadius = (width) => width * Number(baseBorderRadius);

module.exports = {
width: {
1: {
value: borderWidth(1)
},
2: {
value: borderWidth(2)
}
},
radius: {
1: {
value: borderRadius(1)
},
8: {
value: borderRadius(8)
},
16: {
value: borderRadius(16)
}
}
};

/* eslint-enable sort-keys */

0 comments on commit 85b6ea4

Please sign in to comment.