Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ https://github.com/dxpr/dxpr_maven/blob/main/CONTRIBUTING.md

## AI-Powered Color Palette Generator

DXPR Theme includes an AI-powered color palette generator that creates harmonious
color schemes from natural language descriptions. Access it in theme settings
under Colors > Color Set.
DXPR Theme includes an AI-powered color palette generator that
creates harmonious color schemes from natural language
descriptions. Access it in theme settings under
Colors > Color Set.

**Requirements:**
- [Drupal AI module](https://www.drupal.org/project/ai) installed and configured with a chat provider
Expand Down Expand Up @@ -145,9 +146,10 @@ Variables are organized into several namespaces:

### Color Variables

Color variables are defined per color scheme (default, softwarm, powerfulenergetic,
brighthealthy, calmapproachable, neon, earthy, minimalistmonochrome, darkmode,
aivibe, oceanblue, highcontrast).
Color variables are defined per color scheme (default,
softwarm, powerfulenergetic, brighthealthy,
calmapproachable, neon, earthy, minimalistmonochrome,
darkmode, aivibe, oceanblue, highcontrast).

| Variable | Description | Bootstrap Mapping |
|----------|-------------|-------------------|
Expand Down
2 changes: 1 addition & 1 deletion css/base/variables.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dxpr_theme.theme
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ function dxpr_theme_preprocess_region(&$variables) {
switch ($variables['region']) {
case 'secondary_header':
$variables['#attached']['library'][] = 'dxpr_theme/dxpr-theme-secondary-header';
// Fall through to also attach navigation libraries.
case 'navigation':
case 'navigation_collapsible':
$variables['#attached']['library'][] = 'dxpr_theme/dxpr-theme-header';
Expand Down
3 changes: 2 additions & 1 deletion features/sooper-header/header-theme-settings-css.inc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ function header_theme_settings_css(string $theme, string &$css, array $palette)
}
elseif (theme_get_setting('header_top_fixed', $theme)) {
// Fixed header: body padding for header height.
// Anonymous users: displacement is "" so avoid calc(); use header height only.
// Anonymous users: displacement is "" so avoid calc();
// use header height only.
$css .= ".body--dxpr-theme-nav-desktop.body--dxpr-theme-header-fixed.body--dxpr-theme-header-not-overlay:not(.toolbar-horizontal, .toolbar-vertical, .toolbar-fixed) {\n";
$css .= " padding-top: $header_top_height_var !important;\n";
$css .= "}\n\n";
Expand Down
11 changes: 7 additions & 4 deletions features/sooper-settings/css-variables-theme-settings-css.inc
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ function _dxpr_theme_massage_values(string $key, $value, string $theme, array $s
}
break;

// Handle Font settings - output family, weight, style as separate variables.
// Uses existing -font-face variable for family, and new -font-weight/-font-style.
// Handle Font settings - output family, weight, style
// as separate variables. Uses existing -font-face
// variable for family, and new -font-weight/-font-style.
case 'body_font_face':
case 'blockquote_font_face':
case 'headings_font_face':
Expand All @@ -168,7 +169,8 @@ function _dxpr_theme_massage_values(string $key, $value, string $theme, array $s
// e.g., "body_font_face" becomes "body_font" for weight/style.
$base_key = str_replace('_font_face', '_font', $key);
$value = [
// Empty string key preserves original variable name (e.g., body-font-face).
// Empty string key preserves original variable
// name (e.g., body-font-face).
'' => $font_data['family'],
// These use the base key without "face" (e.g., body-font-weight).
'__weight' => [$base_key . '_weight', $font_data['weight']],
Expand All @@ -189,7 +191,8 @@ function _dxpr_theme_massage_values(string $key, $value, string $theme, array $s
break;

case 'dropdown_width':
// If automatic width is enabled (value = '1' or 1 or TRUE), set to 'auto' instead of fixed width.
// If automatic width is enabled (value = '1' or 1
// or TRUE), set to 'auto' instead of fixed width.
if (!empty($submitted['dropdown_width_auto']) && $submitted['dropdown_width_auto'] != '0') {
$value = 'auto';
$s = '';
Expand Down
4 changes: 2 additions & 2 deletions scripts/prepare_drupal-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-co
# Install Drupal coding standards
composer global require drupal/coder

# Install PHP compatibility checker
composer global require phpcompatibility/php-compatibility
# Install PHP compatibility checker (10.x for PHPCS 4.x support)
composer global require phpcompatibility/php-compatibility:^10.0@alpha

export PATH="$PATH:$COMPOSER_HOME/vendor/bin"

Expand Down
12 changes: 6 additions & 6 deletions scss/base/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ $schemes: (
"darkmode": (
"base": #121212,
"basetext": #e0e0e0,
"link": #222222,
"accent1": #222222,
"link": #222,
"accent1": #222,
"accent1text": #e0e0e0,
"accent2": #222222,
"accent2": #222,
"accent2text": #e0e0e0,
"text": #e0e0e0,
"headings": #ffffff,
"headings": #fff,
"footer": #1a1a1a,
"footertext": #e0e0e0,
"secheader": #2c2c2e,
Expand All @@ -134,8 +134,8 @@ $schemes: (
"headersidetext": #e0e0e0,
"pagetitle": #1d1d1d,
"pagetitletext": #e6e6e6,
"graylight": #333333,
"graylighter": #444444,
"graylight": #333,
"graylighter": #444,
"silver": #b0b0b0,
"body": #101010,
),
Expand Down
Loading