this is what i use so far, its obviously not a 100% replica of the typography plugin but looks good enough on my site
/* replace typography plugin */
.prose {
@apply text-gray-700 dark:text-gray-300
}
.prose {
& p {this is what i use so far, its obviously not a 100% replica of the typography plugin but looks good enough on my site
/* replace typography plugin */
.prose {
@apply text-gray-700 dark:text-gray-300
}
.prose {
& p {| // usage | |
| function Comp() { | |
| const [language, setLanguage] = useLocalStorage('mykey', 'typescript') | |
| } | |
| // definition | |
| function useLocalStorage(key, initialValue) { | |
| const [storedValue, setStoredValue] = React.useState(initialValue); | |
| React.useEffect(() => { | |
| // Get from local storage by key |