Sha256: 2c29b40c02a2b00ba86685b9e34c99615c39ba759b27eec7c08aefce25f2f8f5

Contents?: true

Size: 673 Bytes

Versions: 4

Compression:

Stored size: 673 Bytes

Contents

// color-scheme
// Enables color modes for native elements

@include color-mode(light) { color-scheme: light; }

@include color-mode(dark) { color-scheme: dark; }

[data-color-mode] {
  color: var(--fgColor-default, var(--color-fg-default));
  background-color: var(--bgColor-default, var(--color-canvas-default));
}

// Windows High Contrast mode

// Improves focus state for various components when Windows High Contrast mode is enabled
// stylelint-disable selector-max-type
@media (forced-colors: active) {
  body {
    --color-accent-emphasis: Highlight;
    --color-fg-on-emphasis: LinkText;
    --fgColor-onEmphasis: LinkText;
    --fgColor-accent: Highlight;
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jekyll-v4-theme-primer-0.16.0 _sass/@primer/css/color-modes/native.scss
jekyll-v4-theme-primer-0.15.0 _sass/@primer/css/color-modes/native.scss
jekyll-v4-theme-primer-0.14.0 _sass/@primer/css/color-modes/native.scss
jekyll-v4-theme-primer-0.13.0 _sass/@primer/css/color-modes/native.scss