Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Ghost Fluent UI Ghost Fluent UI
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 17
    • Issues 17
    • 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
Migrate README project content into wiki authored Jan 08, 2021 by Laurent Sittler's avatar Laurent Sittler
Show whitespace changes
Inline Side-by-side
Showing with 102 additions and 1 deletion
+102 -1
  • theme.md theme.md +102 -1
  • No files found.
theme.md
View page @ a6a877ad
# Theme Configuration
The theme is based on [https://developer.microsoft.com/en-us/fluentui](Fluent UI) Framework and Microsoft SharePoint appearence.
You can use the Fluent UI [Theme Designer](https://fabricweb.z5.web.core.windows.net/pr-deploy-site/refs/heads/7.0/theming-designer/index.html) to generate a custom theme color and apply it as light and dark mode.
To overwrite the theme color with your own one, add **Code injection** into the *Site Header* part like this:
```html
<style type="text/css">
:root,
[data-theme=dark] {
--themePrimary: #0078d4;
--themeLighterAlt: #eff6fc;
--themeLighter: #deecf9;
--themeLight: #c7e0f4;
--themeTertiary: #71afe5;
--themeSecondary: #2b88d8;
--themeDarkAlt: #106ebe;
--themeDark: #005a9e;
--themeDarker: #004578;
--neutralLighterAlt: #050607;
--neutralLighter: #f3f2f1;
--neutralLight: #edebe9;
--neutralQuaternaryAlt: #e1dfdd;
--neutralQuaternary: #d0d0d0;
--neutralTertiaryAlt: #c8c6c4;
--neutralTertiary: #a19f9d;
--neutralSecondary: #605e5c;
--neutralPrimaryAlt: #3b3a39;
--neutralPrimary: #CDCECF;
--neutralDark: #DFE0E1;
--black: #ffffff;
--white: #1b1a19;
}
[data-theme=light] {
--themePrimary: #0078d4;
--themeLighterAlt: #eff6fc;
--themeLighter: #deecf9;
--themeLight: #c7e0f4;
--themeTertiary: #71afe5;
--themeSecondary: #2b88d8;
--themeDarkAlt: #106ebe;
--themeDark: #005a9e;
--themeDarker: #004578;
--neutralLighterAlt: #faf9f8;
--neutralLighter: #f3f2f1;
--neutralLight: #edebe9;
--neutralQuaternaryAlt: #e1dfdd;
--neutralQuaternary: #d0d0d0;
--neutralTertiaryAlt: #c8c6c4;
--neutralTertiary: #a19f9d;
--neutralSecondary: #605e5c;
--neutralPrimaryAlt: #3b3a39;
--neutralPrimary: #323130;
--neutralDark: #201f1e;
--black: #000000;
--white: #ffffff;
}
@media (prefers-color-scheme:light) {
:root:not([data-theme=dark]) {
--themePrimary: #0078d4;
--themeLighterAlt: #eff6fc;
--themeLighter: #deecf9;
--themeLight: #c7e0f4;
--themeTertiary: #71afe5;
--themeSecondary: #2b88d8;
--themeDarkAlt: #106ebe;
--themeDark: #005a9e;
--themeDarker: #004578;
--neutralLighterAlt: #faf9f8;
--neutralLighter: #f3f2f1;
--neutralLight: #edebe9;
--neutralQuaternaryAlt: #e1dfdd;
--neutralQuaternary: #d0d0d0;
--neutralTertiaryAlt: #c8c6c4;
--neutralTertiary: #a19f9d;
--neutralSecondary: #605e5c;
--neutralPrimaryAlt: #3b3a39;
--neutralPrimary: #323130;
--neutralDark: #201f1e;
--black: #000000;
--white: #1b1a19;
}
}
</style>
```
You can change the primary color only by adding from the **Code injection** into the *Site Header* the following style:
```html
<style type="text/css">
:root,
[data-theme] {
--themePrimary: #A4262C;
}
</style>
```
> **Note**: you need to define a Light and a Dark color themes to overwrite both of theme.
Clone repository

Home

Theme

  • Header
  • Footer

Search Engine

  • GhostHunder
  • Elasticsearch

Apps Launcher

Templates

  • Posts
  • Pages
  • Tags
  • Featured
  • Events

Blog Comments

  • Isso