src/components/ui/Label/Styled.tsx (10 lines of code) (raw):
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import styled from 'styled-components';
import { defaultStyledConfig } from '../../../utils/style';
import { baseSpacing, baseStyles } from '../Base';
export const StyledLabel = styled.label.withConfig(defaultStyledConfig)`
color: ${(props) => props.theme.inputs.fontColor};
font-size: ${(props) => props.theme.fontSizes.label.fontSize};
line-height: ${(props) => props.theme.fontSizes.label.lineHeight};
${baseSpacing}
${baseStyles}
`;