Skip to content

Commit

Permalink
Updating the theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjones committed Sep 18, 2023
1 parent 12c657e commit 1b6ae43
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 11 deletions.
40 changes: 40 additions & 0 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<style>
/* Sidebar Overrides */

.sidebar-subheading {
letter-spacing: normal!important;
}
.sidebar-item:hover {
background:rgba(250,255,105,0.1)!important;
color:#FFF!important;
}

.sidebar-item[data-selected="true"]:hover {
background:rgba(250,255,105,1)!important;
color:#151515!important;
}

.sidebar-item[data-selected="true"] {
color:#151515!important;
font-weight: 600!important;
}

.sidebar-item[data-selected="true"] svg {
color:#151515!important;
}

.sidebar-item[data-selected="true"]:hover svg {
color:#151515!important;
}

.sidebar-item[data-nodetype="document"] svg,
.sidebar-item[data-nodetype="story"] svg {
color: #FAFF69!important;
}

.sidebar-item[data-selected="true"][data-nodetype="document"] svg,
.sidebar-item[data-selected="true"][data-nodetype="story"] svg {
color: #151515!important;
}

</style>
8 changes: 6 additions & 2 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ import { addons } from "@storybook/manager-api";
import theme from "./theme";

addons.setConfig({
theme,
isFullscreen: false,
showNav: true,
showPanel: true,
showToolbar: true,
sidebar: {
showRoots: true,
}
},
theme: theme,
});
2 changes: 2 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">

<style>

.sbdocs-preview, .docs-story, .docs-story > div:first-child {
min-height: 180px;
padding: 0;
}

</style>
5 changes: 3 additions & 2 deletions .storybook/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
import { create } from "@storybook/theming/create";

export default create({
base: "light",
base: "dark",
colorPrimary: '#FAFF69',
colorSecondary: '#FAFF69',
brandTitle: "ClickUI Storybook",
brandUrl: "/",
brandImage: "/logo.svg",
appBg: "white",
brandTarget: "_self",
fontBase: `"Inter", "SF Pro Display", -apple-system,
BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
Expand Down
14 changes: 7 additions & 7 deletions public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1b6ae43

Please sign in to comment.