decanter
Version:
Design System Tailwind CSS Preset.
38 lines (35 loc) • 1.18 kB
JavaScript
/**
* For displaying the Stanford University logo using custom font and glyphs
* Default color is Cardinal Red, but can be overriden by applying TW text color classes
*/
module.exports = function () {
return function ({ addComponents, theme, config }) {
const stanford = config('theme.fontFamily.stanford').join(', ');
const components = {
'.logo': {
display: 'inline-block',
fontFamily: stanford,
fontWeight: theme('fontWeight.normal'),
lineHeight: '0.75',
textDecoration: 'none',
textTransform: 'none',
transform: 'translateZ(0)',
fontStyle: 'normal',
fontVariant: 'normal',
letterSpacing: '0',
color: theme('colors.cardinal-red.DEFAULT'),
fontFeatureSettings: '"liga" 1',
fontVariantLigatures: 'discretionary-ligatures',
'-webkit-font-smoothing': 'antialiased',
'-moz-osx-font-smoothing': 'grayscale',
'&:focus': {
color: theme('colors.cardinal-red.DEFAULT'),
},
'&:hover': {
color: theme('colors.cardinal-red.DEFAULT'),
},
},
};
addComponents(components);
};
};