Store Color Settings for Hyvä for Magento 2
- Compatibility
- 2.4.9, 2.4.8, 2.4.7, 2.4.6, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0
- Hyvä theme
- Hyvä compatible
Description / Store Color Settings for Hyvä for Magento 2
MAGENTO 2 · PALETTES · DRAFTS · PUBLISHING
Match supported Hyvä colors to your brand.
Kowal Hyvä Colors
Choose a ready-made palette or create your own color set. Saving a draft and publishing are separate actions, while the history lets you restore an earlier set for the selected Store View.
Seven palettes · Static CSS · Publication history
HOW IT WORKS IN PRACTICE
01 · Choose a palette or draft
Use ready-made sets or edit supported elements.
02 · Publish for a Store View
The queue creates a snapshot and generates versioned CSS.
03 · Control the result and history
Check the status, appearance, and option to restore the previous version.
What does your store gain?
Explore the module features, use cases, and settings.
Hyvä colors under control
Kowal Hyvä Colors organizes color management for supported store elements: header, buttons, text, icons, and borders. Build brand-consistent sets, save drafts, and publish with confidence.
Ready-made palettes
Seven palettes: blue, green, purple, orange, graphite, black, and light/white — or an empty configuration.
Store View
Publish the appearance for a specific view. Clone sets and move configurations through JSON import and export.
Change control
A draft does not change the storefront. Publication history lets you return to an earlier completed version.
Why it is worth it
- consistent management of supported colors and interaction states,
- custom elements and sections for users familiar with CSS selectors,
- static CSS generated during publishing — with no additional module JavaScript on the storefront,
- return to the native colors of the active theme.
The black palette is an accent, not a full dark mode. The light/white palette preserves native backgrounds.
Three panel areas
In kowal.store → Modules → Hyva Colors, you will find Sets and publishing, My sets, and Change history. Edit a draft, clone it, or import JSON, and run publishing separately for a specific Store View.
History covers publishing, resets, and restores. It records the set, store, date, administrator, and status; it is not a history of every draft edit.
Publishing through the queue
Publishing creates an immutable snapshot of selectors and colors. The cron worker generates static CSS, activates the assignment, and refreshes the appropriate cache. A working Magento cron is required.
The queued status means waiting, purge_pending means an active version with incomplete cache propagation, and complete means the task is finished. Errors can be retried from the panel.
Reset and restore
An empty native set removes module overrides after publishing, restoring the colors of the active theme. Restoring a previous publication creates a new task based on the earlier snapshot and does not change the current draft.
Deleting a custom draft does not remove active colors or publication history. System sets can be restored to their current factory settings.
Mappings and custom elements
The catalog includes explicitly mapped header, search, button, icon, and catalog elements along with interaction states. Elements outside the catalog require custom mappings.
An advanced user can add sections, selectors, and properties, and use palette tokens in JSON. The module does not include a visual inspector or a private store preview.
Compatibility profile
The current publishing profile is intended for Hyva/default with Default Theme 1.5.2–1.5.x. Child and custom themes require separate mapping verification. Dependencies indicate Magento Framework 103.0.9+ and PHP 8.3–8.5.
Publications apply to individual Store Views; the panel does not provide inheritance of active assignments Default → Website → Store View. Compatibility and appearance should be verified in the target theme.
Installation via Composer
Package kowal/module-hyva-colors, module Kowal_HyvaColors. After configuring access to the Kowal repository, install the package, enable the module, update Magento, and clear the cache. In production, include compilation and static content deployment according to the store process.
From configuration to result
1. Choose a palette or draft
Use ready-made sets or edit supported elements.
2. Publish for a Store View
The queue creates a snapshot and generates versioned CSS.
3. Control the result and history
Check the status, appearance, and option to restore the previous version.
Example: a color variant for your brand
You clone the blue set and change the header, button, and selected interaction-state colors. You save the draft, then publish it for one store view. If needed, you restore a completed earlier publication.
Organize colors without editing theme files.
Want to adapt the module to your store? Ask about implementing Kowal Hyvä Colors and discuss the configuration or any extensions you need.
More Information
| Hyvä theme | Hyvä compatible |
|---|---|
| Theme compatibility | Hyvä, Luma / Blank, KOWAL |
Integration Configuration
Panel and permissions
You open the module through kowal.store → Modules → Hyva Colors. Configuration takes place in its three views, not in a separate Stores → Configuration section.
The administrator assigns permissions in System → Permissions → User Roles. Provide roles with the appropriate parent Kowal menu resources and Hyva Colors resources:
| Resource | Purpose |
|---|---|
| View colors and history | Viewing sets and history |
| Edit presets | Creating, saving, cloning, deleting custom sets, and resetting system sets |
| Add custom elements | Adding elements to the catalog |
| Import and export presets | Moving sets through JSON |
| Publish and restore colors | Publishing, appearance reset, restoring, and retrying publications |
An import containing new catalog definitions also requires permission to add elements. After changing a role, the user may need to log in again.
Store scope
When publishing, you select one active store view. The module checks the assigned theme: the current profile supports exactly Hyva/default with Default Theme 1.5.2–1.5.x. Do not assign a different theme just to bypass validation — child themes require separate mapping preparation.
A set is a reusable draft. You can publish it separately for multiple views. This version does not include inherited configuration at the default/website/store level.
System and custom sets
Ready-made definitions include seven palettes and an empty native set. Their saved copies are available in My sets. It is most convenient to create custom sets based on them — this keeps the originals as a reference point.
| Set | Character |
|---|---|
| Blue, Green, Purple, Orange, Graphite | Leading accent and matching colors for supported elements |
| Black | Dark header, white content, and light cart counter; other surfaces remain light |
| Light / White | Native backgrounds, hidden supported frames, and gray frames on hover |
| Native — no override | No module color CSS; the appearance comes from the active theme |
Color editor
The editor divides the catalog into sections: Global, Header, Buttons, Product cards, and Catalog and product page. Names may remain in English. The initial catalog contains 34 elements and 99 mappings. A single element can have separate entries for background, text, border, and interaction states.
Available ways to set values:
| Panel mode | Action |
|---|---|
| Custom color | Explicit color, for example #171717, #ffffff, #11223380 |
| Palette color | Reference to a token, for example brand |
| Native style | Removes the override for a given property; the theme style applies |
| No override | No value on this layer; in a single draft, it leaves the theme style |
native does not insert CSS inherit. The transparent value is an explicit transparent color, not a return to the theme. You can also use currentColor. Arbitrary CSS functions, such as rgb() or var(), are not accepted in color fields.
Save the draft before changing the editor section or page. Saving does not publish changes.
Shared colors: tokens
Named colors are stored in Palette — advanced settings (JSON). Example snippet:
{ 'brand': {'mode': 'color', 'value': '#1d4ed8'}, 'on-brand': {'mode': 'color', 'value': '#ffffff'}}In the element row, select Palette color and enter brand. Changing the token updates all values that reference it on the next publication. If you edit a ready-made set, keep the other existing tokens — replacing the entire JSON with the snippet above may leave unresolved references. Cycles and missing tokens are rejected.
Adding elements and sections
It does not require modifying module files, but it does require identifying the correct CSS selector. The module does not have a visual element inspector.
- Open the editor for any set.
- Expand Add custom element — advanced mode.
- Enter a name, for example Promotional banner.
- Select an existing section name or enter a new one, for example Promotions.
- Enter a stable selector, for example
#promo-banner, that exists in the store. - Select properties, for example
background-color,color,border-color. - Select states, for example
normalandhover, then add the element. - Open the appropriate section, assign colors, save, and publish the set.
The definition is added to the shared catalog; adding it alone does not set colors in all sets. The selector should be as precise as possible. This version does not support selector lists, :has(), or arbitrary CSS declarations. Adding an element does not create its HTML in the store. Panel editing of existing selectors and element archiving are not yet available.
Infrastructure configuration
Publishing depends on cron, writable media, and cache. The CSS stylesheet is generated before activation and then served statically. The module does not add color-related JavaScript to the regular storefront. This does not guarantee a specific performance result — measurements should be performed in the target store.
With Varnish, check access to purge servers. With a CDN and multiple nodes, check HTML propagation and stylesheet availability. Deployment details are included in the installation instructions.
Module Installation Instructions
Kowal Hyva Colors — installation and update
Instructions for version 0.1.6. Run the commands in the Magento root directory as the deployment user, as part of the store standard deployment procedure. First, test the installation in a staging environment.
Requirements
| Component | Requirement for the current package |
|---|---|
| PHP | 8.3.x, 8.4.x, or 8.5.x; JSON and zlib extensions |
| Magento Framework | ^103.0.9; reference environment Magento 2.4.9 |
| Hyvä Theme Module | ~1.5.2 |
| Active publishing theme | Exactly Hyva/default; Default Theme 1.5.2–1.5.x |
| Kowal Base | ^1.1.7 |
| Services | Working Magento cron, writable media, and properly configured cache |
Full dependencies are defined in composer.json. Dependency requirements are not a declaration that all version combinations have been tested. A child theme is currently rejected by publication validation, even if it inherits from Hyvä.
1. Composer access
Configure the Composer repository that provides kowal/module-hyva-colors and kowal/base, according to the information received from the provider. Authorized access to the Hyvä repository is also required. The repository URL and authorization method depend on the access provided; this instruction does not assume public package availability.
Example configuration pattern — replace the URL with the actual Composer repository URL:
composer config repositories.kowal composer 'https://ADRES-REPOZYTORIUM-COMPOSER'Store credentials outside the project repository, for example in a private auth.json or CI configuration. Do not copy them into documentation.
2. Installation
After release 0.1.6 is made available in the repository:
composer require kowal/module-hyva-colors:0.1.6 --with-all-dependenciesphp bin/magento module:enable Kowal_Base Kowal_HyvaColorsphp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy pl_PL en_USphp bin/magento cache:clean config layout block_html full_pagephp bin/magento module:status Kowal_HyvaColorsphp bin/magento kowal:hyva-colors:diagnoseThe listed locales are examples — deploy the languages used by the store and panel. Combine DI generation and asset deployment with your standard deployment procedure instead of running them while handling traffic on the active production directory.
Installation creates the catalog and initial sets. It does not publish colors or change the store appearance. The diagnose command checks the package catalog and reports the feature scope; it is not a full environment test.
3. Cron and CSS files
The module uses the kowal_hyva_colors_publish task in the default cron group, scheduled every minute. Standard Magento cron must be running on the server. A single run processes up to 10 tasks; publishing does not have to be immediate.
Manual queue processing for diagnostics:
php bin/magento kowal:hyva-colors:publication:processCheck the status of a specific task in Change history — successful command execution does not mean every task completed successfully.
Stylesheets are saved in pub/media/kowal/hyva-colors/. Ensure write access and HTTP read access. With multiple nodes, media must be shared. For these immutable files, you can configure Content-Type: text/css, compression, and Cache-Control: public, max-age=31536000, immutable. The module does not configure the server or CDN.
4. Installation acceptance
- Open kowal.store → Modules → Hyva Colors. If the menu is not visible, check Kowal Base and role permissions.
- Check the three pages: Sets and publishing, My sets, Change history.
- Publish a palette on a test store view and wait for the task to complete.
- Check the header, account, mini cart, category, and product on desktop and mobile, including hover/focus.
- Confirm CSS availability, FPC/Varnish refresh, and all CDN nodes.
- Publish a reset to the native theme, then check restoration of an earlier publication.
Update
After a new release is made available:
composer update kowal/module-hyva-colors kowal/base --with-all-dependenciesphp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy pl_PL en_USphp bin/magento cache:clean config layout block_html full_pageCheck the version constraint in the store main composer.json: an exact 0.1.6 will not allow the update command to select a newer release. Change it deliberately, for example with composer require ...:NOWA-WERSJA --with-all-dependencies.
An update does not replace the active publication with a new palette. After factory changes, select the ready-made set again and publish it. Saved custom drafts keep their own values.
Installation issues
- Package is not available: check release availability, repositories, and Composer authorization.
- Missing menu: check
Kowal_Baseactivation, role permissions, and configuration cache; refresh the panel. - Catalog conflict: run
php bin/magento kowal:hyva-colors:catalog:sync --dry-run. Compare changed definitions before synchronization; do not manually overwrite custom elements. - Interceptor error after an old version: make sure Composer installed the corrected package and rebuild generated code in the standard deployment process.
- Colors are not changing: check history, cron, active theme, CSS in media, and cache propagation.
Color reset is performed in the panel. It does not require uninstalling the module or deleting tables. Before disabling or removing the module, export the needed sets and create a database backup according to the store maintenance procedure.