Skip to content

Commit

Permalink
Adds experimental support for the additional styling tags used by the…
Browse files Browse the repository at this point in the history
… `advanced PHP` extension.
  • Loading branch information
GwynethLlewelyn committed Jan 28, 2021
1 parent 6c9f985 commit 28e868e
Show file tree
Hide file tree
Showing 5 changed files with 251 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Version v0.4.0

Adds experimental support for the additional styling tags used by the `advanced PHP` extension. Thanks to [Dennis Osaj](https://extensions.panic.com/extensions/dennisosaj/dennisosaj.advancedPHP/) for the encouragement to support these as well.

## Version v0.3.1

Fixed a few 'bugs' on the explanations... the style didn't change.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright (c) 2020 Gwyneth Llewelyn, Panic Inc., Arctic Ice Studio
Copyright (c) 2020-2021 Gwyneth Llewelyn, Panic Inc., Arctic Ice Studio

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ I'm neither an employee, nor a collaborator, nor a stakeholder in either Panic I

Please take into account that I hardly know what I'm doing. Hope it works for you. This is being released for the sole purpose of testing how designing themes for Nova work; no infringements are intended; also, I might be tweaking this theme frequently, as I start figuring out how the colour assignments actually work; thus, _caveat utilitor_.

## Special thanks

Thanks to [Dennis Osaj](https://github.com/dennisosaj), designer of the wonderful [advanced PHP extension](https://extensions.panic.com/extensions/dennisosaj/dennisosaj.advancedPHP/) as well as the [Varia theme](https://extensions.panic.com/extensions/dennisosaj/dennisosaj.VariaTheme/), who pointed out that I should add a few more styling classes to deal with the specificities of `advanced PHP` — as well as XML, HTML and JavaScript, which are better supported by the Varia Theme.

This version of the `Nord theme for Nova` is adding experimental support for `advanced PHP`, but be advised that things may still be broken or not display properly... I'm still learning about all these things!

## Licenses and acknowledgements

For this package: [MIT License](LICENSE.md)
Expand Down
240 changes: 239 additions & 1 deletion Themes/Nord.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,27 @@ It consists of a total of sixteen, carefully selected, dimmed pastel colors for
eye-comfortable, but yet colorful ambiance.
*/

/* Reference colours from the official Nord palette (v0.2.0)
:root {
--nord0: #2e3440;
--nord1: #3b4252;
--nord2: #434c5e;
--nord3: #4c566a;
--nord4: #d8dee9;
--nord5: #e5e9f0;
--nord6: #eceff4;
--nord7: #8fbcbb;
--nord8: #88c0d0;
--nord9: #81a1c1;
--nord10: #5e81ac;
--nord11: #bf616a;
--nord12: #d08770;
--nord13: #ebcb8b;
--nord14: #a3be8c;
--nord15: #b48ead;
}
*/

/*
* Window styles
*/
Expand Down Expand Up @@ -147,7 +168,7 @@ comment {
font-weight: normal;
}
processing {
color: #4b6c9e;
color: #88c0d0; /* nord8 */
font-weight: normal;
}
declaration {
Expand Down Expand Up @@ -190,6 +211,7 @@ value.symbol {
identifier.type {
color: #5e81ac; /* nord10 */
text-decoration: none;
font-weight: normal;
}
identifier.constant {
color: #d08770; /* nord12 */
Expand All @@ -203,6 +225,7 @@ identifier.decorator {
}
identifier.property,
identifier.function,
identifier.core.function,
identifier.method {
color: #88c0d0; /* nord8 */
text-decoration: none;
Expand Down Expand Up @@ -385,3 +408,218 @@ terminal.bright-cyan {
terminal.bright-white {
color: #e5e9f0; /* nord5 */
}

/**
* special support for dennisosaj's advancedPHP plugin (gwyneth 20200127)
* https://extensions.panic.com/extensions/dennisosaj/dennisosaj.advancedPHP/
**/

/* Statics */
advphp.static.condition {
/* if, else, elseif, foreach, ... */
color: #81a1c1; /* nord9 */
}
advphp.static.processor {
/* echo, return, print, ... */
color: #88c0d0; /* nord8 */
}
advphp.static.declaration {
/* new, public, private, ... */
color: #5e81ac; /* nord10 */
}
advphp.static.import {
/* include, require, ... */
color: #75b3c7; /* nord8 */
}
advphp.static.constant {
/* __DIR__, __METHOD__, ... */
color: #d8dee9; /* nord4 */
}
advphp.static.wordOperator {
/* AND, OR, XOR, ... */
color: #81a1c1; /* nord9 */
}

/* CURL Keywords */
advphp.curl.keywords {
/* CURLOPT_HEADER, CURLOPT_PROXY, ... */
color: #88c0d0; /* nord8 */
}

/* SQL Keywords */
advphp.sql.keywords {
/* SELECT, FROM, WHERE, ... */
color: #88c0d0; /* nord8 */
}

/* Syntax */
advphp.operator {
/* +, -, /, >, ... */
color: #81a1c1; /* nord9 */
}
advphp.bracket {
/* [], {}, (), "", ... */
color: #4c566a; /* nord3 */
}
advphp.delimiter {
/* , */
color: #81a1c1; /* nord9 */
}
/* Variables */
advphp.identifier.variable.prefix {
/* $ */
color: #d8dee9; /* nord4 */
}
advphp.identifier.variable.name {
/* $variable */
color: #d8dee9; /* nord4 */
}
advphp.identifier.variable.this {
/* $this */
color: #d8dee9; /* nord4 */
}
/* Functions */
advphp.identifier.function.keyword {
/* function */
color: #81a1c1; /* nord9 */
}
advphp.identifier.function.name {
/* my_function() */
color: #88c0d0; /* nord8 */
}
advphp.identifier.parameter.prefix {
/* my_function($parameter) {} */
color: #d8dee9; /* nord4 */
}
advphp.identifier.parameter.name {
/* my_function($parameter) {} */
color: #d8dee9; /* nord4 */
}
/* Objects */
advphp.identifier.object.name {
/* Object:: */
color: #8fbcbb; /* nord7 */
}
/* Strings */
advphp.string,
advphp.value.string,
advphp.string.doubleQuote,
advphp.string.singleQuote,
advphp.string.nowdoc,
advphp.string.heredoc {
/* "string", 'string' */
color: #a3be8c; /* nord14 */
}
advphp.string.backTic {
/* `string` */
color: #a3be8c; /* nord14 */
}

/* The styles below are implemented in the Varia theme, so I've added some colouring for them as well (gwyneth 20200128) */

/* HTML */
html.tag {
/* < > */
color: #81a1c1; /* nord9 */
}
html.tag.name {
/* <meta> <br> */
color: #8fbcbb; /* nord7 */
}
html.tag.attribute.name {
color: #8fbcbb; /* nord7 */
font-style: italic;
}

/* XML */
xml.tag {
color: #81a1c1; /* nord9 */
}
xml.tag.name {
color: #8fbcbb; /* nord7 */
}
xml.tag.attribute.name {
color: #8fbcbb; /* nord7 */
font-style: italic;
}
xml.tag.attribute.value {
color: #a3be8c; /* nord14 */
}

/*********************
* JavaScript
*********************/
/* Keywords */
javascript.keyword {
color: #81a1c1; /* nord9 */
}
javascript.keyword.class {
color: #81a1c1; /* nord9 */
}
javascript.keyword.extends {
color: #81a1c1; /* nord9 */
}

/* Identifiers */
javascript.identifier.type.class.name,
javascript.identifier.type.class.superclass {
color: #5e81ac; /* nord10 */
text-decoration: none;
font-weight: normal;
}
javascript.identifier.method,
javascript.identifier.function {
color: #81a1c1; /* nord9 */
}
javascript.identifier.function.name {
color: #88c0d0; /* nord8 */
}
javascript.identifier.argument.name {
color: #d8dee9; /* nord4 */
}
javascript.identifier,
javascript.identifier.name {
color: #d8dee9; /* nord4 */
}
javascript.identifier.property {
color: #a3be8c; /* nord14 */
}
javascript.identifier.constant {
color: #d08770; /* nord12 */
}
javascript.identifier.core.global {
color: #d8dee9; /* nord4 */
}
javascript.identifier.core.function {
color: #88c0d0; /* nord8 */
}

/* Values */
javascript.value.null,
javascript.value.boolean,
javascript.value.number.hex,
javascript.value.number {
color: #b48ead; /* nord15 */
}

/* Strings */
javascript.string.backtick-quoted,
javascript.string.double-quoted,
javascript.string.single-quoted {
color: #a3be8c; /* nord14 */
}
javascript.string.regex {
color: #ebcb8b; /* nord13 */
}

/* Operators */
javascript.operator,
javascript.comma,
javascript.semicolon,
javascript.separator {
color: #81a1c1; /* nord9 */
}

javascript.bracket {
color: #4c566a; /* nord3 */
}
2 changes: 1 addition & 1 deletion extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Nord Theme for Nova",
"organization": "Gwyneth Llewelyn",
"description": "An implementation of Arctic Ice Studio's Nord colour scheme for Nova",
"version": "0.3.1",
"version": "0.4.0",
"bugs": "https://github.com/GwynethLlewelyn/Nord.novaextension/issues",
"repository": "https://github.com/GwynethLlewelyn/Nord.novaextension",
"homepage": "https://www.nordtheme.com/",
Expand Down

0 comments on commit 28e868e

Please sign in to comment.