Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(port): raycast #220

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,15 @@
<span>Sway</span>
</p>
</td>
<td valign="top">
<p align="center">
<a href="https://github.com/daltonmenezes/aura-theme/tree/main/packages/raycast">
<img src="https://private-user-images.githubusercontent.com/83606943/370319065-1df0c51e-a353-45d7-b7e8-7d0e4abe4b39.svg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjcxODcyMjgsIm5iZiI6MTcyNzE4NjkyOCwicGF0aCI6Ii84MzYwNjk0My8zNzAzMTkwNjUtMWRmMGM1MWUtYTM1My00NWQ3LWI3ZTgtN2QwZTRhYmU0YjM5LnN2Zz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTI0VDE0MDg0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZmNmUxZWY3ZmM2YzE3NzI0NmFiNmM5YWFiYjJlMjI1ZGFkOWRiMTUxMzg1YjliNjkyODE3MTcxNmVjMmUyYmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8dZt1c1hBXRO7fffaVVgtvuAvHxYxk33lebqC6-jIuY" align="center" />
Copy link
Author

@shubh73 shubh73 Sep 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This image needs to be updated

</a>
<br/><br/>
<span>Raycast</span>
</p>
</td>
</tr>
</table>

Expand Down
71 changes: 71 additions & 0 deletions packages/raycast/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<p align="center">
<img src="https://github.com/daltonmenezes/assets/blob/master/images/aura-theme/new-heading.png?raw=true" alt="Aura Theme" width="70%" />
</p>

<p align="center">
✨ A beautiful dark theme for Raycast and other apps
<br><br>

<!-- Patreon -->
<a href="https://www.patreon.com/daltonmenezes">
<img alt="patreon url" src="https://img.shields.io/badge/support%20on-patreon-1C1E26?style=for-the-badge&labelColor=1C1E26&color=61ffca">
</a>

<!-- version -->
<a href="#">
<img alt="version" src="https://img.shields.io/badge/version%20-v1.0.0-1C1E26?style=for-the-badge&labelColor=1C1E26&color=61ffca">
</a>
</p>



<p align="center">
<img alt="preview" src="https://private-user-images.githubusercontent.com/83606943/369637936-2eff0fd2-ef52-469c-bae6-6c3c93f48f69.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjcxODIyNjQsIm5iZiI6MTcyNzE4MTk2NCwicGF0aCI6Ii84MzYwNjk0My8zNjk2Mzc5MzYtMmVmZjBmZDItZWY1Mi00NjljLWJhZTYtNmMzYzkzZjQ4ZjY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTI0VDEyNDYwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg4NGEwZmFmZjBhNTU4ZWVmZDdlYTQ2NTEzOGU1NGU5NTk3MmRlYTA3Y2U2YTc5YmMzMGI1NjYxMGIzOTI3YWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.tC2ZaEEbZ5d6zFgUPNFHGanqkffeEFEtcamBm0MBO6Q" />
</p>

# Themes available

- Aura

# Prerequisites

- Raycast Pro subscription

# Installation

