@fluent-windows/core
Version:
React components that inspired by Microsoft's Fluent Design System.
18 lines (16 loc) • 452 B
JavaScript
import { themeGet } from '@fluent-windows/styles';
import { lighten } from '../styles';
const root = theme => ({
backgroundColor: lighten(themeGet('colors.black.default', '#000')(theme), 0.6),
color: themeGet('colors.white.default', '#fff')(theme),
fontSize: '0.625rem',
fontWeight: 500,
padding: '4px 8px',
margin: '6px 0',
maxWidth: 320,
borderRadius: 2,
zIndex: 10001
});
export const styles = theme => ({
root: root(theme)
});