Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions examples/yew/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,4 @@
trunk serve --port 3000
```

1. Uncomment this line:
https://github.com/opensass/sidebar/blob/7b63aedd42f9e317d9c3a8c41c2512bf74b9b4ea/examples/yew/index.html#L5

Navigate to http://localhost:3000 to explore all available components.
6 changes: 2 additions & 4 deletions examples/yew/Trunk.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
[[hooks]]
stage = "post_build"
command = "sh"
command_arguments = ["-c", "npx tailwindcss@v3 -i ./css/tailwind.css -o ./dist/.stage/index.css"]
[tools]
tailwindcss = "3.4.17"
2 changes: 1 addition & 1 deletion examples/yew/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8" />
<!-- <link data-trunk rel="css" href="./dist/index.css" type="text/css" /> -->
<link data-trunk rel="tailwind-css" href="src/tailwind.css"/>
<title>Sidebar Yew Example</title>
<link data-trunk rel="copy-dir" href="assets" />
<link data-trunk rel="rust"/>
Expand Down
File renamed without changes.
34 changes: 1 addition & 33 deletions examples/yew/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,7 @@ module.exports = {
"./index.html",
"./src/**/*.{rs,html}"
],
theme: {
extend: {
colors: {
'ct-dark-600': '#222',
'ct-dark-200': '#e5e7eb',
'ct-dark-100': '#f5f6f7',
'ct-blue-600': '#2363eb',
'ct-yellow-600': '#f9d13e',
'ct-red-500': '#ef4444',
},
fontFamily: {
sans: ['Roboto', 'sans-serif'],
serif: ['Roboto', 'serif'],
},
container: {
center: true,
padding: '1rem',
screens: {
sm: '480px',
md: '768px',
lg: '976px',
xl: '1440px',
},
spacing: {
'128': '32rem',
'144': '36rem',
},
borderRadius: {
'4xl': '2rem',
}
},
},
},
theme: {},
plugins: [],
}