|
1 | 1 | <h1 align="center">
|
2 | 2 | <img style="margin: 50px 0px" width="400px" src="https://raw.githubusercontent.com/doc-han/xtensio/master/statics/xtensio.png" />
|
3 | 3 | </h1>
|
| 4 | +<p align="center"> |
| 5 | + <b>Open-source javascript framework for browser extension development</b> <br /> |
| 6 | + <b>No complex config • No experience with extensions required.</b> <br /> |
| 7 | +</p> |
| 8 | + |
| 9 | +<h4 align="center"> |
| 10 | + <a href="https://github.com/doc-han/xtensio?tab=MIT-1-ov-file#readme"> |
| 11 | + <img alt="GitHub License" src="https://img.shields.io/github/license/doc-han/xtensio?color=blue"> |
| 12 | + </a> |
| 13 | + <a href="https://github.com/doc-han/xtensio"> |
| 14 | + <img src="https://img.shields.io/badge/PR's-Welcome-brightgreen" alt="PRs welcome!" /> |
| 15 | + </a> |
| 16 | + <a href="https://x.com/xtensiojs"> |
| 17 | + <img src="https://img.shields.io/twitter/follow/xtensiojs?style=social"/> |
| 18 | + </a> |
| 19 | + |
| 20 | +</h4> |
| 21 | + |
| 22 | +check docs at [xtensio.io](https://xtensio.io/getting-started/) |
| 23 | + |
| 24 | +### What is xtensio? |
4 | 25 |
|
5 | 26 | A javascript framework for building browser extensions. It takes away all the tedious configurations away from you and lowers the barrier to extension development.
|
6 | 27 |
|
@@ -127,26 +148,22 @@ Inside the background folder is an `index.ts` file which serves as your single e
|
127 | 148 |
|
128 | 149 | > You can freely create other files in the background directory and use them or import them into the `index.ts` file.
|
129 | 150 |
|
130 |
| - |
131 |
| - |
132 |
| -### 🦋 Styles - Tailwind Css |
| 151 | +### 🦋 Styles - Tailwind Css |
133 | 152 |
|
134 | 153 | To include tailwind class utilities, you basically need to Opt in `[ select 'Y' ]` for Tailwind Css in the setup process
|
135 |
| -We will do the all the heavy lifting. All you've to do is to `import tailwind.css` in any section being page,content, popup etc. |
| 154 | +We will do the all the heavy lifting. All you've to do is to `import tailwind.css` in any section being page,content, popup etc. |
136 | 155 |
|
137 | 156 | ```js
|
138 | 157 | import { visitPage } from "xtensio";
|
139 | 158 | import "../tailwind.css"; //add this line
|
140 | 159 | ...
|
141 | 160 | const buttonClickHandler = () => {
|
142 |
| - visitPage("settings"); |
| 161 | + visitPage("settings"); |
143 | 162 | }
|
144 | 163 |
|
145 | 164 | return <button className={"px-10 py-1 bg-red-200 border ..."} onClick={buttonClickHandler}>Visit Settings Page</button>
|
146 | 165 | ```
|
147 | 166 |
|
148 |
| - |
149 |
| - |
150 | 167 | ### 📜 Manifest.ts
|
151 | 168 |
|
152 | 169 | This is the main file that handles most of the configurations related to a browser extension. It exports a JavaScript object as default which is used in generating the [manifest.json](https://developer.chrome.com/docs/extensions/mv3/manifest/) which is required when creating a browser extension.
|
|
0 commit comments