---
title: "Lit"
locale: "en"
version: "1.x"
canonicalUrl: "https://farmfe.org/docs/1.x/frameworks/lit"
publicationStatus: "prerelease"
---

<a id="lit"></a>
# Lit


Create a ` Lit ` project based on ` Farm `.


` Farm ` provides two approaches to support creating ` Lit ` projects:


- Use the ` create-farm ` scaffold to create a scaffold project
- You can manually create a ` Lit ` project following the current documentation


<a id="creating-a-lit-project"></a>
### Creating a Lit Project


**npm**

```sh
npm create farm@latest
```

**pnpm**

```sh
pnpm create farm@latest
```

**yarn**

```sh
yarn create farm@latest
```

**bun**

```sh
bun create farm@latest
```


Select ` Lit ` template in ` Select Framework `


If you use lit then we need to configure the decorator


```javascript
import { defineConfig } from '@farmfe/core';

export default defineConfig({
  compilation: {
    presetEnv: false,
    script: {
      plugins: [],
      target: 'es2022',
      parser: {
        tsConfig: {
          decorators: true,
          dts: false,
          noEarlyErrors: false,
          tsx: false
        }
      }
    }
  }
});

```


For more example details: [React Example](<https://github.com/farm-fe/farm/tree/main/examples/Lit>)
