Skip to content

Commit f36fdec

Browse files
committed
feat: add basic CSS configuration
1 parent e6b63ce commit f36fdec

File tree

7 files changed

+35
-16
lines changed

7 files changed

+35
-16
lines changed

global.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@import 'tailwindcss';
2+
3+
4+
5+
@config "./tailwind.config.ts";
6+
7+
8+
html,
9+
body,
10+
#app {
11+
height: 100%;
12+
}
13+
14+
html {
15+
overflow-x: hidden;
16+
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"lint:fix": "eslint . --fix"
1818
},
1919
"devDependencies": {
20+
"@soybean-react-ui/tailwind-plugin": "workspace:*",
2021
"@soybeanjs/eslint-config": "1.7.0",
2122
"@types/node": "22.15.3",
2223
"@types/react": "19.1.0",
@@ -27,6 +28,7 @@
2728
"eslint-plugin-react-refresh": "0.4.20",
2829
"eslint-plugin-sort": "4.0.0",
2930
"prettier": "3.6.0",
31+
"tailwindcss": "4.1.11",
3032
"tsup": "8.5.0",
3133
"turbo": "2.5.4",
3234
"typescript": "5.8.2"

playground/src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Metadata } from 'next';
22
import { Geist, Geist_Mono } from 'next/font/google';
3-
import './globals.css';
3+
import '../css/globals.css';
44
import { Card, Sonner } from 'soybean-react-ui';
55

66
const geistSans = Geist({

playground/src/app/globals.css renamed to playground/src/css/globals.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
@import 'tailwindcss';
1+
@import '../../../global.css';
22

33
@plugin "tailwindcss-animate";
44

55
@source "../../../packages/ui/src/**/*.{ts,tsx}";
66

7-
@config "../../tailwind.config.ts";
87

98
html,
109
body,

playground/tailwind.config.ts

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

pnpm-lock.yaml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tailwind.config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
const config = {
2-
darkMode: 'class'
1+
import { soybeanUIPlugin } from '@soybean-react-ui/tailwind-plugin';
2+
import type { Config } from 'tailwindcss';
3+
4+
const config: Config = {
5+
darkMode: 'class',
6+
plugins: [soybeanUIPlugin()]
37
};
48

59
export default config;

0 commit comments

Comments
 (0)