Skip to content

Instantly share code, notes, and snippets.

@zeshhaan
Created December 10, 2022 11:03
Show Gist options
  • Save zeshhaan/75f536a5c1e59c7b56739141ecf998d5 to your computer and use it in GitHub Desktop.
Save zeshhaan/75f536a5c1e59c7b56739141ecf998d5 to your computer and use it in GitHub Desktop.
tailwndcolors

Object.keys(tailwindColors) .filter( k => k !== 'inherit' && k !== 'current' && k !== 'transparent' && k !== 'default' && k !== 'black' && k !== 'white' ) .forEach(name => { const values = [] Object.keys(tailwindColors[name]) .filter(key => key === '500') .forEach(key => { values.push(tailwindColors[name][key]) }) console.log({ name, values })

    // get only colors with the key 500.
    // const colors = values
    // console.log(colors)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment