fix: use frappe-ui theme colors and fixed tailwind config

This commit is contained in:
Jannat Patel
2025-12-08 10:37:31 +05:30
parent 5825bcf9b3
commit 040d74c20a
5 changed files with 16 additions and 13 deletions

View File

@@ -152,7 +152,8 @@ const props = defineProps({
})
const getGradientColor = () => {
let theme = localStorage.getItem('theme') == "light" ? "lightMode": "darkMode"
let theme =
localStorage.getItem('theme') == 'light' ? 'lightMode' : 'darkMode'
let color = props.course.card_gradient?.toLowerCase() || 'blue'
let colorMap = colors[theme][color]
return `linear-gradient(to top right, black, ${colorMap[400]})`