Skip to content

Commit a71c1b1

Browse files
authored
Merge pull request #82 from rtCamp/doc/readme-improvements
Doc: Clarify setup and Tailwind configuration instructions
2 parents 1324bea + af01852 commit a71c1b1

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

GETTING-STARTED.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Frappe UI React is a modern component library designed for building frontend app
77

88
## Usage
99

10-
You can set up frappe-ui-react in the following simple steps, or you can quickly setup frappe-ui-react using [frappe-ui-react-starter](https://github.com/rtCamp/frappe-ui-react-starter).
10+
You can set up `frappe-ui-react` in your existing Frappe app with the following simple steps. You can also spin up a new project instantly using the [frappe-ui-react-starter](https://github.com/rtCamp/frappe-ui-react-starter) template.
1111

1212
### Step 1: Installation
1313

@@ -26,9 +26,11 @@ Import the theme CSS directly into your project (e.g., in `index.css`) and provi
2626
@source "../../node_modules/@rtcamp/frappe-ui-react/dist";
2727
```
2828

29+
[Tailwind @source directive](https://tailwindcss.com/docs/functions-and-directives#source-directive) explicitly specifies source files that aren't picked up by Tailwind's automatic content detection.
30+
2931
**(Tailwind v3 usage):**
3032

31-
If you are already using a Tailwind v3 configuration, you should take two steps:
33+
If you are using a Tailwind v3 configuration, you should take two steps:
3234

3335
- Import the `theme-v3` CSS into your index.css file, and ensure that `index.css` is then imported in your `index.tsx`.
3436

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Frappe UI React is a modern component library designed for building frontend app
1212

1313
## Usage
1414

15-
You can set up frappe-ui-react in the following simple steps, or you can quickly setup frappe-ui-react using [frappe-ui-react-starter](https://github.com/rtCamp/frappe-ui-react-starter).
15+
You can set up `frappe-ui-react` in your existing Frappe app with the following simple steps. You can also spin up a new project instantly using the [frappe-ui-react-starter](https://github.com/rtCamp/frappe-ui-react-starter) template.
1616

1717
### Step 1: Installation
1818

@@ -24,16 +24,19 @@ npm install @rtcamp/frappe-ui-react
2424

2525
### Step 2: Configuration
2626

27-
Import the theme CSS directly into your project (e.g., in `index.css`) and provide the source of the frappe-ui-react package so that it picks the styles automatically.
27+
Import the theme CSS directly into your project (e.g., in `index.css`) and provide the source of the frappe-ui-react or the package where it is imported so that it picks the styles automatically.
2828

2929
```css
3030
@import '@rtcamp/frappe-ui-react/theme';
3131
@source "../../node_modules/@rtcamp/frappe-ui-react/dist";
3232
```
3333

34+
[Tailwind @source directive](https://tailwindcss.com/docs/functions-and-directives#source-directive) explicitly specifies source files that aren't picked up by Tailwind's automatic content detection.
35+
36+
3437
**(Tailwind v3 usage):**
3538

36-
If you are already using a Tailwind v3 configuration, you should take two steps:
39+
If you are using a Tailwind v3 configuration, you should take two steps:
3740

3841
- Import the `theme-v3` CSS into your index.css file, and ensure that `index.css` is then imported in your `index.tsx`.
3942

0 commit comments

Comments
 (0)