Skip to content
Discussion options

You must be logged in to vote

Hey!

Using the md key will not apply responsive styles, but rather apply different styles when using the prose-md class.

For example:

<div class="prose">
  <table>...</table>
</div>

The table width will be 75%, but...

<div class="prose prose-md">
  <table>...</table>
</div>

The table will be 90% wide.

Instead of doing this, you want to use a media query in your DEFAULT.css.table object to apply responsive styles by default:

typography: (theme) => ({
  DEFAULT: {
    css: {
      table: {
        ...halfBleed,
        background: 'red',
        marginBottom: theme('spacing.16'),
        fontSize: theme('fontSize.sm')[0],
        lineHeight: theme('fontSize.sm')[1].lineHeight,
        table…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@deadcoder0904
Comment options

Answer selected by deadcoder0904
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants