import React from 'react'; import styled from 'styled-components'; import { Box } from '../src/lib/components/box/Box'; const info = { title: 'Components/Styling/Box', component: Box, decorators: [(story) => {story()}], }; export default info; const HighlightBorder = styled.div` border: 1px solid red; div, span, p { border: 1px solid blue; } `; export const margin = { render: ({}) => { return ( <> Props m 0 = 0 Props m 1 = 0.071rem Props m 2 = 0.143rem Props m 3 = 0.286rem Props m 4 = 0.571rem Props m 5 = 0.71rem Props m 6 = 0.857rem Props m 7 = 1rem Props m 8 = 1.143rem Props m 9 = 1.429rem Props m 10 = 1.714rem Props m 11 = 2rem Props m 12 = 2.286rem Props m 13 = 2.857rem Props m 14 = 14px ); }, }; export const font = { render: ({}) => { return ( <> Smaller font Small font Base font large font larger font huge font massive font ); }, }; export const position = { render: ({}) => { return ( Left Justify Content space between Right Left Justify Content space between Right Left Gap 6 Right ); }, }; export const colors = { render: ({}) => { return ( red textPrimary with background color at backgroundLevel2 textSecondary textLink ); }, };