We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a90902 commit 27b27afCopy full SHA for 27b27af
pages/index.tsx
@@ -78,10 +78,8 @@ export default function Home() {
78
useEffect(() => {
79
let customTheme
80
try {
81
- customTheme = JSON.parse(config.customTheme)
82
- } catch (error) {
83
- return
84
- }
+ customTheme = JSON.parse(config.customTheme.trim())
+ } catch (error) { /* empty */ }
85
const result = CssToTailwindTranslator(cssCode, { ...config, customTheme })
86
if (result.code === 'SyntaxError') {
87
toast.error(
0 commit comments