This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Tailwind colors for Flexoki theme by Steph Ango. https://stephango.com/flexoki | |
| const colors = { | |
| base: { | |
| black: '#100F0F', | |
| 950: '#1C1B1A', | |
| 900: '#282726', | |
| 850: '#343331', | |
| 800: '#403E3C', | |
| 700: '#575653', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function debounce(callback, wait) { | |
| var timeout; | |
| return function() { | |
| var context = this; | |
| var args = arguments; | |
| var later = function() { | |
| timeout = null; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Validates hex value | |
| * @param {String} color hex color value | |
| * @return {Boolean} | |
| */ | |
| function isValidHex(color) { | |
| if(!color || typeof color !== 'string') return false; | |
| // Validate hex values | |
| if(color.substring(0, 1) === '#') color = color.substring(1); |