forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Theme designer: minor fixes (microsoft#23741)
* 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
1 parent
ab97c64
commit 0b6afa2
Showing
6 changed files
with
298 additions
and
304 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...nents/theme-designer/src/components/AccessibilityChecker/AccessibilityChecker.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } }; |
4 changes: 1 addition & 3 deletions
4
packages/react-components/theme-designer/src/components/ColorTokens/ColorTokens.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } }; |
5 changes: 2 additions & 3 deletions
5
packages/react-components/theme-designer/src/components/Content/Content.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } }; |
Oops, something went wrong.