Skip to content

Commit

Permalink
Merge pull request #200 from alexmck/feat/warp
Browse files Browse the repository at this point in the history
feat(port): add warp
  • Loading branch information
daltonmenezes authored Oct 23, 2023
2 parents 9bb266b + 5830ef7 commit 6c0b224
Show file tree
Hide file tree
Showing 6 changed files with 188 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
</p>
</td>
</tr>
<tr>
<td valign="top">
<p align="center">
<a href="https://github.com/daltonmenezes/aura-theme/tree/main/packages/terminal-app">
Expand Down Expand Up @@ -217,6 +218,17 @@
</p>
</td>
</tr>
<tr>
<td valign="top">
<p align="center">
<a href="https://github.com/daltonmenezes/aura-theme/tree/main/packages/warp">
<img src="https://user-images.githubusercontent.com/1149845/277492334-5de78c3b-792c-4f14-8dc6-58dbbe32d14d.png" align="center">
</a>
<br/><br/>
<span>Warp</span>
</p>
</td>
</tr>
</table>

### Browsers
Expand Down
65 changes: 65 additions & 0 deletions packages/warp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<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 Warp 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://user-images.githubusercontent.com/1149845/277492362-80112522-2488-49fd-89eb-a3bbcd7a6c2a.png" />
</p>

# Installation
1. Download [aura-theme.yaml](https://raw.githubusercontent.com/daltonmenezes/aura-theme/main/packages/warp/aura-theme.yaml)
2. If it doesn't exist, create `~/.warp/themes/` directory: `mkdir -p ~/.warp/themes/`
3. Copy your download to this directory: `cp ~/Downloads/aura-theme.yaml ~/.warp/themes/`
4. Open Warp theme selector and select Aura-theme. (<kbd>Control</kbd> + <kbd>⌘</kbd> + <kbd>T</kbd>)

<br/>
Done! ✨ 🎉
<br/>
<br/>

# Contributors
<table>
<thead>
<tr>
<td valign="bottom">
<p align="center">
<a href="https://github.com/alexmck">
<img src="https://github.com/alexmck.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/alexmck">Alex McKenzie</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)
23 changes: 23 additions & 0 deletions packages/warp/aura-theme.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
accent: "#a277ff"
background: "#15141b"
foreground: "#edecee"
details: "darker"
terminal_colors:
normal:
black: "#110f18"
red: "#ff6767"
green: "#61ffca"
yellow: "#ffca85"
blue: "#61ffca"
magenta: "#a277ff"
cyan: "#edecee"
white: "#edecee"
bright:
black: "#4d4d4d"
red: "#ffca85"
green: "#a277ff"
yellow: "#ffca85"
blue: "#a277ff"
magenta: "#a277ff"
cyan: "#61ffca"
white: "#edecee"
27 changes: 27 additions & 0 deletions src/ports/warp/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 WarpPort(Aura: AuraAPI) {
const { createPort, createReadme, colorSchemes, constants } = Aura
const templateFolder = resolve(__dirname, 'templates')
const { info } = constants

const portName = 'Warp'
const version = '1.0.0'

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

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

<p align="center">
<img alt="preview" src="https://user-images.githubusercontent.com/1149845/277492362-80112522-2488-49fd-89eb-a3bbcd7a6c2a.png" />
</p>

# Installation
1. Download [{{ slug }}.yaml](https://raw.githubusercontent.com/daltonmenezes/aura-theme/main/packages/warp/{{ slug }}.yaml)
2. If it doesn't exist, create `~/.warp/themes/` directory: `mkdir -p ~/.warp/themes/`
3. Copy your download to this directory: `cp ~/Downloads/{{ slug }}.yaml ~/.warp/themes/`
4. Open Warp theme selector and select Aura-theme. (<kbd>Control</kbd> + <kbd>⌘</kbd> + <kbd>T</kbd>)

{{{ done }}}

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

<tbody>
<tr>
<td><a href="https://github.com/alexmck">Alex McKenzie</a></td>
{{{ author-tbody }}}
</tr>
</tbody>
</table>

{{{ footer }}}
23 changes: 23 additions & 0 deletions src/ports/warp/templates/aura-theme.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
accent: "{{ accent1 }}"
background: "{{ accent12 }}"
foreground: "{{ accent7 }}"
details: "darker"
terminal_colors:
normal:
black: "{{ accent21 }}"
red: "{{ accent5 }}"
green: "{{ accent2 }}"
yellow: "{{ accent3 }}"
blue: "{{ accent2 }}"
magenta: "{{ accent1 }}"
cyan: "{{ accent7 }}"
white: "{{ accent7 }}"
bright:
black: "{{ accent15 }}"
red: "{{ accent3 }}"
green: "{{ accent1 }}"
yellow: "{{ accent3 }}"
blue: "{{ accent1 }}"
magenta: "{{ accent1 }}"
cyan: "{{ accent2 }}"
white: "{{ accent7 }}"

0 comments on commit 6c0b224

Please sign in to comment.