Skip to content

Commit

Permalink
Storybook Theming for npui
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahdi-Hazrati committed Oct 18, 2024
1 parent 878a22c commit 4891124
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {addons} from "@storybook/manager-api"
import npui_theme from "./npui_theme"

addons.setConfig({
theme : npui_theme
})
39 changes: 39 additions & 0 deletions .storybook/npui_theme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { create } from "@storybook/theming";

export default create({
base: 'light',
// Typography
fontBase: '"Open Sans", sans-serif',
fontCode: 'monospace',

// Brand
brandTitle: "NPUI",
brandTarget: "_blank",
brandUrl: "https://nextproduction.dev/npui",
// brandImage: '@/public/npui_logo.png',

// Colors
colorPrimary: '#3A10E5',
colorSecondary: '#585C6D',

// UI
appBg: '#ffffff',
appContentBg: '#ffffff',
appPreviewBg: '#ffffff',

// Text colors
textColor: '#10162F',
textInverseColor: '#ffffff',

// Toolbar default and active colors
barTextColor: '#9E9E9E',
barSelectedColor: '#585C6D',
barHoverColor: '#585C6D',
barBg: '#ffffff',

// Form colors
inputBg: '#ffffff',
inputTextColor: '#10162F',


});

0 comments on commit 4891124

Please sign in to comment.