Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import * as React from 'react';
import { action } from '@storybook/addon-actions';
import { Headline, Title3 } from '@fluentui/react-text';
import { Headline } from '@fluentui/react-text';
import { makeStyles, shorthands } from '@griffel/react';
import { SampleCard } from './SampleCard.stories';
import { FluentProvider } from '@fluentui/react-provider';
import { webDarkTheme, webHighContrastTheme, webLightTheme } from '@fluentui/react-theme';

const useStyles = makeStyles({
container: {
Expand Down Expand Up @@ -32,12 +30,11 @@ const Title = (props: { children: React.ReactNode }) => {
);
};

const AppearanceExamples = (props: { title: string }) => {
export const Appearance = () => {
const styles = useStyles();

return (
<div className={styles.themeContainer}>
<Title3>{props.title}</Title3>
<div>
<Title>Filled (default)</Title>
<SampleCard appearance="filled" />
Expand Down Expand Up @@ -73,21 +70,3 @@ const AppearanceExamples = (props: { title: string }) => {
</div>
);
};

export const Appearance = () => {
const styles = useStyles();

return (
<div className={styles.container}>
<FluentProvider theme={webLightTheme}>
<AppearanceExamples title="Light theme" />
</FluentProvider>
<FluentProvider theme={webDarkTheme}>
<AppearanceExamples title="Dark theme" />
</FluentProvider>
<FluentProvider theme={webHighContrastTheme}>
<AppearanceExamples title="High contrast theme" />
</FluentProvider>
</div>
);
};