source: frontend/node_modules/tailwindcss/src/util/parseObjectStyles.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 429 bytes
Line 
1import postcss from 'postcss'
2import postcssNested from 'postcss-nested'
3import postcssJs from 'postcss-js'
4
5export default function parseObjectStyles(styles) {
6 if (!Array.isArray(styles)) {
7 return parseObjectStyles([styles])
8 }
9
10 return styles.flatMap((style) => {
11 return postcss([
12 postcssNested({
13 bubble: ['screen'],
14 }),
15 ]).process(style, {
16 parser: postcssJs,
17 }).root.nodes
18 })
19}
Note: See TracBrowser for help on using the repository browser.