notion-page-to-html
Version:
It converts public notion pages to html from url
35 lines • 1.08 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.foregroundColorToHex = exports.backgroundColorToHex = void 0;
var backgroundColorToHex = function (color) {
return backgroundColorsToHex[color] || '#FFFFFF';
};
exports.backgroundColorToHex = backgroundColorToHex;
var foregroundColorToHex = function (color) {
return foregroundColorTextToHEX[color] || '#37352F';
};
exports.foregroundColorToHex = foregroundColorToHex;
var foregroundColorTextToHEX = {
purple: '#6940A5',
yellow: '#E9AB01',
gray: '#9B9A97',
brown: '#64473A',
orange: '#D9730D',
green: '#0F7B6C',
blue: '#0B6E99',
pink: '#AD1A72',
red: '#E03E3E',
none: '#37352F',
};
var backgroundColorsToHex = {
gray_background: '#B4AEAE',
brown_background: '#E9E5E3',
orange_background: '#FAEBDD',
yellow_background: '#FBF3DB',
green_background: '#DDEDEA',
blue_background: '#DDEBF1',
purple_background: '#EAE4F2',
pink_background: '#F4DFEB',
red_background: '#FBE4E4',
};
//# sourceMappingURL=color-to-hex.js.map