Skip to content

Commit

Permalink
docs(css): update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
flareseek committed Sep 8, 2024
1 parent e60c7e8 commit ff0a01e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,38 @@ Environment Setup (wiki 참조) <br/>

## Code Convention

[CSS](#css)<br/>
[Code style](#code-style) <br/>
[Naming](#naming)<br/>
[Image import](#image-import)<br/>
[Secret key](#secret-key)<br/>

### CSS

- CSS 파일은 동일 폴더내에 `컴포넌트명.css.ts` 로 관리합니다. <br/>

```typescript
// app.css.ts
import { style } from "@vanilla-extract/css";

export const container = style({
backgroundColor: "lightblue",
});
```

```jsx
// App.tsx
import { container } from "./App.css.ts";
function App() {
return (
<div>
<h1 className={container}>Hello, KNU Festival!</h1>
</div>
);
}
export default App;
```

### Code style

- prettier에서 자동으로 교정
Expand Down

0 comments on commit ff0a01e

Please sign in to comment.