Skip to content

Commit

Permalink
feat: removed not used theme (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizzamia committed Dec 19, 2023
1 parent 6b8c4f4 commit 54d5bd9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 52 deletions.
3 changes: 3 additions & 0 deletions apps/build-onchain-apps/.stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"stylelint-config-standard",
"stylelint-config-idiomatic-order"
],
"ignoreFiles": [
"coverage/**/*.css"
],
"rules": {
"at-rule-no-unknown": [true, {
"ignoreAtRules": ["tailwind"]
Expand Down
2 changes: 1 addition & 1 deletion apps/build-onchain-apps/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import MobileMenuProvider from '../src/providers/MobileMenuProvider';
import { initAnalytics } from '../src/utils/analytics';
import type { AppProps } from 'next/app';

const themeValues = { light: 'light-theme', dark: 'dark-theme' };
const themeValues = { dark: 'dark-theme' };

// Stat analytics before the App renders,
// so we can track page views and early events
Expand Down
48 changes: 0 additions & 48 deletions apps/build-onchain-apps/src/components/ThemeToggle.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions apps/build-onchain-apps/src/components/header/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import NextLink from 'next/link';
import { useCallback } from 'react';
import { AccountConnectButton } from '../../onchain';
import logo from '../../../public/logo.svg';
import { ThemeToggle } from '../ThemeToggle';
import { DefaultNavbar } from './Navbar';
import { useMobileMenuContext } from './MobileMenu';

Expand Down Expand Up @@ -56,8 +55,6 @@ function Menu() {
</a>
</IconButton>
</Tooltip>

<ThemeToggle />
</Flex>
</>
);
Expand Down
9 changes: 9 additions & 0 deletions apps/build-onchain-apps/src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
--quick-nav-display: none;
--component-highlights-item-width: calc(100vw - 100px);
--developer-experience-code-window-background: var(--slate-12);

/* Palette */
--palette-bg-black: #0a0b0d;
--palette-bg-soft-black: #141519;
--palette-bg-white: #fff;

/* Build Onchain Apps shared variables */
--boat-color-background: var(--palette-bg-black);
--boat-color-text: var(--palette-bg-white);
}

*,
Expand Down

0 comments on commit 54d5bd9

Please sign in to comment.