Skip to content

Commit 6222dee

Browse files
authored
Theme revisions (better light mode & more) (#3233)
* add basic theme editing to DemoApp * theme editor working pretty well * derived button colors and other fun stuff * fix imports... * various tiny little things * tweaks * fix build errors * dont show chain list if theres no more chains * tweaks * remove unnecessary addition * console.log * move new button styles into common component * fix rail color * comment utils, remove lighten (unused) * remove border * add back MayanRouteSHUTTLE * linty lint
1 parent 4124936 commit 6222dee

File tree

32 files changed

+726
-425
lines changed

32 files changed

+726
-425
lines changed

wormhole-connect/index.html

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@
1111
/>
1212
<link rel="apple-touch-icon" href="/logo192.png" />
1313
<link rel="manifest" href="/manifest.json" />
14-
<link rel="stylesheet" href="/development.css" />
1514
<title>Wormhole Connect Demo App</title>
1615
<script type="module" src="/src/demo.tsx"></script>
1716
</head>
18-
<body style="margin: 0">
19-
<noscript>You need to enable JavaScript to run this app.</noscript>
20-
<main></main>
21-
</body>
17+
<body style="margin: 0"></body>
2218
</html>

wormhole-connect/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"build:hosted": "VITE_BUILD_HOSTED=1 NODE_ENV=production NODE_OPTIONS=--max-old-space-size=10240 vite build",
7474
"build:netlify": "VITE_BUILD_NETLIFY=1 NODE_ENV=production NODE_OPTIONS=--max-old-space-size=10240 vite build",
7575
"lint": "scripts/lint.sh",
76+
"lint:errors": "scripts/lint.sh --quiet",
7677
"lint:ci": "scripts/lint_ci.sh",
7778
"prettier": "prettier --write ./src",
7879
"analyze": "NODE_ENV=production NODE_OPTIONS=--max-old-space-size=6144 vite-bundle-visualizer",

wormhole-connect/public/development.css

-4
This file was deleted.

wormhole-connect/scripts/lint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
npm run prettier
2-
eslint --fix ./src
2+
eslint --fix $@ ./src
33
#eslint -c .eslintrc.strict.json src/hooks

wormhole-connect/src/components/AssetBadge.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Token } from 'config/tokens';
1212

1313
const useStyles = makeStyles()((theme: any) => ({
1414
badgeContent: {
15-
border: `1.5px solid ${theme.palette.modal.background}`,
15+
border: `1.5px solid ${theme.palette.input.background}`,
1616
borderRadius: '4px',
1717
},
1818
}));
@@ -34,6 +34,7 @@ function AssetBadge(props: Props) {
3434
</Box>
3535
}
3636
sx={{
37+
zIndex: 0,
3738
height: '38px', // Icon height (36px) + the distance from badge's bottom (2px)
3839
marginRight: '8px',
3940
'& .MuiBadge-badge': {

0 commit comments

Comments
 (0)