Closed jeanmw closed 1 year ago
Is it possible to use custom styles like dark mode ? I'm using tailwind, but I've tried using a style property as well.
style
import React from 'react'; import PropTypes from 'prop-types'; import { css, styled } from 'twin.macro'; const styles = css` .dark-mode { .notion, .notion-text, .notion-page-link { color: white; } }`; const StyledDiv = styled.div(() => [styles]); ... return ( <StyledDiv> <NotionRenderer blockMap={recordMap.data} /> </StyedDiv> );
This doesn't seem to work:
Is there an alternative besides forking this repo and fixing the styles in the fork?
Is it possible to use custom styles like dark mode ? I'm using tailwind, but I've tried using a
style
property as well.This doesn't seem to work:
Is there an alternative besides forking this repo and fixing the styles in the fork?