Skip to content

How do I override linkColor? #246

@codenitpicker

Description

@codenitpicker

overrideStyles: ({ adjustFontSizeTo, scale, rhythm }, options) => {
const linkColor = "#ff5700"
const vr = verticalRhythm({
baseFontSize: "19px",
baseLineHeight: "29.85px",
})
return {
a: {
color: linkColor,
textDecoration: "none",

I understand this is how to override elements:

twinPeaksTheme.overrideStyles = () => ({
  a: {
    color: "blue",
  },
})

However I can't seem to access linkColor with anything similar to this:

twinPeaksTheme.overrideStyles = () => (
    linkColor = "blue"
)


linkColor is present in the following themes:

  • typography-theme-doelger
  • typography-theme-elk-glen
  • typography-theme-fairy-gates
  • typography-theme-lincoln
  • typography-theme-ocean-beach
  • typography-theme-twin-peaks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions