Skip to content

This is a technical blog wherein you get in-depth views on Technical and Engineering topics.

Notifications You must be signed in to change notification settings

gauravxshukla/next-mdx-blog

Repository files navigation

Styling

To organize Tailwind CSS light and dark styles on elements, we make use of cx utility as an array. The first string contains the base styles, the second string is for light mode styles, and lastly the third string is for dark mode styling.

import { cx } from '@/lib/utils'

<div
  className={cx(
    'p-4', // base styles
    'text-gray-900', // light mode styles
    'dark:text-gray-50'. // dark mode styles
  )}
/>

About

This is a technical blog wherein you get in-depth views on Technical and Engineering topics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published