1. Visit [https://ray.so/themes/](https://ray.so/themes/)
2. Find the Aura theme in the list of available themes.
3. Click the "Add to Raycast" button next to the Aura theme.
4. Raycast will open with an alert to install the theme.
5. Once installed, select the Aura theme to apply it to Raycast.

# Contributors

<table>
<thead>
<tr>
<td valign="bottom">
<p align="center">
<a href="https://github.com/shubh73">
<img src="https://github.com/shubh73.png?size=100" align="center" />
</a>
</p>
</td>
<td valign="bottom"><p align="center">
<a href="https://github.com/daltonmenezes">
<img src="https://github.com/daltonmenezes.png?size=100" align="center" />
</a>
</p></td>
</tr>
</thead>

<tbody>
<tr>
<td><a href="https://github.com/shubh73">Shubh Porwal</a></td>
<td><a href="https://github.com/daltonmenezes">Dalton Menezes</a></td>
</tr>
</tbody>
</table>

# License
[MIT © Dalton Menezes](https://github.com/daltonmenezes/aura-theme/blob/main/LICENSE)
21 changes: 21 additions & 0 deletions packages/raycast/aura-theme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"author": "Shubh Porwal",
"authorUsername": "shubh_porwal",
"version": "1",
"name": "Aura",
"appearance": "dark",
"colors": {
"background": "#15141b",
"backgroundSecondary": "#15141b",
"text": "#edecee",
"selection": "#a277ff",
"loader": "#61ffca",
"red": "#ff6767",
"orange": "#ffca85",
"yellow": "#FFD700",
"green": "#61ffca",
"blue": "#82e2ff",
"purple": "#a277ff",
"magenta": "#f694ff"
}
}
27 changes: 27 additions & 0 deletions src/ports/raycast/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { AuraAPI } from 'core'
import { resolve } from 'path'

export async function RaycastPort(Aura: AuraAPI) {
const { createPort, createReadme, colorSchemes, constants } = Aura
const templateFolder = resolve(__dirname, 'templates')
const { info } = constants

const portName = 'Raycast'
const version = '1.0.0'

await createPort({
template: resolve(templateFolder, `${info.slug}.json`),
replacements: {
...colorSchemes.dark,
...info,
},
})

await createReadme({
template: resolve(templateFolder, 'README.md'),
replacements: {
portName,
version,
},
})
}
47 changes: 47 additions & 0 deletions src/ports/raycast/templates/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{{{ basic-heading }}}

<p align="center">
<img alt="preview" src="https://private-user-images.githubusercontent.com/83606943/369637936-2eff0fd2-ef52-469c-bae6-6c3c93f48f69.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjcxODIyNjQsIm5iZiI6MTcyNzE4MTk2NCwicGF0aCI6Ii84MzYwNjk0My8zNjk2Mzc5MzYtMmVmZjBmZDItZWY1Mi00NjljLWJhZTYtNmMzYzkzZjQ4ZjY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTI0VDEyNDYwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg4NGEwZmFmZjBhNTU4ZWVmZDdlYTQ2NTEzOGU1NGU5NTk3MmRlYTA3Y2U2YTc5YmMzMGI1NjYxMGIzOTI3YWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.tC2ZaEEbZ5d6zFgUPNFHGanqkffeEFEtcamBm0MBO6Q" />
</p>

# Themes available

- Aura

# Prerequisites

- Raycast Pro subscription

# Installation

1. Visit [https://ray.so/themes/](https://ray.so/themes/)
2. Find the Aura theme in the list of available themes.
3. Click the "Add to Raycast" button next to the Aura theme.
4. Raycast will open with an alert to install the theme.
5. Once installed, select the Aura theme to apply it to Raycast.

# Contributors

<table>
<thead>
<tr>
<td valign="bottom">
<p align="center">
<a href="https://github.com/shubh73">
<img src="https://github.com/shubh73.png?size=100" align="center" />
</a>
</p>
</td>
{{{ author-thead }}}
</tr>
</thead>

<tbody>
<tr>
<td><a href="https://github.com/shubh73">Shubh Porwal</a></td>
{{{ author-tbody }}}
</tr>
</tbody>
</table>

{{{ footer }}}
21 changes: 21 additions & 0 deletions src/ports/raycast/templates/aura-theme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"author": "Shubh Porwal",
"authorUsername": "shubh_porwal",
"version": "1",
"name": "Aura",
"appearance": "dark",
"colors": {
"background": "{{accent12}}",
"backgroundSecondary": "{{accent12}}",
"text": "{{accent7}}",
"selection": "{{accent1}}",
"loader": "{{accent2}}",
"red": "{{accent5}}",
"orange": "{{accent3}}",
"yellow": "#FFD700",
"green": "{{accent2}}",
"blue": "{{accent32}}",
"purple": "{{accent1}}",
"magenta": "{{accent6}}"
}
}