Create themes for olivero/claro and olivero/gin

Created on 28 March 2025, 5 months ago

Problem/Motivation

At the moment only the default SkipTo themes are available for styling. None of the themes is 100% in line with the styling used for Olivero, Claro, and/or Gin.

Steps to reproduce

Proposed resolution

Come up with proper styling for two themes and then create issues upstream as suggested on https://skipto-landmarks-headings.github.io/page-script-5/config.html:

If you would like a theme added for your organization, please file an issue with the desired colors

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

2.0

Component

User interface

Created by

🇩🇪Germany rkoller Nürnberg, Germany

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

  • Issue created by @rkoller
  • 🇩🇪Germany rkoller Nürnberg, Germany
  • 🇩🇪Germany rkoller Nürnberg, Germany

    I've experimented a bit. by adding the following snippet at the end of const colorTheme in skipto.js most of the details for gin work:

        'gin': {
          hostnameSelector: 'drupal.org',
          fontSize: '16px',
          fontFamily: 'var(--gin-font)',
          positionLeft: '7%',
          menuTextColor: 'var(--gin-color-title)',
          menuTextDarkColor: 'var(--gin-color-title)',
          menuBackgroundColor: 'var(--gin-bg-app-rgb)',
          menuBackgroundDarkColor: 'var(--admin-toolbar-color-white)',
          menuitemFocusTextColor: 'var(--gin-color-button-text)',
          menuitemFocusTextDarkColor: 'var(--gin-color-button-text)',
          menuitemFocusBackgroundColor: 'var(--gin-color-primary)',
          menuitemFocusBackgroundDarkColor: 'var(--gin-color-primary)',
          focusBorderColor: 'var(--gin-color-focus)',
          focusBorderDarkColor: 'var(--gin-color-focus)',
          buttonTextColor: 'var(--gin-color-button-text)',
          buttonTextDarkColor: 'var(--gin-color-button-text)',
          buttonBackgroundColor: 'var(--gin-color-primary)',
          buttonBackgroundDarkColor: 'var(--gin-color-primary)',
        }

    only problem menuBackgroundColor and menuBackgroundDarkColor seem to have no effect and the background is transparent. the rest aligns to the color styling in gin. but would probably nice to adjust the styling aka form of the button and expanded menu.

  • 🇩🇪Germany rkoller Nürnberg, Germany

    i've spent quite a while trying to figure out why the background is being displayed transparent even though the colors are opaque (i even tried simply going with #fff), always the same effect:

  • 🇩🇪Germany rkoller Nürnberg, Germany

    i'Ve ended with the preliminary snippet which is also using the right variables for the background compared to #3

        'gin': {
          hostnameSelector: 'drupal.org',
          fontSize: 'var(--gin-font-size)',
          fontFamily: 'var(--gin-font)',
          menuTextColor: 'var(--gin-color-title)',
          menuTextDarkColor: 'var(--gin-color-title)',
          menuBackgroundColor: 'var(--gin-bg-layer)',
          menuBackgroundDarkColor: 'var(--gin-bg-layer)',
          menuitemFocusTextColor: 'var(--gin-color-button-text)',
          menuitemFocusTextDarkColor: 'var(--gin-color-button-text)',
          menuitemFocusBackgroundColor: 'var(--gin-color-primary)',
          menuitemFocusBackgroundDarkColor: 'var(--gin-color-primary)',
          focusBorderColor: 'var(--gin-color-focus)',
          focusBorderDarkColor: 'var(--gin-color-focus)',
          buttonTextColor: 'var(--gin-color-button-text)',
          buttonTextDarkColor: 'var(--gin-color-button-text)',
          buttonBackgroundColor: 'var(--gin-color-primary)',
          buttonBackgroundDarkColor: 'var(--gin-color-primary)',
       }
    

    with those everything is colored in the right way. there are more settings, but with those i failed to get them even properly to override

          zIndex: '2000000',
          z2Index: '20000002',
          zHighlight: '19999',
          hiddenHeadingColor: 'var(--gin-color-title)',
          hiddenHeadingDarkColor: 'var(--gin-color-title)',
          hiddenHeadingBackgroundColor: 'var(--gin-color-primary)',
          hiddenHeadingBackgroundDarkColor: 'var(--gin-color-primary)',
          dialogTextColor: 'red',
          dialogTextDarkColor: 'red',
          dialogBackgroundColor: 'blue',
          dialogBackgroundDarkColor: 'blue',
          dialogBackgroundTitleColor: 'green',
          dialogBackgroundTitleDarkColor: 'green',
          highlightBorderSize: 'x-large',

    as you can see the values for the dialog dont take even effect when you apply them to the skipto theme.

Production build 0.71.5 2024