astroturf
astroturf copied to clipboard
Better Styling through Compiling: CSS-in-JS for those that want it all.
I tried to adding [HardSourceWebpackPlugin](https://github.com/mzgoddard/hard-source-webpack-plugin) to our `webpack.config.js` to speed up our builds, but it looks like `astroturf/loader` is incompatible with it. ``` Reading from cache a5d18e5f... ModuleNotFoundError: Module not...
I am using the postcss-loader with the stylelint plugin. When I'm using css-literal-loader I get the following error: ``` ERROR in ./~/css-loader?modules&camelcase&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!./~/postcss-loader!./src/App__css_literal_loader_0.css Module build failed: Error: ENOENT: no such file...
Hi! Im trying to use astroturf and stuck at SSR support. My SSR implementation: 1. Build all files with webpack 2. Run server, and render to string As a result,...
Function **styled** from file **styled.js** takes 3 parameters but type declaration for interface **CreateStyled** from **index.d.ts** takes 2 parameters.
Hi! I like you library and have one question: How I can make css specificity for elements? For example, I have semantic-ui component with `.ui.menu {color: red}` in library css....
A major sticking point for people with zero-runtime CSS-in-JS solutions (e.g. css-modules) has been around code-sharing. The `import styles from './styles.css';` is problematic since its not a standard node module....
Project created with CRA, `config-overrides` setup: ``` config.module.rules.push({ test: /\.(js|mjs|jsx|ts|tsx)$/, use: [ { loader: 'astroturf/loader', options: { extension: '.module.css' }, }, ], }) ``` Components code: ``` export const OptionElement...
On a previous project I used https://github.com/TrySound/postcss-inline-svg to inline SVGs. It would make sense (IMO) for the following to work: ```js import dropdownIcon from 'url-loader!./assets/icons/dropdown.svg'; css` .dropdown { background-image: url(${dropdownIcon});...
Hi! Astroturf can work with react-app-rewired and without eject create-react-app?
There is a complains that Astroturf uses too many HOCs which create big React tree. https://twitter.com/oleg008/status/1111215885275017218 Hooks could improve the case