Skip to content

Commit fb55187

Browse files
authored
Merge pull request #9 from kinotio/develop
fix: global css apply layer base
2 parents 041080e + a08380c commit fb55187

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

src/styles/globals.css

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,8 @@
22
@tailwind components;
33
@tailwind utilities;
44

5-
:root {
6-
--background: #ffffff;
7-
--foreground: #171717;
8-
}
9-
10-
@media (prefers-color-scheme: dark) {
11-
:root {
12-
--background: #0a0a0a;
13-
--foreground: #ededed;
14-
}
15-
}
16-
17-
body {
18-
color: var(--foreground);
19-
background: var(--background);
20-
font-family: Arial, Helvetica, sans-serif;
5+
html {
6+
scroll-behavior: smooth;
217
}
228

239
@layer base {
@@ -48,6 +34,7 @@ body {
4834
--chart-5: 27 87% 67%;
4935
--radius: 0.5rem;
5036
}
37+
5138
.dark {
5239
--background: 0 0% 3.9%;
5340
--foreground: 0 0% 98%;
@@ -76,11 +63,16 @@ body {
7663
}
7764
}
7865

66+
.shadow-light {
67+
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.085);
68+
}
69+
70+
.shadow-dark {
71+
box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.141);
72+
}
73+
7974
@layer base {
8075
* {
8176
@apply border-border;
8277
}
83-
body {
84-
@apply bg-background text-foreground;
85-
}
8678
}

theme.config.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { getCurrentYear } from '@/lib/utils'
88
import { DATA } from '@/data'
99

1010
const config: DocsThemeConfig = {
11-
darkMode: false,
1211
logo: function Logo() {
1312
return <KinotioLogo width={100} height={100} />
1413
},

0 commit comments

Comments
 (0)