-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from Tedoshiii/teodor-create-color-theme
Create custom color themes for website code snippets
- Loading branch information
Showing
9 changed files
with
280 additions
and
3 deletions.
There are no files selected for viewing
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 @@ | ||
# Website Code Syntax Highlighting Theme | ||
|
||
This document outlines the syntax highlighting theme used for code snippets in the website. Colors are picked out to complement website color style. | ||
|
||
## Color Assignments - Light Mode | ||
|
||
| Color Preview | Element | Color Value | | ||
|---------------|---------------------|--------------| | ||
|| Plain Text | `#393A34` | | ||
|| Background Color | `#f6f8fa` | | ||
|| Comment, prolog, doctype, cdata | `#999988` | | ||
|| String, attr-value | `#ED7D31` | | ||
|| Punctuation, operator | `#06417C` | | ||
|| Entity, url, symbol, number, boolean, variable, constant, property, regex, inserted | `#3C87CD` | | ||
|| Atrule, keyword, attr-name, selector | `#00a4db` | | ||
|| Function, deleted, tag | `#d73a49` | | ||
|| Function-variable | `#6f42c1` | | ||
|| Tag, selector, keyword | `#00009f` | | ||
|
||
## Color Assignments - Dark Mode | ||
|
||
| Color Preview | Element | Color Value | | ||
|---------------|---------------------|--------------| | ||
|| Plain Text | `#393A34` | | ||
|| Background Color | `#f6f8fa` | | ||
|| Comment, prolog, doctype, cdata | `#999988` | | ||
|| String, attr-value | `#ED7D31` | | ||
|| Punctuation, operator | `#06417C` | | ||
|| Entity, url, symbol, number, boolean, variable, constant, property, regex, inserted | `#3C87CD` | | ||
|| Atrule, keyword, attr-name, selector | `#00a4db` | | ||
|| Function, deleted, tag | `#d73a49` | | ||
|| Function-variable | `#6f42c1` | | ||
|| Tag, selector, keyword | `#00009f` | |
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
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
59 changes: 59 additions & 0 deletions
59
Tutorials/whatiswot/website/src/theme/wotDark/index.cjs.js
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,59 @@ | ||
'use strict'; | ||
|
||
var theme = { | ||
plain: { | ||
color: "#F8F8F2", | ||
backgroundColor: "#282A36" | ||
}, | ||
styles: [{ | ||
types: ["comment", "prolog", "doctype", "cdata"], | ||
style: { | ||
color: "#999988", | ||
fontStyle: "italic" | ||
} | ||
}, { | ||
types: ["namespace"], | ||
style: { | ||
opacity: 0.7 | ||
} | ||
}, { | ||
types: ["string", "attr-value"], | ||
style: { | ||
color: "#ED7D31" | ||
} | ||
}, { | ||
types: ["punctuation", "operator"], | ||
style: { | ||
color: "#AFCBE0" | ||
} | ||
}, { | ||
types: ["entity", "url", "symbol", "number", "boolean", "variable", "constant", "property", "regex", "inserted"], | ||
style: { | ||
color: "#70ACE5" | ||
} | ||
}, { | ||
types: ["atrule", "keyword", "attr-name", "selector"], | ||
style: { | ||
color: "#00a4db" | ||
} | ||
}, { | ||
types: ["function", "deleted", "tag"], | ||
style: { | ||
color: "#d73a49" | ||
} | ||
}, { | ||
types: ["function-variable"], | ||
style: { | ||
color: "#6f42c1" | ||
} | ||
}, { | ||
types: ["tag", "selector", "keyword"], | ||
style: { | ||
color: "#ECBF7C" | ||
} | ||
}] | ||
}; | ||
|
||
module.exports = theme; | ||
|
||
|
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,56 @@ | ||
var theme = { | ||
plain: { | ||
color: "#F8F8F2", | ||
backgroundColor: "#282A36" | ||
}, | ||
styles: [{ | ||
types: ["comment", "prolog", "doctype", "cdata"], | ||
style: { | ||
color: "#999988", | ||
fontStyle: "italic" | ||
} | ||
}, { | ||
types: ["namespace"], | ||
style: { | ||
opacity: 0.7 | ||
} | ||
}, { | ||
types: ["string", "attr-value"], | ||
style: { | ||
color: "#ED7D31" | ||
} | ||
}, { | ||
types: ["punctuation", "operator"], | ||
style: { | ||
color: "#AFCBE0" | ||
} | ||
}, { | ||
types: ["entity", "url", "symbol", "number", "boolean", "variable", "constant", "property", "regex", "inserted"], | ||
style: { | ||
color: "#70ACE5" | ||
} | ||
}, { | ||
types: ["atrule", "keyword", "attr-name", "selector"], | ||
style: { | ||
color: "#00a4db" | ||
} | ||
}, { | ||
types: ["function", "deleted", "tag"], | ||
style: { | ||
color: "#d73a49" | ||
} | ||
}, { | ||
types: ["function-variable"], | ||
style: { | ||
color: "#6f42c1" | ||
} | ||
}, { | ||
types: ["tag", "selector", "keyword"], | ||
style: { | ||
color: "#ECBF7C" | ||
} | ||
}] | ||
}; | ||
|
||
export default theme; | ||
|
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,7 @@ | ||
{ | ||
"name": "theme/wotDark", | ||
"private": true, | ||
"sideEffects": false, | ||
"main": "index.cjs.js", | ||
"module": "index.js" | ||
} |
59 changes: 59 additions & 0 deletions
59
Tutorials/whatiswot/website/src/theme/wotLight/index.cjs.js
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,59 @@ | ||
'use strict'; | ||
|
||
var theme = { | ||
plain: { | ||
color: "#393A34", | ||
backgroundColor: "#f6f8fa" | ||
}, | ||
styles: [{ | ||
types: ["comment", "prolog", "doctype", "cdata"], | ||
style: { | ||
color: "#999988", | ||
fontStyle: "italic" | ||
} | ||
}, { | ||
types: ["namespace"], | ||
style: { | ||
opacity: 0.7 | ||
} | ||
}, { | ||
types: ["string", "attr-value"], | ||
style: { | ||
color: "#ED7D31" | ||
} | ||
}, { | ||
types: ["punctuation", "operator"], | ||
style: { | ||
color: "#06417C" | ||
} | ||
}, { | ||
types: ["entity", "url", "symbol", "number", "boolean", "variable", "constant", "property", "regex", "inserted"], | ||
style: { | ||
color: "#3C87CD" | ||
} | ||
}, { | ||
types: ["atrule", "keyword", "attr-name", "selector"], | ||
style: { | ||
color: "#00a4db" | ||
} | ||
}, { | ||
types: ["function", "deleted", "tag"], | ||
style: { | ||
color: "#d73a49" | ||
} | ||
}, { | ||
types: ["function-variable"], | ||
style: { | ||
color: "#6f42c1" | ||
} | ||
}, { | ||
types: ["tag", "selector", "keyword"], | ||
style: { | ||
color: "#00009f" | ||
} | ||
}] | ||
}; | ||
|
||
module.exports = theme; | ||
|
||
|
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,56 @@ | ||
var theme = { | ||
plain: { | ||
color: "#393A34", | ||
backgroundColor: "#f6f8fa" | ||
}, | ||
styles: [{ | ||
types: ["comment", "prolog", "doctype", "cdata"], | ||
style: { | ||
color: "#999988", | ||
fontStyle: "italic" | ||
} | ||
}, { | ||
types: ["namespace"], | ||
style: { | ||
opacity: 0.7 | ||
} | ||
}, { | ||
types: ["string", "attr-value"], | ||
style: { | ||
color: "#ED7D31" | ||
} | ||
}, { | ||
types: ["punctuation", "operator"], | ||
style: { | ||
color: "#06417C" | ||
} | ||
}, { | ||
types: ["entity", "url", "symbol", "number", "boolean", "variable", "constant", "property", "regex", "inserted"], | ||
style: { | ||
color: "#3C87CD" | ||
} | ||
}, { | ||
types: ["atrule", "keyword", "attr-name", "selector"], | ||
style: { | ||
color: "#00a4db" | ||
} | ||
}, { | ||
types: ["function", "deleted", "tag"], | ||
style: { | ||
color: "#d73a49" | ||
} | ||
}, { | ||
types: ["function-variable"], | ||
style: { | ||
color: "#6f42c1" | ||
} | ||
}, { | ||
types: ["tag", "selector", "keyword"], | ||
style: { | ||
color: "#00009f" | ||
} | ||
}] | ||
}; | ||
|
||
export default theme; | ||
|
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,7 @@ | ||
{ | ||
"name": "theme/wotLight", | ||
"private": true, | ||
"sideEffects": false, | ||
"main": "index.cjs.js", | ||
"module": "index.js" | ||
} |