You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like it, and I don't think that I would only like it, to have the ability to insert variables for different resolutions (media query) directly from tailwind.config.js, to be able to use the function @screen or simply @media in the following way: ( Note already works but does not set to :root level)
constdefColors=require("tailwindcss/colors");module.exports={theme: {variables: (theme)=>({// default variables on all devicesDEFAULT: {white: defColors.white,},// override variables on certain media query, can use @screen md|lg|xl or @media (min|max-width: value)"@screen md": {white: 'red',}}),},};
Why do I ask for this aspect, because for example I want to make a main menu using variables but at the same time on responsive I would like to modify these variables without having to overwrite the variables in the css file and there will probably be many cases when it is necessary to overwrite the variables on responsive
Thank you and I'm sorry that I don't have code as an example by which we can achieve this aspect, it's beyond my powers
The text was updated successfully, but these errors were encountered:
Thank you very much for your suggestion. It sounds great. I will add this feature as soon as possible unless I encounter an issue that prevents me from doing so.
I would like it, and I don't think that I would only like it, to have the ability to insert variables for different resolutions (media query) directly from tailwind.config.js, to be able to use the function @screen or simply @media in the following way: ( Note already works but does not set to :root level)
Example below how it already works and is wrong
If we look, it does not set at the level of :root {}
Below is an example of how it should be
Why do I ask for this aspect, because for example I want to make a main menu using variables but at the same time on responsive I would like to modify these variables without having to overwrite the variables in the css file and there will probably be many cases when it is necessary to overwrite the variables on responsive
Thank you and I'm sorry that I don't have code as an example by which we can achieve this aspect, it's beyond my powers
The text was updated successfully, but these errors were encountered: