Add type definition for custom theme

This commit is contained in:
Ariful Alam committed 2022-03-27 17:57:02 +06:00
1 parent e46529b25b
commit 54ff094b64
2 files changed
+47 -2

No files matched your search

+9 -1
View File
@@ -277,7 +277,15 @@ GitProfile.propTypes = {
disableSwitch: PropTypes.bool,
respectPrefersColorScheme: PropTypes.bool,
themes: PropTypes.array,
customTheme: PropTypes.object,
customTheme: PropTypes.shape({
primary: PropTypes.string,
secondary: PropTypes.string,
accent: PropTypes.string,
neutral: PropTypes.string,
'base-100': PropTypes.string,
'--rounded-box': PropTypes.string,
'--rounded-btn': PropTypes.string,
}),
}),
}).isRequired,
};