Skip to content

Commit 1482a8e

Browse files
committed
Fix readmes
1 parent 9c5b664 commit 1482a8e

File tree

3 files changed

+34
-46
lines changed

3 files changed

+34
-46
lines changed

README.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -83,30 +83,27 @@ Devup UI eliminates the performance degradation of the browser through the CSS i
8383
We develop a preprocessor that considers all grammatical cases.
8484

8585
```typescript
86-
// Before
87-
<Box bg={"red"}/>
88-
// After
89-
<Box className={"d0"}/>
86+
const before = <Box bg={"red"}/>
87+
88+
const after = <div className="d0"/>
9089
```
9190

9291
Variables are fully supported.
9392

9493
```typescript
95-
// Before
96-
<Box bg={colorVariable}/>
97-
// After
98-
<Box className={"d0"} style={{
94+
const before = <Box bg={colorVariable}/>
95+
96+
const after = <div className="d0" style={{
9997
"--d0": colorVariable
10098
}}/>
10199
```
102100

103101
Various expressions and responsiveness are also fully supported.
104102

105103
```typescript
106-
// Before
107-
<Box bg={["red", "blue", a > b ? "yellow" : variable]}/>
108-
// After
109-
<Box className={`d0 d1 ${a > b ? "d2" : "d3"}`} style={{
104+
const before = <Box bg={["red", "blue", a > b ? "yellow" : variable]}/>
105+
106+
const after = <div className={`d0 d1 ${a > b ? "d2" : "d3"}`} style={{
110107
"--d2": variable
111108
}}/>
112109
```
@@ -141,9 +138,8 @@ You can use responsive and pseudo selector.
141138

142139
```typescript
143140
// Responsive with Selector
144-
<Box _hover={{bg: ["red", "blue"]}}/>
141+
const box = <Box _hover={{bg: ["red", "blue"]}}/>
145142

146143
// Same
147-
<Box _hover={[{bg: "red"}, {bg: "blue"}]}/>
148-
144+
const box = <Box _hover={[{bg: "red"}, {bg: "blue"}]}/>
149145
```

README_ko.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -83,30 +83,27 @@ Devup UI는 CSS in JS 전처리기를 통하여 브라우저의 성능 저하를
8383
모든 문법적 경우의 수를 고려하여 전처리기를 개발합니다.
8484

8585
```typescript
86-
// Before
87-
<Box bg={"red"}/>
88-
// After
89-
<Box className={"d0"}/>
86+
const before = <Box bg={"red"}/>
87+
88+
const after = <div className="d0"/>
9089
```
9190

9291
변수 사용도 완전히 지원합니다.
9392

9493
```typescript
95-
// Before
96-
<Box bg={colorVariable}/>
97-
// After
98-
<Box className={"d0"} style={{
94+
const before = <Box bg={colorVariable}/>
95+
96+
const after = <div className="d0" style={{
9997
"--d0": colorVariable
10098
}}/>
10199
```
102100

103101
다양한 표현식과 반응형도 모두 지원합니다.
104102

105103
```typescript
106-
// Before
107-
<Box bg={["red", "blue", a > b ? "yellow" : variable]}/>
108-
// After
109-
<Box className={`d0 d1 ${a > b ? "d2" : "d3"}`} style={{
104+
const before = <Box bg={["red", "blue", a > b ? "yellow" : variable]}/>
105+
106+
const after = <div className={`d0 d1 ${a > b ? "d2" : "d3"}`} style={{
110107
"--d2": variable
111108
}}/>
112109
```
@@ -141,9 +138,8 @@ Devup UI는 CSS in JS 전처리기를 통하여 브라우저의 성능 저하를
141138

142139
```typescript
143140
// Responsive with Selector
144-
<Box _hover={{bg: ["red", "blue"]}}/>
141+
const box = <Box _hover={{bg: ["red", "blue"]}}/>
145142

146143
// Same
147-
<Box _hover={[{bg: "red"}, {bg: "blue"}]}/>
148-
144+
const box = <Box _hover={[{bg: "red"}, {bg: "blue"}]}/>
149145
```

packages/components/README.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -83,30 +83,27 @@ Devup UI eliminates the performance degradation of the browser through the CSS i
8383
We develop a preprocessor that considers all grammatical cases.
8484

8585
```typescript
86-
// Before
87-
<Box bg={"red"}/>
88-
// After
89-
<Box className={"d0"}/>
86+
const before = <Box bg={"red"}/>
87+
88+
const after = <div className="d0"/>
9089
```
9190

9291
Variables are fully supported.
9392

9493
```typescript
95-
// Before
96-
<Box bg={colorVariable}/>
97-
// After
98-
<Box className={"d0"} style={{
94+
const before = <Box bg={colorVariable}/>
95+
96+
const after = <div className="d0" style={{
9997
"--d0": colorVariable
10098
}}/>
10199
```
102100

103101
Various expressions and responsiveness are also fully supported.
104102

105103
```typescript
106-
// Before
107-
<Box bg={["red", "blue", a > b ? "yellow" : variable]}/>
108-
// After
109-
<Box className={`d0 d1 ${a > b ? "d2" : "d3"}`} style={{
104+
const before = <Box bg={["red", "blue", a > b ? "yellow" : variable]}/>
105+
106+
const after = <div className={`d0 d1 ${a > b ? "d2" : "d3"}`} style={{
110107
"--d2": variable
111108
}}/>
112109
```
@@ -141,9 +138,8 @@ You can use responsive and pseudo selector.
141138

142139
```typescript
143140
// Responsive with Selector
144-
<Box _hover={{bg: ["red", "blue"]}}/>
145-
146-
// Another way
147-
<Box _hover={[{bg: "red"}, {bg: "blue"}]}/>
141+
const box = <Box _hover={{bg: ["red", "blue"]}}/>
148142

143+
// Same
144+
const box = <Box _hover={[{bg: "red"}, {bg: "blue"}]}/>
149145
```

0 commit comments

Comments
 (0)