gpt4 book ai didi

css - 将 smarty 变量插入 sass

转载 作者:行者123 更新时间:2023-11-28 06:51:16 25 4
gpt4 key购买 nike

我可以像示例一样插入 smarty 变量吗 <{$BG_COLOR}>到 scss 文件中?

我需要这样想:

$color1:#<{$BG_COLOR}>;

谢谢

最佳答案

你可以这样做:

$font: {$myFont};
$textColour: {$myTextColour};
$background: {$myBackground};

来源:

https://www.neontribe.co.uk/smart-sass-dynamic-sass-variables-with-php-smarty/

关于css - 将 smarty 变量插入 sass,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33754636/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com