Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

Error to inherit from a theme

theme

Started by carlos 2 years ago · 3 replies · 141 views
2 years ago

Dear all,
Not sure if this is the right place.

I just create a new theme inherited from typhoon theme (premium).
can you please help me with the following error?

The very best.
Carlos.

Server Error

0 - Mexitek\PHPColors\Color::__construct(): Argument #1 ($hex) must be of type string, null given, called in C:\xampp\htdocs\des\user\plugins\color-tools\color-tools.php on line 65

2 years ago

Is color tools plugin a part of the Typhoon theme?

2 years ago

Thanks Karmalakas,
No idea.

best
Carlos.

1 year ago

It's in the Typhoon docs: ' If you chose to inherit from Typhoon when creating your theme, a few more steps are required for NPM to work properly.

  1. From the original Typhoon theme folder, copy the following files into your new theme's folder: package.json, vite.config.ts
  2. Create a new file css/site.css in your new theme, with the following content:
TXT
@import '../../typhoon/css/site.css';
  1. You will also be able to add your own CSS declarations and imports in this file, going forward.
  2. Finally, run the npm install command as explained in the previous section, and you are ready to continue on.
👍 1

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 195 2 months ago
Themes & Styling · by Ian, 2 months ago
3 91 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 451 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 45 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 125 3 months ago