Skip to content

Commit b3ced2b

Browse files
committed
Update tailwind
1 parent d1fd782 commit b3ced2b

File tree

3 files changed

+20
-32
lines changed

3 files changed

+20
-32
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ tailwind-input-file = "style/tailwind.css"
7777
#
7878
# Optional, defaults to "tailwind.config.js" which if is not present
7979
# is generated for you
80-
tailwind-config-file = "tailwind.config.js"
80+
# tailwind-config-file = "tailwind.config.js"
8181

8282
# Optional. Env: LEPTOS_ASSETS_DIR.
8383
assets-dir = "public"

style/tailwind.css

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import "tailwindcss";
42

5-
@import "https://www.nerdfonts.com/assets/css/webfont.css";
3+
@theme {
4+
--font-sans: JetBrains Mono, monospace;
5+
--color-base: #1E1E2E;
6+
--color-sky: #91d7e3;
7+
--color-blue: #8aadf4;
8+
--color-maroon: #ee99a0;
9+
--color-peach: #f5a97f;
10+
--color-green: #a6da95;
11+
--color-teal: #8bd5ca;
12+
--color-surface: #363a4f;
13+
--color-pink: #f5bde6;
14+
--color-midnight: #121063;
15+
}
616

717
@layer components {
18+
19+
@import "https://www.nerdfonts.com/assets/css/webfont.css";
20+
821
@keyframes blink {
922

1023
0%,
@@ -48,6 +61,7 @@
4861
}
4962

5063
.code-block {
51-
@apply px-4 border shadow-md shadow-black border-peach rounded-md my-6 max-w-full overflow-x-auto text-xs md:text-base;
64+
@apply px-4 border shadow-md shadow-black rounded-md my-6 max-w-full overflow-x-auto text-xs md:text-base;
65+
border-color: var(--color-peach);
5266
}
5367
}

tailwind.config.js

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

0 commit comments

Comments
 (0)