Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Ghost Fluent UI Ghost Fluent UI
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 16
    • Issues 16
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Ghost Themes
  • Ghost Fluent UIGhost Fluent UI
  • Wiki
  • theme

theme · Changes

Page history
feat: customize theme color authored Jan 09, 2021 by Laurent Sittler's avatar Laurent Sittler
Show whitespace changes
Inline Side-by-side
Showing with 12 additions and 3 deletions
+12 -3
  • theme.md theme.md +12 -3
  • No files found.
theme.md
View page @ 29f885cd
...@@ -88,15 +88,24 @@ To overwrite the theme color with your own one, add **Code injection** into the ...@@ -88,15 +88,24 @@ To overwrite the theme color with your own one, add **Code injection** into the
</style> </style>
``` ```
You can change the primary color only by adding from the **Code injection** into the *Site Header* the following style: You can change the color by adding from the **Code injection** into the *Site Header* the following style:
```html ```html
<style type="text/css"> <style type="text/css">
:root, :root,
[data-theme] { [data-theme] {
--themePrimary: #A4262C; --themeDarker: #6f2d09;
--themeDark: #8d390b;
--themeDarkAlt: #b5490f;
--themePrimary: #ca5010;
--themeSecondary: #e55c12;
--themeTertiary: #f6b28d;
--themeLight: #fbdac9;
--themeLighter: #fdede4;
--themeLighterAlt: #fef6f1;
--accent: #986f0b;
} }
</style> </style>
``` ```
> **Note**: you need to define a Light and a Dark color themes to overwrite both of theme. > **Note**: the sample above is based on the orange theme of SharePoint
Clone repository

Home

Theme

  • Header
  • Footer

Search Engine

  • GhostHunder
  • Elasticsearch

Apps Launcher

Templates

  • Posts
  • Pages
  • Tags
  • Featured
  • Events

Blog Comments

  • Isso