UNPKG

@typographist/postcss

Version:

Toolkit for the rapid construction of interfaces with high quality typography.

10 lines (7 loc) 287 B
const { camelize } = require('./convertors'); // createBreakpointName :: String -> String exports.createBreakpointName = (x) => { const charactersAfterColon = /:.+\b/; const parentheses = /[()]/g; return camelize(x.replace(charactersAfterColon, '').replace(parentheses, '')); };