Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function generator ({ colors, borders, spacing, typography }) {
return {
backgroundColor: alpha(colors.backgroundDarkest, 80),
bufferedBackgroundColor: alpha(colors.backgroundDarkest, 80),
progressBackgroundColor: alpha(colors.backgroundBrand, 90),
focusOutlineColor: colors.borderBrand,
focusOutlineWeight: borders.widthMedium,
timestampFontWeight: typography.fontWeightLight,
timestampColor: colors.textLightest,
timestampFontSize: typography.fontSizeXSmall,
timestampPadding: `0 ${spacing.xSmall}`,
tooltipTop: '-1.65rem',
tooltipPadding: `${spacing.xxxSmall} ${spacing.xxSmall}`,
tooltipFontWeight: typography.fontWeightLight,
tooltipBackgroundColor: colors.backgroundBrand,
tooltipColor: colors.textLightest,
tooltipCaretSize: spacing.xxSmall,
tooltipFontSize: typography.fontSizeXSmall,
tooltipLineWidth: borders.widthMedium
generator.canvas = function (variables) {
return {
color: variables['ic-brand-font-color-dark'],
arrowColor: variables['ic-brand-font-color-dark'],
focusBorderColor: variables['ic-brand-primary'],
focusOutlineColor: alpha(variables['ic-brand-primary'], 50)
}
}
export default function generator ({ colors, borders, spacing, typography }) {
return {
backgroundColor: alpha(colors.backgroundDarkest, 80),
bufferedBackgroundColor: alpha(colors.backgroundDarkest, 80),
progressBackgroundColor: alpha(colors.backgroundBrand, 90),
focusOutlineColor: colors.borderBrand,
focusOutlineWeight: borders.widthMedium,
timestampFontWeight: typography.fontWeightLight,
timestampColor: colors.textLightest,
timestampFontSize: typography.fontSizeXSmall,
timestampPadding: `0 ${spacing.xSmall}`,
tooltipTop: '-1.65rem',
tooltipPadding: `${spacing.xxxSmall} ${spacing.xxSmall}`,
tooltipFontWeight: typography.fontWeightLight,
tooltipBackgroundColor: colors.backgroundBrand,
tooltipColor: colors.textLightest,
tooltipCaretSize: spacing.xxSmall,
tooltipFontSize: typography.fontSizeXSmall,
tooltipLineWidth: borders.widthMedium
}
export default function generator ({ colors, borders, spacing, typography }) {
return {
backgroundColor: alpha(colors.backgroundDarkest, 80),
bufferedBackgroundColor: alpha(colors.backgroundDarkest, 80),
progressBackgroundColor: alpha(colors.backgroundBrand, 90),
focusOutlineColor: colors.borderBrand,
focusOutlineWeight: borders.widthMedium,
timestampFontWeight: typography.fontWeightLight,
timestampColor: colors.textLightest,
timestampFontSize: typography.fontSizeXSmall,
timestampPadding: `0 ${spacing.xSmall}`,
tooltipTop: '-1.65rem',
tooltipPadding: `${spacing.xxxSmall} ${spacing.xxSmall}`,
tooltipFontWeight: typography.fontWeightLight,
tooltipBackgroundColor: colors.backgroundBrand,
tooltipColor: colors.textLightest,
tooltipCaretSize: spacing.xxSmall,
tooltipFontSize: typography.fontSizeXSmall,
tooltipLineWidth: borders.widthMedium
}
}
smallFontSize: typography.fontSizeSmall,
smallArrowWidth: '0.75rem',
mediumHeight: forms.inputHeightMedium,
mediumFontSize: typography.fontSizeMedium,
mediumArrowWidth: '0.875rem',
largeHeight: forms.inputHeightLarge,
largeFontSize: typography.fontSizeLarge,
largeArrowWidth: '1rem',
focusBorderColor: colors.borderBrand,
focusOutlineColor: alpha(colors.borderBrand, 50),
errorBorderColor: colors.crimson,
errorOutlineColor: alpha(colors.crimson, 50)
}
}
arrowColor: colors.textDarkest,
smallHeight: forms.inputHeightSmall,
smallFontSize: typography.fontSizeSmall,
smallArrowWidth: '0.75rem',
mediumHeight: forms.inputHeightMedium,
mediumFontSize: typography.fontSizeMedium,
mediumArrowWidth: '0.875rem',
largeHeight: forms.inputHeightLarge,
largeFontSize: typography.fontSizeLarge,
largeArrowWidth: '1rem',
focusBorderColor: colors.borderBrand,
focusOutlineColor: alpha(colors.borderBrand, 50),
errorBorderColor: colors.crimson,
errorOutlineColor: alpha(colors.crimson, 50)
}
}
export default function generator ({ colors, borders, spacing, typography }) {
return {
backgroundColor: alpha(colors.backgroundDarkest, 80),
bufferedBackgroundColor: alpha(colors.backgroundDarkest, 80),
progressBackgroundColor: alpha(colors.backgroundBrand, 90),
focusOutlineColor: colors.borderBrand,
focusOutlineWeight: borders.widthMedium,
timestampFontWeight: typography.fontWeightLight,
timestampColor: colors.textLightest,
timestampFontSize: typography.fontSizeXSmall,
timestampPadding: `0 ${spacing.xSmall}`,
tooltipTop: '-1.65rem',
tooltipPadding: `${spacing.xxxSmall} ${spacing.xxSmall}`,
tooltipFontWeight: typography.fontWeightLight,
tooltipBackgroundColor: colors.backgroundBrand,
tooltipColor: colors.textLightest,
tooltipCaretSize: spacing.xxSmall,
tooltipFontSize: typography.fontSizeXSmall,
tooltipLineWidth: borders.widthMedium
export default function generator ({ colors, borders, spacing, typography }) {
return {
backgroundColor: alpha(colors.backgroundDarkest, 80),
bufferedBackgroundColor: alpha(colors.backgroundDarkest, 80),
progressBackgroundColor: alpha(colors.backgroundBrand, 90),
focusOutlineColor: colors.borderBrand,
focusOutlineWeight: borders.widthMedium,
timestampFontWeight: typography.fontWeightLight,
timestampColor: colors.textLightest,
timestampFontSize: typography.fontSizeXSmall,
timestampPadding: `0 ${spacing.xSmall}`,
tooltipTop: '-1.65rem',
tooltipPadding: `${spacing.xxxSmall} ${spacing.xxSmall}`,
tooltipFontWeight: typography.fontWeightLight,
tooltipBackgroundColor: colors.backgroundBrand,
tooltipColor: colors.textLightest,
tooltipCaretSize: spacing.xxSmall,
tooltipFontSize: typography.fontSizeXSmall,
tooltipLineWidth: borders.widthMedium
}
}
export default function generator ({ colors }) {
return {
backgroundColor: alpha(colors.backgroundDarkest, 70),
fontColor: colors.textLightest,
fontSize: '10rem'
}
}
export default function generator ({ colors, borders, spacing, typography }) {
return {
backgroundColor: alpha(colors.backgroundDarkest, 80),
bufferedBackgroundColor: alpha(colors.backgroundDarkest, 80),
progressBackgroundColor: alpha(colors.backgroundBrand, 90),
focusOutlineColor: colors.borderBrand,
focusOutlineWeight: borders.widthMedium,
timestampFontWeight: typography.fontWeightLight,
timestampColor: colors.textLightest,
timestampFontSize: typography.fontSizeXSmall,
timestampPadding: `0 ${spacing.xSmall}`,
tooltipTop: '-1.65rem',
tooltipPadding: `${spacing.xxxSmall} ${spacing.xxSmall}`,
tooltipFontWeight: typography.fontWeightLight,
tooltipBackgroundColor: colors.backgroundBrand,
tooltipColor: colors.textLightest,
tooltipCaretSize: spacing.xxSmall,
tooltipFontSize: typography.fontSizeXSmall,
tooltipLineWidth: borders.widthMedium
}