Skip to content

Commit 3c8c030

Browse files
authored
Merge pull request #146 from jerboa88/80-add-darklight-mode-support
80 add darklight mode support
2 parents 4075885 + ef1ded1 commit 3c8c030

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

src/components/input/ghost-button.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function GhostButton({
1313
...remainingProps
1414
}: Button) {
1515
const classNameProps = getClassNameProps(
16-
'p-2 sm:p-4 drop-shadow',
16+
'p-2 sm:p-4 dark:drop-shadow',
1717
!disabled && 'interactive-text', // Enable hover effect only when button is not disabled
1818
className,
1919
);

src/components/text/heading.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface Props extends PropsWithClassName, PropsWithChildren {}
1111

1212
export function Heading({ className, children }: Props) {
1313
const classNameProps = getClassNameProps(
14-
'align-middle font-heading font-bold uppercase drop-shadow interactive-text text-neutral-content',
14+
'align-middle font-heading font-bold uppercase dark:drop-shadow interactive-text text-neutral-content',
1515
className,
1616
);
1717

src/components/text/section-heading.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface Props extends PropsWithClassName, PropsWithChildren {}
1111

1212
export function SectionHeading({ className, children }: Props) {
1313
const classNameProps = getClassNameProps(
14-
'py-4 text-3xl align-middle font-heading font-medium drop-shadow',
14+
'py-4 text-3xl align-middle font-heading font-medium dark:drop-shadow',
1515
className,
1616
);
1717

src/components/text/subsection-heading.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface Props extends PropsWithClassName, PropsWithChildren {}
1111

1212
export function SubsectionHeading({ className, children }: Props) {
1313
const classNameProps = getClassNameProps(
14-
'text-lg font-heading font-semibold drop-shadow',
14+
'text-lg font-heading font-semibold dark:drop-shadow',
1515
className,
1616
);
1717

tailwind.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { getTheme } from './src/common/config-manager';
99

1010
export default {
1111
content: ['src/**/*.{js,jsx,ts,tsx}'],
12+
darkMode: ['class', '[data-theme="dark"]'],
1213
theme: {
1314
fontFamily: {
1415
sans: [

0 commit comments

Comments
 (0)