Skip to content

Commit

Permalink
Theme designer: minor fixes (microsoft#23741)
Browse files Browse the repository at this point in the history
* export to codesandbox opens new page

* update defaults

* extracting string constants from render

* add debouncing to keycolor

* extend debounce to all entries in the form

* remove slider value

* Update ExportLink.tsx
  • Loading branch information
emmayjiang authored and rohitpagariya committed Jun 28, 2022
1 parent ab97c64 commit 0b6afa2
Show file tree
Hide file tree
Showing 6 changed files with 298 additions and 304 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { AccessibilityChecker } from './AccessibilityChecker';
import { getBrandTokensFromPalette } from '../../utils/getBrandTokensFromPalette';
import { createDarkTheme } from '@fluentui/react-components';
import { createLightTheme } from '@fluentui/react-components';
export default { component: AccessibilityChecker };

const brand = getBrandTokensFromPalette('#006bc7');
const lightTheme = createDarkTheme(brand);
const lightTheme = createLightTheme(brand);

export const Default = { args: { theme: lightTheme } };
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { ColorTokens } from './ColorTokens';
import { getBrandTokensFromPalette } from '../../utils/getBrandTokensFromPalette';
import { createDarkTheme } from '@fluentui/react-components';
export default { component: ColorTokens };

const brand = getBrandTokensFromPalette('#006bc7');
const lightTheme = createDarkTheme(brand);

export const Default = { args: { theme: lightTheme } };
export const Default = { args: { brand: brand, isDark: false } };
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { Content } from './Content';
import { getBrandTokensFromPalette } from '../../utils/getBrandTokensFromPalette';
import { createLightTheme, createDarkTheme } from '@fluentui/react-components';
import { createLightTheme } from '@fluentui/react-components';
export default { component: Content };

const brand = getBrandTokensFromPalette('#006BC7');
const lightTheme = createLightTheme(brand);
const darkTheme = createDarkTheme(brand);

export const Default = { args: { brand: brand, darkTheme: darkTheme, lightTheme: lightTheme } };
export const Default = { args: { brand: brand, theme: lightTheme, isDark: false } };
Loading

0 comments on commit 0b6afa2

Please sign in to comment.