Skip to content

Commit a8cde13

Browse files
authored
fix: use trunk built-in tailwind config (#19)
1 parent 3d37fdb commit a8cde13

File tree

5 files changed

+4
-41
lines changed

5 files changed

+4
-41
lines changed

examples/yew/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@
7878
trunk serve --port 3000
7979
```
8080

81-
1. Uncomment this line:
82-
https://github.com/opensass/input-rs/blob/f17f89fc85f464381beb5bc9c5596a9def7924ce/examples/yew/index.html#L5
83-
8481
Navigate to http://localhost:3000 to explore all available components.
8582

8683
## 🌀 Tailwind CSS Components

examples/yew/Trunk.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
[[hooks]]
2-
stage = "post_build"
3-
command = "sh"
4-
command_arguments = ["-c", "npx tailwindcss@v3 -i ./css/tailwind.css -o ./dist/.stage/index.css"]
1+
[tools]
2+
tailwindcss = "3.4.17"

examples/yew/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8" />
5-
<!-- <link data-trunk rel="css" href="./dist/index.css" type="text/css" /> -->
5+
<link data-trunk rel="tailwind-css" href="src/tailwind.css"/>
66
<script
77
src="https://kit.fontawesome.com/8f223ead6e.js"
88
crossorigin="anonymous"
File renamed without changes.

examples/yew/tailwind.config.js

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,7 @@ module.exports = {
44
"./index.html",
55
"./src/**/*.{rs,html}"
66
],
7-
theme: {
8-
extend: {
9-
colors: {
10-
'ct-dark-600': '#222',
11-
'ct-dark-200': '#e5e7eb',
12-
'ct-dark-100': '#f5f6f7',
13-
'ct-blue-600': '#2363eb',
14-
'ct-yellow-600': '#f9d13e',
15-
'ct-red-500': '#ef4444',
16-
},
17-
fontFamily: {
18-
sans: ['Roboto', 'sans-serif'],
19-
serif: ['Roboto', 'serif'],
20-
},
21-
container: {
22-
center: true,
23-
padding: '1rem',
24-
screens: {
25-
sm: '480px',
26-
md: '768px',
27-
lg: '976px',
28-
xl: '1440px',
29-
},
30-
spacing: {
31-
'128': '32rem',
32-
'144': '36rem',
33-
},
34-
borderRadius: {
35-
'4xl': '2rem',
36-
}
37-
},
38-
},
39-
},
7+
theme: {},
408
plugins: [],
419
}
4210

0 commit comments

Comments
 (0)