Skip to content

Commit 28e868e

Browse files
Adds experimental support for the additional styling tags used by the advanced PHP extension.
1 parent 6c9f985 commit 28e868e

File tree

5 files changed

+251
-3
lines changed

5 files changed

+251
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Version v0.4.0
2+
3+
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.
4+
15
## Version v0.3.1
26

37
Fixed a few 'bugs' on the explanations... the style didn't change.

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

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

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ I'm neither an employee, nor a collaborator, nor a stakeholder in either Panic I
1818

1919
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_.
2020

21+
## Special thanks
22+
23+
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.
24+
25+
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!
26+
2127
## Licenses and acknowledgements
2228

2329
For this package: [MIT License](LICENSE.md)

Themes/Nord.css

Lines changed: 239 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,27 @@ It consists of a total of sixteen, carefully selected, dimmed pastel colors for
2828
eye-comfortable, but yet colorful ambiance.
2929
*/
3030

31+
/* Reference colours from the official Nord palette (v0.2.0)
32+
:root {
33+
--nord0: #2e3440;
34+
--nord1: #3b4252;
35+
--nord2: #434c5e;
36+
--nord3: #4c566a;
37+
--nord4: #d8dee9;
38+
--nord5: #e5e9f0;
39+
--nord6: #eceff4;
40+
--nord7: #8fbcbb;
41+
--nord8: #88c0d0;
42+
--nord9: #81a1c1;
43+
--nord10: #5e81ac;
44+
--nord11: #bf616a;
45+
--nord12: #d08770;
46+
--nord13: #ebcb8b;
47+
--nord14: #a3be8c;
48+
--nord15: #b48ead;
49+
}
50+
*/
51+
3152
/*
3253
* Window styles
3354
*/
@@ -147,7 +168,7 @@ comment {
147168
font-weight: normal;
148169
}
149170
processing {
150-
color: #4b6c9e;
171+
color: #88c0d0; /* nord8 */
151172
font-weight: normal;
152173
}
153174
declaration {
@@ -190,6 +211,7 @@ value.symbol {
190211
identifier.type {
191212
color: #5e81ac; /* nord10 */
192213
text-decoration: none;
214+
font-weight: normal;
193215
}
194216
identifier.constant {
195217
color: #d08770; /* nord12 */
@@ -203,6 +225,7 @@ identifier.decorator {
203225
}
204226
identifier.property,
205227
identifier.function,
228+
identifier.core.function,
206229
identifier.method {
207230
color: #88c0d0; /* nord8 */
208231
text-decoration: none;
@@ -385,3 +408,218 @@ terminal.bright-cyan {
385408
terminal.bright-white {
386409
color: #e5e9f0; /* nord5 */
387410
}
411+
412+
/**
413+
* special support for dennisosaj's advancedPHP plugin (gwyneth 20200127)
414+
* https://extensions.panic.com/extensions/dennisosaj/dennisosaj.advancedPHP/
415+
**/
416+
417+
/* Statics */
418+
advphp.static.condition {
419+
/* if, else, elseif, foreach, ... */
420+
color: #81a1c1; /* nord9 */
421+
}
422+
advphp.static.processor {
423+
/* echo, return, print, ... */
424+
color: #88c0d0; /* nord8 */
425+
}
426+
advphp.static.declaration {
427+
/* new, public, private, ... */
428+
color: #5e81ac; /* nord10 */
429+
}
430+
advphp.static.import {
431+
/* include, require, ... */
432+
color: #75b3c7; /* nord8 */
433+
}
434+
advphp.static.constant {
435+
/* __DIR__, __METHOD__, ... */
436+
color: #d8dee9; /* nord4 */
437+
}
438+
advphp.static.wordOperator {
439+
/* AND, OR, XOR, ... */
440+
color: #81a1c1; /* nord9 */
441+
}
442+
443+
/* CURL Keywords */
444+
advphp.curl.keywords {
445+
/* CURLOPT_HEADER, CURLOPT_PROXY, ... */
446+
color: #88c0d0; /* nord8 */
447+
}
448+
449+
/* SQL Keywords */
450+
advphp.sql.keywords {
451+
/* SELECT, FROM, WHERE, ... */
452+
color: #88c0d0; /* nord8 */
453+
}
454+
455+
/* Syntax */
456+
advphp.operator {
457+
/* +, -, /, >, ... */
458+
color: #81a1c1; /* nord9 */
459+
}
460+
advphp.bracket {
461+
/* [], {}, (), "", ... */
462+
color: #4c566a; /* nord3 */
463+
}
464+
advphp.delimiter {
465+
/* , */
466+
color: #81a1c1; /* nord9 */
467+
}
468+
/* Variables */
469+
advphp.identifier.variable.prefix {
470+
/* $ */
471+
color: #d8dee9; /* nord4 */
472+
}
473+
advphp.identifier.variable.name {
474+
/* $variable */
475+
color: #d8dee9; /* nord4 */
476+
}
477+
advphp.identifier.variable.this {
478+
/* $this */
479+
color: #d8dee9; /* nord4 */
480+
}
481+
/* Functions */
482+
advphp.identifier.function.keyword {
483+
/* function */
484+
color: #81a1c1; /* nord9 */
485+
}
486+
advphp.identifier.function.name {
487+
/* my_function() */
488+
color: #88c0d0; /* nord8 */
489+
}
490+
advphp.identifier.parameter.prefix {
491+
/* my_function($parameter) {} */
492+
color: #d8dee9; /* nord4 */
493+
}
494+
advphp.identifier.parameter.name {
495+
/* my_function($parameter) {} */
496+
color: #d8dee9; /* nord4 */
497+
}
498+
/* Objects */
499+
advphp.identifier.object.name {
500+
/* Object:: */
501+
color: #8fbcbb; /* nord7 */
502+
}
503+
/* Strings */
504+
advphp.string,
505+
advphp.value.string,
506+
advphp.string.doubleQuote,
507+
advphp.string.singleQuote,
508+
advphp.string.nowdoc,
509+
advphp.string.heredoc {
510+
/* "string", 'string' */
511+
color: #a3be8c; /* nord14 */
512+
}
513+
advphp.string.backTic {
514+
/* `string` */
515+
color: #a3be8c; /* nord14 */
516+
}
517+
518+
/* The styles below are implemented in the Varia theme, so I've added some colouring for them as well (gwyneth 20200128) */
519+
520+
/* HTML */
521+
html.tag {
522+
/* < > */
523+
color: #81a1c1; /* nord9 */
524+
}
525+
html.tag.name {
526+
/* <meta> <br> */
527+
color: #8fbcbb; /* nord7 */
528+
}
529+
html.tag.attribute.name {
530+
color: #8fbcbb; /* nord7 */
531+
font-style: italic;
532+
}
533+
534+
/* XML */
535+
xml.tag {
536+
color: #81a1c1; /* nord9 */
537+
}
538+
xml.tag.name {
539+
color: #8fbcbb; /* nord7 */
540+
}
541+
xml.tag.attribute.name {
542+
color: #8fbcbb; /* nord7 */
543+
font-style: italic;
544+
}
545+
xml.tag.attribute.value {
546+
color: #a3be8c; /* nord14 */
547+
}
548+
549+
/*********************
550+
* JavaScript
551+
*********************/
552+
/* Keywords */
553+
javascript.keyword {
554+
color: #81a1c1; /* nord9 */
555+
}
556+
javascript.keyword.class {
557+
color: #81a1c1; /* nord9 */
558+
}
559+
javascript.keyword.extends {
560+
color: #81a1c1; /* nord9 */
561+
}
562+
563+
/* Identifiers */
564+
javascript.identifier.type.class.name,
565+
javascript.identifier.type.class.superclass {
566+
color: #5e81ac; /* nord10 */
567+
text-decoration: none;
568+
font-weight: normal;
569+
}
570+
javascript.identifier.method,
571+
javascript.identifier.function {
572+
color: #81a1c1; /* nord9 */
573+
}
574+
javascript.identifier.function.name {
575+
color: #88c0d0; /* nord8 */
576+
}
577+
javascript.identifier.argument.name {
578+
color: #d8dee9; /* nord4 */
579+
}
580+
javascript.identifier,
581+
javascript.identifier.name {
582+
color: #d8dee9; /* nord4 */
583+
}
584+
javascript.identifier.property {
585+
color: #a3be8c; /* nord14 */
586+
}
587+
javascript.identifier.constant {
588+
color: #d08770; /* nord12 */
589+
}
590+
javascript.identifier.core.global {
591+
color: #d8dee9; /* nord4 */
592+
}
593+
javascript.identifier.core.function {
594+
color: #88c0d0; /* nord8 */
595+
}
596+
597+
/* Values */
598+
javascript.value.null,
599+
javascript.value.boolean,
600+
javascript.value.number.hex,
601+
javascript.value.number {
602+
color: #b48ead; /* nord15 */
603+
}
604+
605+
/* Strings */
606+
javascript.string.backtick-quoted,
607+
javascript.string.double-quoted,
608+
javascript.string.single-quoted {
609+
color: #a3be8c; /* nord14 */
610+
}
611+
javascript.string.regex {
612+
color: #ebcb8b; /* nord13 */
613+
}
614+
615+
/* Operators */
616+
javascript.operator,
617+
javascript.comma,
618+
javascript.semicolon,
619+
javascript.separator {
620+
color: #81a1c1; /* nord9 */
621+
}
622+
623+
javascript.bracket {
624+
color: #4c566a; /* nord3 */
625+
}

extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Nord Theme for Nova",
44
"organization": "Gwyneth Llewelyn",
55
"description": "An implementation of Arctic Ice Studio's Nord colour scheme for Nova",
6-
"version": "0.3.1",
6+
"version": "0.4.0",
77
"bugs": "https://github.com/GwynethLlewelyn/Nord.novaextension/issues",
88
"repository": "https://github.com/GwynethLlewelyn/Nord.novaextension",
99
"homepage": "https://www.nordtheme.com/",

0 commit comments

Comments
 (0)