Skip to content

Commit fba2d57

Browse files
committed
Tailwind config moved to css
1 parent 6950fb4 commit fba2d57

3 files changed

Lines changed: 38 additions & 99 deletions

File tree

app/layout.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@ const monoFont = JetBrains_Mono({
4040

4141
const RootLayout: React.FC<Props> = ({ children }) => {
4242
return (
43-
<html lang="en">
43+
<html
44+
lang="en"
45+
className={classNames(
46+
sansFont.variable,
47+
monoFont.variable,
48+
"overflow-x-hidden font-sans"
49+
)}
50+
>
4451
<head>
4552
<script
4653
defer
@@ -49,15 +56,7 @@ const RootLayout: React.FC<Props> = ({ children }) => {
4956
/>
5057
</head>
5158

52-
<body
53-
className={classNames(
54-
sansFont.variable,
55-
monoFont.variable,
56-
"overflow-x-hidden font-sans"
57-
)}
58-
>
59-
{children}
60-
</body>
59+
<body>{children}</body>
6160
</html>
6261
)
6362
}

styles/main.css

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import "tailwindcss";
42

53
* {
6-
box-sizing: border-box;
4+
@apply antialiased;
5+
text-rendering: geometricPrecision;
6+
77
transition:
88
background-color 150ms ease-out,
99
color 150ms ease-out;
@@ -13,6 +13,31 @@
1313
-webkit-font-smoothing: antialiased;
1414
}
1515

16+
@theme {
17+
--font-sans: var(--sans-font);
18+
--font-mono: var(--mono-font);
19+
20+
--easing: cubic-bezier(0.16, 1, 0.3, 1);
21+
22+
--animate-slide-down-and-fade: slide-down-and-fade 400ms var(--easing);
23+
--animate-slide-left-and-fade: slide-left-and-fade 400ms var(--easing);
24+
--animate-slide-up-and-fade: slide-up-and-fade 400ms var(--easing);
25+
--animate-slide-right-and-fade: slide-right-and-fade 400ms var(--easing);
26+
27+
--animate-slide-down: slide-down 400ms var(--easing);
28+
--animate-slide-up: slide-up 400ms var(--easing);
29+
--animate-slide-left: slide-left 400ms var(--easing);
30+
--animate-slide-right: slide-right 400ms var(--easing);
31+
32+
--animate-fade-in: fade-in 400ms var(--easing);
33+
34+
--animate-marquee: marquee 25s linear infinite;
35+
--animate-swing: swing 1s infinite ease-in-out alternate;
36+
--animate-rise: rise 150ms cubic-bezier(0.4, 0, 0.2, 1);
37+
--animate-scale: scale 150ms cubic-bezier(0.4, 0, 0.2, 1);
38+
--animate-shake: shake 150ms cubic-bezier(0.4, 0, 0.2, 1);
39+
}
40+
1641
:root {
1742
--sh-class: #2d5e9d;
1843
--sh-identifier: #354150;

tailwind.config.ts

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)