Skip to content

Commit

Permalink
added theme class to <html> in root layout;
Browse files Browse the repository at this point in the history
added --lx- prefix to color vars in tw plugin
  • Loading branch information
artemis-prime committed Jan 24, 2024
1 parent 630c157 commit 619c9c3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion packages/ui/next/root-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const RootLayout: React.FC<
conf,
children,
}) => (
<html lang='en' suppressHydrationWarning className='dark'>
<html lang='en' suppressHydrationWarning className='lux-dark-theme'>
<head >
<base target='_blank' />
</head>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@luxdefi/ui",
"version": "0.1.51",
"version": "0.1.53",
"description": "Library that contains shared UI primitives, styles, and core types",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
Expand Down
36 changes: 18 additions & 18 deletions packages/ui/tailwind/typo-plugin/get-plugin-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@ import {
const typographyColorTheme = {
// vars are defined in global.css
// and dark mode is handled at that level.
'--tw-prose-body': "var(--fg-body)",
'--tw-prose-headings': "var(--fg-0)",
'--tw-prose-links': "var(--fg-0)",
'--tw-prose-links-hover': "var(--fg-2)",
'--tw-prose-bold': "var(--fg-0)",
'--tw-prose-counters': "var(--fg-4)",
'--tw-prose-bullets': "var(--fg-2)",
'--tw-prose-hr': "var(--fg-2)",
'--tw-prose-quotes': "var(--fg-body)",
'--tw-prose-quote-borders': "var(--fg-3)",
'--tw-prose-captions': "var(--fg-2)",
'--tw-prose-kbd': "var(--fg-0)",
'--tw-prose-kbd-shadows': "var(--fg-1)",
'--tw-prose-code': "var(--fg-0)",
'--tw-prose-pre-code': "var(--fg-1)",
'--tw-prose-pre-bg': "var(--bg-1)",
'--tw-prose-th-borders': "var(--fg-2)",
'--tw-prose-td-borders': "var(--fg-3)",
'--tw-prose-body': "var(--lx-fg-body)",
'--tw-prose-headings': "var(--lx-fg-0)",
'--tw-prose-links': "var(--lx-fg-0)",
'--tw-prose-links-hover': "var(--lx-fg-2)",
'--tw-prose-bold': "var(--lx-fg-0)",
'--tw-prose-counters': "var(--lx-fg-4)",
'--tw-prose-bullets': "var(--lx-fg-2)",
'--tw-prose-hr': "var(--lx-fg-2)",
'--tw-prose-quotes': "var(--lx-fg-body)",
'--tw-prose-quote-borders': "var(--lx-fg-3)",
'--tw-prose-captions': "var(--lx-fg-2)",
'--tw-prose-kbd': "var(--lx-fg-0)",
'--tw-prose-kbd-shadows': "var(--lx-fg-1)",
'--tw-prose-code': "var(--lx-fg-0)",
'--tw-prose-pre-code': "var(--lx-fg-1)",
'--tw-prose-pre-bg': "var(--lx-bg-1)",
'--tw-prose-th-borders': "var(--lx-fg-2)",
'--tw-prose-td-borders': "var(--lx-fg-3)",
}

const defaultCSS = {
Expand Down

0 comments on commit 619c9c3

Please sign in to comment.