Skip to content

Commit

Permalink
feat: 增加 tailwind 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
wjgogogo committed Nov 4, 2024
1 parent 52b20fb commit fa1997f
Show file tree
Hide file tree
Showing 7 changed files with 669 additions and 51 deletions.
3 changes: 3 additions & 0 deletions packages/rspress-site/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["prettier-plugin-tailwindcss"]
}
22 changes: 3 additions & 19 deletions packages/rspress-site/README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
#react


直接使用 19-rc 版本
```bash
gcl https://github.com/facebook/react.git src/react
```


## Debug

- Standardalone 直接启动
- build source map -> 光
- Kasong
- Vite (create-react-app -> eject -> 修改配置)
- Principal -> ignore dev validate


## Catalogue
- 准则
- Principal -> ignore dev validate
- 架构预览
- How to debug & use repo?
- What's jsx? -> babel playground
- [x] How to debug & use repo?
- [x] What's jsx? -> babel playground
- Open source
- check and warning
- Workflow
Expand Down
9 changes: 7 additions & 2 deletions packages/rspress-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@
"preview": "rspress preview"
},
"dependencies": {
"rspress": "^1.35.2"
"clsx": "^2.1.1",
"rspress": "^1.35.2",
"tailwind-merge": "^2.5.4",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@rspress/plugin-playground": "^1.35.2",
"@rspress/plugin-preview": "^1.35.2",
"@rspress/plugin-shiki": "^1.35.2",
"@types/node": "^16.18.115"
"@types/node": "^16.18.115",
"prettier-plugin-tailwindcss": "^0.6.8",
"tailwindcss": "^3.4.14"
}
}
5 changes: 5 additions & 0 deletions packages/rspress-site/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: {
tailwindcss: {},
},
};
7 changes: 7 additions & 0 deletions packages/rspress-site/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
content: ["./components/**/*.tsx", "./docs/**/*.mdx"],
theme: {
extend: {},
},
plugins: [],
};
12 changes: 9 additions & 3 deletions packages/rspress-site/theme/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
[class^="social-links-icon"] > div {
height: 200px;
width: 200px;
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";

@layer base {
[class^="social-links-icon"] > div {
height: 200px;
width: 200px;
}
}
Loading

0 comments on commit fa1997f

Please sign in to comment.