Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c06f815

Browse files
committedMar 8, 2021
chore: initial theme
1 parent 6537991 commit c06f815

16 files changed

+3891
-872
lines changed
 

‎.eslintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@antfu"
3+
}

‎.gitattributes

-3
This file was deleted.

‎.gitignore

100644100755
+3-19
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
node_modules
2-
*.vsix
3-
*.log
4-
debug.log
5-
6-
### VisualStudioCode ###
7-
.vscode/*
8-
!.vscode/settings.json
9-
!.vscode/tasks.json
10-
!.vscode/launch.json
11-
!.vscode/extensions.json
12-
13-
### Node ###
14-
# Logs
15-
logs
16-
*.log
17-
npm-debug.log*
18-
yarn-debug.log*
19-
yarn-error.log*
1+
.DS_Store
2+
node_modules/
3+
/themes/

‎.vscode/launch.json

100644100755
+11-12
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
{
9-
"name": "Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"runtimeExecutable": "${execPath}",
13-
"args": [
14-
"--extensionDevelopmentPath=${workspaceFolder}"
15-
]
16-
}
17-
]
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"runtimeExecutable": "${execPath}",
13+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
14+
"preLaunchTask": "npm: dev"
15+
}
16+
]
1817
}

‎.vscode/tasks.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "dev",
7+
"isBackground": true,
8+
"problemMatcher": {
9+
"fileLocation": "relative",
10+
"pattern": {
11+
"regexp": "_______",
12+
"file": 1,
13+
"location": 2,
14+
"severity": 3,
15+
"code": 4,
16+
"message": 5
17+
},
18+
"background": {
19+
"activeOnStart": true,
20+
"beginsPattern": "starting",
21+
"endsPattern": "clean exit"
22+
}
23+
},
24+
"label": "npm: dev"
25+
}
26+
]
27+
}

‎.vscodeignore

100644100755
+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
.vscode/**
22
.vscode-test/**
33
.gitignore
4-
vsc-extension-quickstart.md
4+
.eslintrc
5+
/node_modules/
6+
/pnpm-lock.yaml
7+
/src/

‎LICENSE

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Primer
4+
Copyright (c) 2021 Anthony Fu
5+
Copyright (c) 2021 Loke Carlsson
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.

‎README.md

100644100755
+8-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# Angerboda
2-
_the one who brings grief!_
1+
<h1 align="center">Angrboða - VSCode Theme</h1>
32

4-
## So, what is this
3+
<p align="center">
4+
</p>
55

6-
So far, it's only a placeholder repo that might turn out to be a color theme for iTerm / Visual Studio Code!
6+
<p align="center">
7+
<img alt="Screen Shot 2021-03-08 at 12 32 54 AM" src="https://user-images.githubusercontent.com/14079937/110350535-1e4dc500-8034-11eb-931a-d6a0183ef37f.png">
8+
</p>
79

8-
### Ideas
10+
## Thanks
911

10-
Purple / pink / red
11-
Need italic for operator font
12+
This project is based on [vscode-theme-vitesse](https://github.com/antfu/vscode-theme-vitesse).

‎logo.png

30.7 KB
Loading

‎package.json

100644100755
+40-25
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,42 @@
11
{
2-
"name": "angerboda",
3-
"displayName": "Angerboda",
4-
"description": "A purple-red-pinkish theme",
5-
"version": "0.0.1",
6-
"publisher": "lokecarlsson",
7-
"keywords": [
8-
"vs-code",
9-
"theme",
10-
"angerboda"
11-
],
12-
"engines": {
13-
"vscode": "^1.24.0"
14-
},
15-
"categories": [
16-
"Themes"
17-
],
18-
"contributes": {
19-
"themes": [
20-
{
21-
"label": "Angerboda",
22-
"uiTheme": "vs-dark",
23-
"path": "./themes/Angerboda-color-theme.json"
24-
}
25-
]
26-
}
2+
"name": "angrboda",
3+
"version": "0.0.1",
4+
"categories": [
5+
"Themes"
6+
],
7+
"license": "MIT",
8+
"scripts": {
9+
"build": "esno src/index.ts",
10+
"dev": "nodemon --watch src -e ts --exec \"esno src/index.ts\"",
11+
"vscode:prepublish": "npm run build",
12+
"release": "npx bumpp --commit --tag --push && vsce publish"
13+
},
14+
"contributes": {
15+
"themes": [
16+
{
17+
"label": "Angrboda Light",
18+
"uiTheme": "vs",
19+
"path": "./themes/light.json"
20+
},
21+
{
22+
"label": "Angrboda Dark",
23+
"uiTheme": "vs-dark",
24+
"path": "./themes/dark.json"
25+
}
26+
]
27+
},
28+
"devDependencies": {
29+
"@antfu/eslint-config": "^0.4.3",
30+
"@types/color": "^3.0.1",
31+
"color": "^3.1.2",
32+
"eslint": "^7.21.0",
33+
"esno": "^0.4.6",
34+
"nodemon": "^2.0.3",
35+
"tsup": "^4.6.1",
36+
"typescript": "^4.2.3"
37+
},
38+
"engines": {
39+
"vscode": "^1.43.0"
40+
},
41+
"icon": "https://user-images.githubusercontent.com/14079937/110350492-10983f80-8034-11eb-92dd-a1e069ade855.png"
2742
}

‎src/colors.ts

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
export const colors = {
2+
black: '#111',
3+
white: '#fff',
4+
gray: ['#fafbfc', '#f6f8fa', '#e1e4e8', '#d1d5da', '#959da5', '#6a737d', '#586069', '#444d56', '#2f363d', '#24292e'],
5+
blue: ['#f1f8ff', '#dbedff', '#c8e1ff', '#79b8ff', '#2188ff', '#0366d6', '#005cc5', '#044289', '#032f62', '#05264c'],
6+
green: ['#f0fff4', '#dcffe4', '#bef5cb', '#85e89d', '#34d058', '#28a745', '#22863a', '#176f2c', '#165c26', '#144620'],
7+
yellow: ['#fffdef', '#fffbdd', '#fff5b1', '#ffea7f', '#ffdf5d', '#ffd33d', '#f9c513', '#dbab09', '#b08800', '#735c0f'],
8+
orange: ['#fff8f2', '#ffebda', '#ffd1ac', '#ffab70', '#fb8532', '#f66a0a', '#e36209', '#d15704', '#c24e00', '#a04100'],
9+
red: ['#ffeef0', '#ffdce0', '#fdaeb7', '#f97583', '#ea4a5a', '#d73a49', '#cb2431', '#b31d28', '#9e1c23', '#86181d'],
10+
purple: ['#f5f0ff', '#e6dcfd', '#d1bcf9', '#b392f0', '#8a63d2', '#6f42c1', '#5a32a3', '#4c2889', '#3a1d6e', '#29134e'],
11+
pink: ['#ffeef8', '#fedbf0', '#f9b3dd', '#f692ce', '#ec6cb9', '#ea4aaa', '#d03592', '#b93a86', '#99306f', '#6d224f'],
12+
}
13+
14+
// [dark, light]
15+
export const AngrbodaThemes = {
16+
primary: ['#ff5c5c', '#9d1d1d'],
17+
18+
foreground: ['#e0d7e9', '#393a34'],
19+
activeForeground: ['#e0d7e9', '#4e4f47'],
20+
secondaryForeground: ['#dedcd590', '#393a3490'],
21+
ignored: ['#b08cf3', '#745e9e'],
22+
border: ['#202020', '#f0f0f0'],
23+
background: ['#202020', '#f0f0f0'],
24+
activeBackground: ['#202020', '#e0e0e0'],
25+
26+
comment: ['#5f535f', '#5f535f'],
27+
string: ['#ff5c5c', '#9d1d1d'],
28+
literal: ['#ee63e2', '#8f008f'],
29+
variable: ['#b08cf3', '#745e9e'],
30+
keyword: ['#ee63e2', '#8f008f'],
31+
number: ['#b08cf3', '#745e9e'],
32+
boolean: ['#ee63e2', '#8f008f'],
33+
function: ['#e0d7e9', '#393a34'],
34+
constant: ['#b08cf3', '#745e9e'],
35+
class: ['#f4d7e5', '#393a34'],
36+
interface: ['#b08cf3', '#745e9e'],
37+
builtin: ['#ff5c5c', '#bd1d1d'],
38+
property: ['#ee63e2', '#8f008f'],
39+
namespace: ['#b08cf3', '#745e9e'],
40+
punctuation: ['#5c5157', '#5c5157'],
41+
decorator: ['#b08cf3', '#745e9e'],
42+
regex: ['#ff5c5c', '#bd1d1d'],
43+
44+
// colors
45+
green: ['#4d9375', '#28a745'],
46+
cyan: ['#24b1bf', '#147764'],
47+
blue: ['#79b8ff', '#0366d6'],
48+
red: ['#ea4a5a', '#e33141'],
49+
orange: ['#fb8532', '#d15704'],
50+
yellow: ['#ffd33d', '#dbab09'],
51+
magenta: ['#ea4aaa', '#b93a86'],
52+
}

‎src/index.ts

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { promises as fs } from 'fs'
2+
import getTheme from './theme'
3+
4+
const lightTheme = getTheme({
5+
style: 'light',
6+
name: 'Vitesse Light',
7+
})
8+
9+
const darkTheme = getTheme({
10+
style: 'dark',
11+
name: 'Vitesse Dark',
12+
})
13+
14+
fs.mkdir('./themes', { recursive: true })
15+
.then(() => Promise.all([
16+
fs.writeFile('./themes/light.json', JSON.stringify(lightTheme, null, 2)),
17+
fs.writeFile('./themes/dark.json', JSON.stringify(darkTheme, null, 2)),
18+
]))
19+
.catch(() => process.exit(1))

‎src/primer.ts

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { colors } from './colors'
2+
3+
export function getColors(style) {
4+
if (style === 'dark') {
5+
/* The array of light to dark colors are reversed to auto-generate dark theme */
6+
const darkColors: any = {}
7+
Object.entries(colors).forEach(([name, val]) => {
8+
if (name === 'black')
9+
darkColors.white = val
10+
11+
else if (name === 'white')
12+
darkColors.black = val
13+
14+
else
15+
darkColors[name] = [...val].reverse()
16+
})
17+
return darkColors
18+
}
19+
else {
20+
return colors
21+
}
22+
}

‎src/theme.ts

+610
Large diffs are not rendered by default.

‎themes/Angerboda-color-theme.json

-805
This file was deleted.

‎yarn.lock

+3,069
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.