@mui/x-charts
Version:
The community edition of the Charts components (MUI X).
26 lines • 862 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import { styled } from '@mui/material/styles';
import { axisClasses } from "../../ChartsAxis/axisClasses.js";
export const AxisRoot = styled('g', {
name: 'MuiChartsAxis',
slot: 'Root',
overridesResolver: (props, styles) => styles.root
})(({
theme
}) => ({
[`& .${axisClasses.tickLabel}`]: _extends({}, theme.typography.caption, {
fill: (theme.vars || theme).palette.text.primary
}),
[`& .${axisClasses.label}`]: _extends({}, theme.typography.body1, {
fill: (theme.vars || theme).palette.text.primary
}),
[`& .${axisClasses.line}`]: {
stroke: (theme.vars || theme).palette.text.primary,
shapeRendering: 'crispEdges',
strokeWidth: 1
},
[`& .${axisClasses.tick}`]: {
stroke: (theme.vars || theme).palette.text.primary,
shapeRendering: 'crispEdges'
}
}));