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
Hi,
Do you have for example any of your favorite Palette you would like to use? I will be happy to add a guide for that.
You can import CSS theme from other framework/library like https://open-props.style/ or some generated online and in Stylify config add the following:
constconfig={compiler: {// This will enable css variablesreplaceVariablesByCssVariables: true,externalVariables: [// Name of used variables like color:$blue1'variable1','variable2','variable3','blue1',// It can also be a function for more dynamic check(variableName)=>variableName.startsWith('-md'),]}}
Hi, in the latest release, there is a new option, that disables errors, while you use external css variables (if that was the case for you for example). This should make the variables usage a bit easier.
constconfig={compiler: {// Enable css variablesreplaceVariablesByCssVariables: true,// Disable error for unresolved variable// error => default - will throw an error// warning => automatically during watch mode (in bundler, vite, webpack, nuxt...) - will only warn you// silent => disables all warningsundefinedVariableWarningLevel: 'warning'}}
Activity
Machy8 commentedon Mar 1, 2023
Hi,
Do you have for example any of your favorite Palette you would like to use? I will be happy to add a guide for that.
You can import CSS theme from other framework/library like https://open-props.style/ or some generated online and in Stylify config add the following:
mzaini30 commentedon Mar 1, 2023
Solved: https://www.npmjs.com/package/stylify-colors
While there is free time, I made it earlier.
Machy8 commentedon Mar 1, 2023
Wow! Thanks! I will add a link to this package in the Docs.
Machy8 commentedon Mar 4, 2023
Hi, in the latest release, there is a new option, that disables errors, while you use external css variables (if that was the case for you for example). This should make the variables usage a bit easier.