feat(style): Add textHighlight theme setting (#1242)
* Add textHighlight theme setting
* update docs to include textHighlight
* Remove errant `S`
| | |
| | | - `secondary`: link colour, current [[graph view|graph]] node |
| | | - `tertiary`: hover states and visited [[graph view|graph]] nodes |
| | | - `highlight`: internal link background, highlighted text, [[syntax highlighting|highlighted lines of code]] |
| | | - `textHighlight`: markdown highlighted text background |
| | | |
| | | ## Plugins |
| | | |
| | |
| | | secondary: "#284b63", |
| | | tertiary: "#84a59d", |
| | | highlight: "rgba(143, 159, 169, 0.15)", |
| | | textHighlight: "#fff23688", |
| | | }, |
| | | darkMode: { |
| | | light: "#161618", |
| | |
| | | secondary: "#7b97aa", |
| | | tertiary: "#84a59d", |
| | | highlight: "rgba(143, 159, 169, 0.15)", |
| | | textHighlight: "#b3aa0288", |
| | | }, |
| | | }, |
| | | }, |
| | |
| | | } |
| | | |
| | | .text-highlight { |
| | | background-color: #fff23688; |
| | | background-color: var(--textHighlight); |
| | | padding: 0 0.1rem; |
| | | border-radius: 5px; |
| | | } |
| | | |
| | | ::selection { |
| | | background: color-mix(in srgb, var(--tertiary) 60%, rgba(255, 255, 255, 0)); |
| | | color: var(--darkgray); |
| | |
| | | secondary: string |
| | | tertiary: string |
| | | highlight: string |
| | | textHighlight: string |
| | | } |
| | | |
| | | interface Colors { |
| | |
| | | --secondary: ${theme.colors.lightMode.secondary}; |
| | | --tertiary: ${theme.colors.lightMode.tertiary}; |
| | | --highlight: ${theme.colors.lightMode.highlight}; |
| | | --textHighlight: ${theme.colors.lightMode.textHighlight}; |
| | | |
| | | --headerFont: "${theme.typography.header}", ${DEFAULT_SANS_SERIF}; |
| | | --bodyFont: "${theme.typography.body}", ${DEFAULT_SANS_SERIF}; |
| | |
| | | --secondary: ${theme.colors.darkMode.secondary}; |
| | | --tertiary: ${theme.colors.darkMode.tertiary}; |
| | | --highlight: ${theme.colors.darkMode.highlight}; |
| | | --textHighlight: ${theme.colors.darkMode.textHighlight}; |
| | | } |
| | | ` |
| | | } |