We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if I use these settings in the tailwind configuration:
primary: { DEFAULT: 'var(--primary)', light: 'var(--primary-light)', },
they are not displayed on the viewer page. I see only white square
The text was updated successfully, but these errors were encountered:
Hello radislaw, Maybe this thread could help: #11 (comment)
Sorry, something went wrong.
Have a look, How I did https://github.com/2manoj1/tailwind-default-config-viewer/blob/736b892120c919dbf4a9ed2a2115c9e4224ec510/tailwind.config.js#L5
https://github.com/2manoj1/tailwind-default-config-viewer/blob/main/utils/convert.js
Let me know, its work or not for you
Brilliant. Note: if you're using raw values like 210 20% 98% you'll need to wrap the mapped value with a color function in the script like so:
210 20% 98%
function getThemeReplacementsValues(filePath) { const rootVariablesMap = extractRootVariables(filePath); let tmpObj = {}; for (const [k, v] of rootVariablesMap) { tmpObj = { ...tmpObj, [`var(${k})`]: `hsl(${v})` }; } return tmpObj; }
No branches or pull requests
if I use these settings in the tailwind configuration:
they are not displayed on the viewer page. I see only white square
The text was updated successfully, but these errors were encountered: