@equinor/eds-core-react
Version:
The React implementation of the Equinor Design System
55 lines (52 loc) • 914 B
JavaScript
import { tokens } from '@equinor/eds-tokens';
const {
colors: {
ui: {
background__default: {
rgba: background
},
background__info: {
rgba: backgroundInfo
},
background__warning: {
rgba: backgroundWarning
},
background__danger: {
rgba: backgroundDanger
}
}
},
spacings: {
comfortable: {
medium: spacingMedium
}
},
shape: {
corners: {
borderRadius
}
}
} = tokens;
const primary = {
background: background,
border: {
type: 'border',
radius: borderRadius
},
spacings: {
left: spacingMedium,
bottom: spacingMedium,
right: spacingMedium,
top: spacingMedium
}
};
const info = {
background: backgroundInfo
};
const danger = {
background: backgroundDanger
};
const warning = {
background: backgroundWarning
};
export { danger, info, primary, warning };