-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1d00033
Showing
29 changed files
with
771 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# 🤝🏻 Contributors | ||
|
||
> "We learn big things from small experiences" - **Bram Stoker** | ||
Dracula Theme is an open-source project driven by and for the community. Most apps that support the theme are contributions from our community. | ||
|
||
As much as the team is responsible for the core theme and wants to support all available applications, we can only do some of it ourselves. | ||
|
||
That's why the community is essential for this project to keep evolving. Below are some tips for you, contributor. | ||
|
||
## 🎃 Recommendations | ||
|
||
⚡ This template-repo is organized for easy use: | ||
|
||
- [`README.md`](README.md): Introduction and guide for GitHub users; | ||
- [`screenshot.png`](screenshot.png): Displays your Dracula-themed theme on the website 😅; | ||
- [`INSTALL.md`](INSTALL.md): Installation instructions to display on the website; | ||
- [`sample`](/sample/): Code samples in various languages to aid theme creation. (_Consider removing this folder before submission._) | ||
|
||
Previously, default formatting settings were included. Now, we recommend preparing your theme with this command: | ||
|
||
```bash | ||
npx prettier . --write | ||
``` | ||
|
||
> What is that `npx` thing? `npx` ships with `npm` and lets you run locally installed tools. | ||
## 🦉 The Dracula Theme Team | ||
|
||
The creators behind the scenes are just me, [Lucas de França](https://github.com/luxonauta), and [Zeno Rocha](https://github.com/zenorocha). 😅 | ||
|
||
Reach out via [email](mailto:[email protected]) or follow us on Twitter/X: [Zeno Rocha](https://twitter.com/zenorocha) & [Luxonauta (Lucas)](https://twitter.com/luxonauta). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
### [Foobar](https://foobar.com) | ||
|
||
#### Install using Git | ||
|
||
If you are a git user, you can install the theme and keep up to date by cloning the repo: | ||
|
||
```bash | ||
git clone https://github.com/dracula/foobar.git | ||
``` | ||
|
||
#### Install manually | ||
|
||
Download using the [GitHub `.zip` download](https://github.com/dracula/foobar/archive/main.zip) option and unzip them. | ||
|
||
#### Activating theme | ||
|
||
1. Do this; | ||
2. Then that; | ||
3. Boom! It's working ✨ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Dracula Theme | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Dracula for [Foobar](https://foobar.com) | ||
|
||
> A dark theme for [Foobar](https://foobar.com). | ||
![Screenshot](./screenshot.png) | ||
|
||
## Install | ||
|
||
All instructions can be found at [draculatheme.com/foobar](https://draculatheme.com/foobar). | ||
|
||
## Team | ||
|
||
This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/foobar/graphs/contributors). | ||
|
||
| [![Zeno Rocha](https://github.com/zenorocha.png?size=100)](https://github.com/zenorocha) | [![Lucas de França](https://github.com/luxonauta.png?size=100)](https://github.com/luxonauta) | | ||
| ---------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | ||
| [Zeno Rocha](https://github.com/zenorocha) | [Lucas de França](https://github.com/luxonauta) | | ||
|
||
## Community | ||
|
||
- [Twitter](https://twitter.com/draculatheme) - Best for getting updates about themes and new stuff. | ||
- [GitHub](https://github.com/dracula/dracula-theme/discussions) - Best for asking questions and discussing issues. | ||
- [Discord](https://draculatheme.com/discord-invite) - Best for hanging out with the community. | ||
|
||
## Dracula PRO | ||
|
||
[![Dracula PRO](./.github/dracula-pro.png)](https://draculatheme.com/pro) | ||
|
||
## License | ||
|
||
[MIT License](./LICENSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Dracula | ||
spec: # https://spec.draculatheme.com | ||
# Base https://draculatheme.com/contribute#color-palette | ||
background: &BACKGROUND "#282A36" | ||
foreground: &FOREGROUND "#F8F8F2" # 07 | ||
selection: &SELECTION "#44475A" | ||
comment: &COMMENT "#6272A4" | ||
cyan: &CYAN "#8BE9FD" # 06 | ||
green: &GREEN "#50FA7B" # 02 | ||
orange: &ORANGE "#FFB86C" | ||
pink: &PINK "#FF79C6" | ||
purple: &PURPLE "#BD93F9" | ||
red: &RED "#F55" # 01 | ||
yellow: &YELLOW "#F1FA8C" # 03 | ||
|
||
# ANSI 0–15 https://spec.draculatheme.com#sec-ANSI | ||
black: &BLACK "#21222C" # 00 | ||
blue: &BLUE "#BD93F9" # 04 | ||
magenta: &MAGENTA "#FF79C6" # 05 | ||
bright_black: &BRIGHT_BLACK "#6272A4" # 08 | ||
bright_red: &BRIGHT_RED "#FF6E6E" # 09 | ||
bright_green: &BRIGHT_GREEN "#69FF94" # 10 | ||
bright_yellow: &BRIGHT_YELLOW "#FFFFA5" # 11 | ||
bright_blue: &BRIGHT_BLUE "#D6ACFF" # 12 | ||
bright_magenta: &BRIGHT_MAGENTA "#FF92DF" # 13 | ||
bright_cyan: &BRIGHT_CYAN "#A4FFFF" # 14 | ||
bright_white: &BRIGHT_WHITE "#FFF" # 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Sample | ||
|
||
In order to improve the quality of our screenshots, we created this folder with standardized code snippets. | ||
|
||
## Instructions | ||
|
||
After you're done taking a screenshot, feel free to delete this `sample` folder. | ||
|
||
## Why this is cool? | ||
|
||
- It contains examples of string, number, and array | ||
- It contains examples of single line and multi-line comments | ||
- It contains examples of inheritance and functions | ||
- It's simple, funny, and silly :) | ||
|
||
## Is there a programming language missing? | ||
|
||
Feel free to send a pull request. This will help new theme authors to create awesome screenshots. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include <stdlib.h> | ||
|
||
struct Vampire { | ||
char *location; | ||
int birthday; | ||
int deathdate; | ||
char *weaknesses[2]; | ||
}; | ||
|
||
int _calcAge(struct Vampire *v) { return v->deathdate - v->birthday; } | ||
|
||
int get_age(struct Vampire *v) { return _calcAge(v); } | ||
|
||
int main() { | ||
struct Vampire v; | ||
|
||
/* There was a guy named Vlad */ | ||
v.location = malloc(12 * sizeof(char)); | ||
v.location = "Transylvania"; | ||
v.birthday = 1428; | ||
v.deathdate = 1476; | ||
v.weaknesses[0] = "Sunlight"; | ||
v.weaknesses[1] = "Garlic"; | ||
|
||
get_age(&v); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#include <string> | ||
#include <vector> | ||
|
||
/* | ||
* Once upon a time... | ||
*/ | ||
|
||
class Vampire { | ||
public: | ||
Vampire(std::string location, int birth_date, int death_date, | ||
std::vector<std::string> weaknesses) | ||
: _location{location}, | ||
_birth_date{birth_date}, | ||
_death_date{death_date}, | ||
_weaknesses{weaknesses} {} | ||
|
||
int age() { return calc_age(); } | ||
|
||
private: | ||
std::string _location; | ||
int _birth_date; | ||
int _death_date; | ||
std::vector<std::string> _weaknesses; | ||
|
||
int calc_age() { return _death_date - _birth_date; } | ||
}; | ||
|
||
// ...there was a guy named Vlad | ||
|
||
int main() { | ||
std::string location = "Transylvania"; | ||
int birth_date = 1428, death_date = 1476; | ||
std::vector<std::string> weaknesses { "Sunlight", "Garlic" }; | ||
|
||
Vampire dracula{location, birth_date, death_date, weaknesses}; | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(comment | ||
"Once upon a time...") | ||
|
||
(ns clj-dracula) | ||
|
||
(defstruct dracula :location :birth-date :death-date :weaknesses) | ||
|
||
(defn age | ||
[vamp] (- (vamp :death-date) (vamp :birth-date))) | ||
|
||
;;...there was a guy named Vlad | ||
(let [d (struct dracula "Transylvania" 1428 1476 '("Sunlight", "Garlic"))] | ||
(println (age d))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Once upon a time... | ||
*/ | ||
|
||
public class Vampire | ||
{ | ||
public string Location { get; private set; } | ||
public int BirthDate { get; private set; } | ||
public int DeathDate { get; private set; } | ||
public string[] Weaknesses { get; private set; } | ||
|
||
public Vampire(string location, int birthDate, int deathDate, string[] weaknesses) | ||
{ | ||
Location = location; | ||
BirthDate = birthDate; | ||
DeathDate = deathDate; | ||
Weaknesses = weaknesses; | ||
} | ||
|
||
public int Age() | ||
{ | ||
return calcAge(); | ||
} | ||
|
||
private int calcAge() | ||
{ | ||
return DeathDate - BirthDate; | ||
} | ||
} | ||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
// ...there was a guy named Vlad | ||
|
||
var vampire = new Vampire( | ||
"Transylvania", | ||
1428, | ||
1476, | ||
new string[] { "Sunlight", "Garlic" } | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Once upon a time... | ||
*/ | ||
|
||
:root { | ||
--birthDate: 1428px; | ||
--deathDate: 1476px; | ||
} | ||
|
||
body { | ||
background: #000; | ||
} | ||
|
||
/* ...there was a guy named Vlad */ | ||
|
||
#dracula { | ||
opacity: 0; | ||
display: none; | ||
visibility: hidden; | ||
font-family: "Transylvania"; | ||
height: calc(var(--deathDate) - var(--birthDate)); | ||
} | ||
|
||
.cape { | ||
background: #ff0000 !important; | ||
} | ||
|
||
@font-face { | ||
font-family: "Transylvania"; | ||
src: url("/location/Transylvania.woff2") format("woff2"); | ||
font-weight: 700; | ||
font-style: normal; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Once upon a time... | ||
*/ | ||
|
||
class Vampire { | ||
String location; | ||
int birthDate, deathDate; | ||
List<String> weaknesses; | ||
|
||
Vampire({this.location, this.birthDate, this.deathDate, this.weaknesses}); | ||
|
||
int get age => this.calcAge(); | ||
|
||
int calcAge() => this.deathDate - this.birthDate; | ||
} | ||
|
||
void main() { | ||
// ...there was a guy named Vlad | ||
final Dracula = Vampire( | ||
location: 'Transylvania', | ||
birthDate: 1428, | ||
deathDate: 1476, | ||
weaknesses: ['Sunlight', 'Garlic']); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
defmodule Vampire do | ||
@moduledoc """ | ||
Once upon a time... | ||
""" | ||
|
||
defstruct [:location, :birth_date, :death_date, :weaknesses] | ||
|
||
def new(props) do | ||
%__MODULE__{ | ||
location: props[:location], | ||
birth_date: props[:birth_date], | ||
death_date: props[:death_date], | ||
weaknesses: props[:weaknesses] | ||
} | ||
end | ||
|
||
def age(vampire) do | ||
calc_age(vampire) | ||
end | ||
|
||
defp calc_age(vampire) do | ||
vampire.death_date - vampire.birth_date | ||
end | ||
end | ||
|
||
# ...there was a guy named Vlad | ||
|
||
dracula = Vampire.new( | ||
location: "Transylvania", | ||
birthDate: 1428, | ||
deathDate: 1476, | ||
weaknesses: ["Sunlight", "Garlic"] | ||
) |
Oops, something went wrong.