Skip to content

✨ Added accent color CSS variable to {{ghost_head}}#12717

Merged
kevinansfield merged 1 commit into
TryGhost:mainfrom
kevinansfield:accent-color
Mar 2, 2021
Merged

✨ Added accent color CSS variable to {{ghost_head}}#12717
kevinansfield merged 1 commit into
TryGhost:mainfrom
kevinansfield:accent-color

Conversation

@kevinansfield
Copy link
Copy Markdown
Member

@kevinansfield kevinansfield commented Mar 2, 2021

closes https://github.com/TryGhost/Team/issues/508

  • if an accent colour is set in site settings, output a --accent-color CSS variable in a <style> tag through {{ghost_head}}
  • allows themes to use the accent colour without adding an additional conditional with CSS variable declaration to their default template

TODO:

  • add test

@kevinansfield kevinansfield force-pushed the accent-color branch 2 times, most recently from 6242424 to e745822 Compare March 2, 2021 10:01
@kevinansfield kevinansfield changed the title ✨ Added accent colour CSS variable to {{ghost_head}} ✨ Added accent color CSS variable to {{ghost_head}} Mar 2, 2021
closes TryGhost/Product#508

- if an accent colour is set in site settings, output a `--accent-color` CSS variable in a `<style>` tag through `{{ghost_head}}`
- allows themes to use the accent colour without adding an additional conditional with CSS variable declaration to their default template
@kevinansfield kevinansfield merged commit 74fe765 into TryGhost:main Mar 2, 2021
@kevinansfield kevinansfield deleted the accent-color branch March 2, 2021 11:40
kevinansfield added a commit that referenced this pull request Mar 3, 2021
refs #12717

- preview data is set on `options.data.site` so we need to read from that rather than directly from the settings cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant