@fluent-windows/core
Version:
React components that inspired by Microsoft's Fluent Design System.
23 lines (21 loc) • 463 B
JavaScript
const root = theme => ({
reveal
}) => ({
width: '100%',
maxWidth: 360,
padding: '8px 0',
boxShadow: theme.shadows[2],
backgroundColor: reveal ? theme.colors.standard.light2 : theme.colors.white.default
});
const title = theme => ({
padding: '0 12px 6px',
position: 'sticky',
top: 0,
zIndex: 1,
fontWeight: 500,
color: theme.colors.standard.transparent3
});
export const styles = theme => ({
root: root(theme),
title: title(theme)
});