@wordpress/components
Version:
UI components for WordPress.
48 lines (39 loc) • 875 B
text/typescript
/**
* External dependencies
*/
import { css } from '@emotion/react';
/**
* Internal dependencies
*/
import { COLORS, CONFIG } from '../utils';
export const Text = css`
color: ${ COLORS.theme.foreground };
line-height: ${ CONFIG.fontLineHeightBase };
margin: 0;
text-wrap: balance; /* Fallback for Safari. */
text-wrap: pretty;
`;
export const block = css`
display: block;
`;
export const positive = css`
color: ${ COLORS.alert.green };
`;
export const destructive = css`
color: ${ COLORS.alert.red };
`;
export const muted = css`
color: ${ COLORS.gray[ 700 ] };
`;
export const highlighterText = css`
mark {
background: ${ COLORS.alert.yellow };
border-radius: ${ CONFIG.radiusSmall };
box-shadow:
0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,
0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;
}
`;
export const upperCase = css`
text-transform: uppercase;
`;