|
| 1 | +/*! |
| 2 | + * Copyright 2025 Adobe. All rights reserved. |
| 3 | + * |
| 4 | + * This file is licensed to you under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. You may obtain a copy |
| 6 | + * of the License at <http://www.apache.org/licenses/LICENSE-2.0> |
| 7 | + * |
| 8 | + * Unless required by applicable law or agreed to in writing, software distributed under |
| 9 | + * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS |
| 10 | + * OF ANY KIND, either express or implied. See the License for the specific language |
| 11 | + * governing permissions and limitations under the License. |
| 12 | + */ |
| 13 | + |
| 14 | +import { addons } from '@storybook/manager-api'; |
| 15 | +import { create } from '@storybook/theming'; |
| 16 | + |
| 17 | +addons.setConfig({ |
| 18 | + theme: create({ |
| 19 | + base: 'light', |
| 20 | + brandTitle: 'Adobe | Spectrum Web Components', |
| 21 | + brandUrl: 'https://opensource.adobe.com/spectrum-web-components', |
| 22 | + brandTarget: '_self', |
| 23 | + typography: { |
| 24 | + fonts: { |
| 25 | + base: 'adobe-clean, "Adobe Clean", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif', |
| 26 | + code: '"Source Code Pro", Monaco, monospace', |
| 27 | + }, |
| 28 | + }, |
| 29 | + |
| 30 | + // colorPrimary: "#7326d3", |
| 31 | + colorSecondary: 'rgb(2, 101, 220)', |
| 32 | + |
| 33 | + /* Being applied to the active state of radio buttons */ |
| 34 | + appBg: 'rgb(255, 255, 255)', |
| 35 | + /* Being applied to the arg table */ |
| 36 | + appContentBg: 'rgb(255, 255, 255)', |
| 37 | + // appPreviewBg: "rgb(248, 248, 248)", |
| 38 | + appBorderColor: 'rgb(213, 213, 213)', |
| 39 | + appBorderRadius: 4, |
| 40 | + |
| 41 | + /* Text colors */ |
| 42 | + fontBase: |
| 43 | + 'adobe-clean, "Adobe Clean", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Trebuchet MS", "Lucida Grande", sans-serif', |
| 44 | + fontCode: '"Source Code Pro", Monaco, monospace', |
| 45 | + textColor: 'rgb(34, 34, 34)', |
| 46 | + textInverseColor: 'rgb(219, 219, 219)', |
| 47 | + textMutedColor: 'rgb(175, 175, 175)', |
| 48 | + |
| 49 | + /* Toolbar default and active colors */ |
| 50 | + barTextColor: 'rgb(34, 34, 34)', |
| 51 | + barHoverColor: 'rgb(2, 101, 220)', |
| 52 | + barSelectedColor: 'rgb(2, 101, 220)', |
| 53 | + barBg: 'rgb(255, 255, 255)', |
| 54 | + |
| 55 | + // buttonBg: "rgb(255, 255, 255)", |
| 56 | + // buttonBorder: "transparent", |
| 57 | + // booleanBg: "rgb(255, 255, 255)", |
| 58 | + // booleanSelectedBg: "rgb(213, 213, 213)", |
| 59 | + |
| 60 | + /* Form colors */ |
| 61 | + inputBg: 'rgb(255, 255, 255)', |
| 62 | + inputBorder: 'rgb(177, 177, 177)', |
| 63 | + inputTextColor: 'rgb(34, 34, 34)', |
| 64 | + inputBorderRadius: 4, |
| 65 | + |
| 66 | + // gridCellSize?: number; |
| 67 | + }), |
| 68 | + sidebar: { |
| 69 | + showRoots: true, |
| 70 | + collapsedRoots: ['tools'], |
| 71 | + }, |
| 72 | +}); |
0 commit comments