@primer/react
Version:
An implementation of GitHub's Primer Design System using React
53 lines (48 loc) • 1.52 kB
JavaScript
var theme$1 = require('./utils/theme.js');
var colorSchemes = require('./legacy-theme/ts/color-schemes.js');
const animation = {
easeOutCubic: 'cubic-bezier(0.33, 1, 0.68, 1)'
};
const breakpoints = ['544px', '768px', '1012px', '1280px'];
const fonts = {
normal: theme$1.fontStack(['-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Noto Sans', 'Helvetica', 'Arial', 'sans-serif', 'Apple Color Emoji', 'Segoe UI Emoji']),
mono: `var(--fontStack-monospace, ${theme$1.fontStack(['SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', 'Courier', 'monospace'])})`
};
const lineHeights = {
condensedUltra: 1,
condensed: 1.25,
default: 1.5
};
const fontWeights = {
light: 300,
normal: 400,
semibold: 500,
bold: 600
};
const borderWidths = [0, '1px'];
const radii = ['0', '3px', '6px', '100px'];
const sizes = {
small: '544px',
medium: '768px',
large: '1012px',
xlarge: '1280px'
};
const fontSizes = ['12px', '14px', '16px', '20px', '24px', '32px', '40px', '48px', '56px'];
const space = ['0', '4px', '8px', '16px', '24px', '32px', '40px', '48px', '64px', '80px', '96px', '112px', '128px'];
const theme = {
animation,
borderWidths,
breakpoints,
fonts,
fontSizes,
fontWeights,
lineHeights,
radii,
sizes,
space,
colorSchemes: colorSchemes.colorSchemes
};
// NOTE: for now, ThemeColors and ThemeShadows are handcrafted types. It would be nice if these
// were exports from primitives (or a different shape but derived from those exports).
module.exports = theme;
;