Skip to content

Commit f4aba0f

Browse files
committed
Tweak config
1 parent bfe54fd commit f4aba0f

File tree

5 files changed

+36
-55
lines changed

5 files changed

+36
-55
lines changed

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
"libraryofbabel",
2626
"magick",
2727
"mxschmitt",
28+
"overscroll",
29+
"Popover",
2830
"Snelling"
2931
]
3032
}

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/bigint-base-conversions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,23 @@ const toBase = (value: bigint, base: bigint, alphabet: string): string => {
6161
divisors.push(divisors[divisors.length - 1] ** 2n);
6262
}
6363

64-
const devide = (dividend: bigint, divisorIndex: number) => {
64+
const divide = (dividend: bigint, divisorIndex: number) => {
6565
const divisor = divisors[divisorIndex];
6666

6767
const remainder = dividend % divisor;
6868
const newDividend = dividend / divisor;
6969

7070
if (divisorIndex > 0) {
71-
devide(remainder, divisorIndex - 1);
72-
devide(newDividend, divisorIndex - 1);
71+
divide(remainder, divisorIndex - 1);
72+
divide(newDividend, divisorIndex - 1);
7373
} else {
7474
result = `${alphabet[Number(newDividend)]}${
7575
alphabet[Number(remainder)]
7676
}${result}`;
7777
}
7878
};
7979

80-
devide(value, divisors.length - 1);
80+
divide(value, divisors.length - 1);
8181

8282
result = result.replace(new RegExp(`^${alphabet[0]}*`), "");
8383

src/main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useEffect } from "react";
2-
import ReactDOM from "react-dom/client";
2+
import { createRoot } from "react-dom/client";
33
import {
44
Navigate,
55
RouterProvider,
@@ -91,7 +91,7 @@ const router = createBrowserRouter([
9191
]);
9292

9393
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
94-
ReactDOM.createRoot(document.getElementById("root")!).render(
94+
createRoot(document.getElementById("root")!).render(
9595
<React.StrictMode>
9696
<PwaContextProvider>
9797
<ThemeContextProvider>

tailwind.config.js

Lines changed: 25 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@ export default {
55
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
66
darkMode: "class",
77
theme: {
8-
container: {
9-
center: true,
10-
padding: "2rem",
11-
screens: {
12-
"2xl": "1400px",
13-
},
14-
},
158
extend: {
9+
borderRadius: {
10+
lg: "var(--radius)",
11+
md: "calc(var(--radius) - 2px)",
12+
sm: "calc(var(--radius) - 4px)",
13+
},
1614
colors: {
17-
border: "hsl(var(--border))",
18-
input: "hsl(var(--input))",
19-
ring: "hsl(var(--ring))",
2015
background: "hsl(var(--background))",
2116
foreground: "hsl(var(--foreground))",
17+
card: {
18+
DEFAULT: "hsl(var(--card))",
19+
foreground: "hsl(var(--card-foreground))",
20+
},
21+
popover: {
22+
DEFAULT: "hsl(var(--popover))",
23+
foreground: "hsl(var(--popover-foreground))",
24+
},
2225
primary: {
2326
DEFAULT: "hsl(var(--primary))",
2427
foreground: "hsl(var(--primary-foreground))",
@@ -27,6 +30,15 @@ export default {
2730
DEFAULT: "hsl(var(--secondary))",
2831
foreground: "hsl(var(--secondary-foreground))",
2932
},
33+
muted: {
34+
DEFAULT: "hsl(var(--muted))",
35+
foreground: "hsl(var(--muted-foreground))",
36+
text: "hsl(var(--muted-text))",
37+
},
38+
accent: {
39+
DEFAULT: "hsl(var(--accent))",
40+
foreground: "hsl(var(--accent-foreground))",
41+
},
3042
info: {
3143
DEFAULT: "hsl(var(--info))",
3244
dim: "hsl(var(--info-dim))",
@@ -43,42 +55,9 @@ export default {
4355
DEFAULT: "hsl(var(--destructive))",
4456
foreground: "hsl(var(--destructive-foreground))",
4557
},
46-
muted: {
47-
DEFAULT: "hsl(var(--muted))",
48-
foreground: "hsl(var(--muted-foreground))",
49-
text: "hsl(var(--muted-text))",
50-
},
51-
accent: {
52-
DEFAULT: "hsl(var(--accent))",
53-
foreground: "hsl(var(--accent-foreground))",
54-
},
55-
popover: {
56-
DEFAULT: "hsl(var(--popover))",
57-
foreground: "hsl(var(--popover-foreground))",
58-
},
59-
card: {
60-
DEFAULT: "hsl(var(--card))",
61-
foreground: "hsl(var(--card-foreground))",
62-
},
63-
},
64-
borderRadius: {
65-
lg: "var(--radius)",
66-
md: "calc(var(--radius) - 2px)",
67-
sm: "calc(var(--radius) - 4px)",
68-
},
69-
keyframes: {
70-
"accordion-down": {
71-
from: { height: 0 },
72-
to: { height: "var(--radix-accordion-content-height)" },
73-
},
74-
"accordion-up": {
75-
from: { height: "var(--radix-accordion-content-height)" },
76-
to: { height: 0 },
77-
},
78-
},
79-
animation: {
80-
"accordion-down": "accordion-down 0.2s ease-out",
81-
"accordion-up": "accordion-up 0.2s ease-out",
58+
border: "hsl(var(--border))",
59+
input: "hsl(var(--input))",
60+
ring: "hsl(var(--ring))",
8261
},
8362
},
8463
},

0 commit comments

Comments
 (0)