Replies: 2 comments 5 replies
-
With the current tailwind though, you could use a synchronous library to fetch the data or have it ready in a json file and require it in the config. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@mforcer Do you mind share how/if you managed to solve it? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a platform that 'rebrands' based on which organisation a user is associated with, similar to a white label solution for users (changing colours, etc..). I add each organisation's colours by extending colours in the tailwind config file but I'd like to automate it by pulling in the colours from an API, is this possible?
I come up with something like this but I don't think it actually fires off the request... is this possible in the config file?
The idea is that I then have colours available for each organisation
primary-twitter
,primary-facebook
, for example.Is there a solution for something like this?
It's probably worth adding I am using NextJS
Beta Was this translation helpful? Give feedback.
All reactions