Skip to content

Commit

Permalink
feat: add colorProfileMapper helper
Browse files Browse the repository at this point in the history
  • Loading branch information
CCAyl authored Aug 24, 2022
2 parents 13880d8 + 18e3729 commit 73bed07
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions helpers/colorProfileMapper.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type { AviaryTheme } from "../themes";

export const colorProfileMapper = (currentTheme: AviaryTheme) => {
return {
primary: currentTheme.primary,
info: currentTheme.info,
warning: currentTheme.warning,
danger: currentTheme.danger,
highlight: currentTheme.highlight,
};
};
5 changes: 5 additions & 0 deletions helpers/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const colorProfileMapper = require("./colorProfileMapper");

module.exports = {
colorProfileMapper,
};

0 comments on commit 73bed07

Please sign in to comment.