Created
March 25, 2022 08:23
-
-
Save yellow1912/09b586feaf695f4e21cb302a8b731ca4 to your computer and use it in GitHub Desktop.
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
const minimist = require('minimist'); | |
var args = minimist(process.argv.slice(2)); | |
// const localConfig = require('./tailwind.local.js') | |
var config = { | |
"theme": { | |
"extend": { | |
"fontSize": { | |
"xs": "0.75rem", | |
"sm": "0.875rem", | |
"base": "1rem", | |
"lg": "1.125rem", | |
"xl": "1.25rem", | |
"2xl": "1.5rem", | |
"25xl": "1.625rem", | |
"3xl": "1.875rem", | |
"35xl": "2rem", | |
"4xl": "2.25rem", | |
"45xl": "2.5rem", | |
"5xl": "3rem", | |
"6xl": "4rem" | |
}, | |
"margin": { | |
"0": "0rem", | |
"1": "0.25rem", | |
"2": "0.5rem", | |
"3": "0.75rem", | |
"4": "1rem", | |
"5": "1.25rem", | |
"6": "1.5rem", | |
"8": "2rem", | |
"9": "2.25rem", | |
"10": "2.5rem", | |
"12": "3rem", | |
"14": "3.5rem", | |
"16": "4rem", | |
"18": "4.5rem", | |
"20": "5rem", | |
"24": "6rem", | |
"30": "7.5rem", | |
"40": "10rem", | |
"auto": "auto" | |
}, | |
"padding": { | |
"0": "0rem", | |
"1": "0.25rem", | |
"2": "0.5rem", | |
"3": "0.75rem", | |
"4": "1rem", | |
"5": "1.25rem", | |
"6": "1.5rem", | |
"8": "2rem", | |
"9": "2.25rem", | |
"10": "2.5rem", | |
"12": "3rem", | |
"14": "3.5rem", | |
"16": "4rem", | |
"18": "4.5rem", | |
"20": "5rem", | |
"24": "6rem", | |
"30": "7.5rem", | |
"40": "10rem" | |
}, | |
"space": { | |
"0": "0rem", | |
"1": "0.25rem", | |
"2": "0.5rem", | |
"3": "0.75rem", | |
"4": "1rem", | |
"5": "1.25rem", | |
"6": "1.5rem", | |
"8": "2rem", | |
"9": "2.25rem", | |
"10": "2.5rem", | |
"12": "3rem", | |
"14": "3.5rem", | |
"16": "4rem", | |
"18": "4.5rem", | |
"20": "5rem", | |
"24": "6rem", | |
"30": "7.5rem", | |
"40": "10rem" | |
}, | |
"borderWidth": {"DEFAULT": "1px", "0": "0", "2": "2px", "4": "4px", "6": "6px", "8": "8px"}, | |
"inset": {"0": 0, "auto": "auto", "1\/4": "25%", "1\/2": "50%", "3\/4": "75%"}, | |
}, | |
"fontFamily": {"montserrat": ["Trade Gothic", "UNB Office"]}, | |
"colors": { | |
"black": "#000000", | |
"white": "#FFFFFF", | |
"primary": "#117FFC", | |
"error": "#FF3B27", | |
"success": "#009900", | |
"warning": "#FBF1DB", | |
"warning-300": "#614518", | |
"gray": "#AFADB2", | |
"base": "#333333" | |
} | |
} | |
}; | |
if (args.hasOwnProperty('local-config')) { | |
config.presets = [require(args['local-config'])]; | |
} | |
if (args.hasOwnProperty('content')) { | |
config.content = [args['content']]; | |
} | |
// tailwind.config.js | |
module.exports = config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment