···11-# create-svelte
11+# svelte-github-corner
2233-Everything you need to build a Svelte library, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
33+simple little component for adding a github corner icon to your svelte projects
4455-Read more about creating a library [in the docs](https://svelte.dev/docs/kit/packaging).
66-77-## Creating a project
88-99-If you're seeing this, you've probably already done this step. Congrats!
55+## install
106117```bash
1212-# create a new project in the current directory
1313-npx sv create
1414-1515-# create a new project in my-app
1616-npx sv create my-app
88+npm install svelte-github-corner
179```
18101919-## Developing
1111+## use
20122121-Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
1313+- the colors are optional, will default to black on white
22142323-```bash
2424-npm run dev
1515+```svelte
1616+<script>
1717+ import { GithubCorner } from 'svelte-github-corner';
1818+<\/script>
25192626-# or start the server and open the app in a new browser tab
2727-npm run dev -- --open
2020+<GithubCorner
2121+ href="https://github.com/flo-bit/svelte-github-corner"
2222+ color="#fff"
2323+ backgroundColor="#151513"
2424+/>
2825```
29263030-Everything inside `src/lib` is part of your library, everything inside `src/routes` can be used as a showcase or preview app.
2727+### using with tailwind
31283232-## Building
2929+- fill is background, text is icon
33303434-To build your library:
3131+```svelte
3232+<script>
3333+ import { GithubCorner } from 'svelte-github-corner';
3434+<\/script>
35353636-```bash
3737-npm run package
3636+<GithubCorner
3737+ href="https://github.com/flo-bit/svelte-github-corner"
3838+ class="fill-stone-900 text-stone-100 dark:fill-stone-100 dark:text-stone-900"
3939+/>
3840```
39414040-To create a production version of your showcase app:
4242+## license
41434242-```bash
4343-npm run build
4444-```
4444+MIT
45454646-You can preview the production build with `npm run preview`.
4646+## credits
47474848-> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
4949-5050-## Publishing
5151-5252-Go into the `package.json` and give your package the desired name through the `"name"` option. Also consider adding a `"license"` field and point it to a `LICENSE` file which you can create from a template (one popular option is the [MIT license](https://opensource.org/license/mit/)).
5353-5454-To publish your library to [npm](https://www.npmjs.com):
5555-5656-```bash
5757-npm publish
5858-```
4848+based on [github corners](https://github.com/tholman/github-corners) by Tim Holman
-13
.github/workflows/deploy_gh_pages.yml
···3232 # This should match the `pages` option in your adapter-static options
3333 path: 'build/'
34343535- - name: Debug npm auth
3636- env:
3737- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3838- run: |
3939- echo "Auth token length: ${#NODE_AUTH_TOKEN}"
4040-4141- - name: Publish to NPM
4242- env:
4343- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4444- run: |
4545- npm install
4646- npm publish --access public
4747-4835 deploy:
4936 needs: build_site
5037 runs-on: ubuntu-latest