v3.0.0-beta.1 - Not working with some classes
See original GitHub issueExample
Windi CSS Config
module.exports = {
theme: {
extend: {
margin: {
large: '4rem',
medium: '2.5rem',
small: '1rem',
},
colors: {
primary: {
DEFAULT: '#991B1B',
50: '#F0AAAA',
100: '#EC9494',
200: '#E46969',
300: '#DD3D3D',
400: '#C42323',
500: '#991B1B',
600: '#6E1313',
700: '#420C0C',
800: '#170404',
900: '#000000',
},
},
},
},
};
HTML
<div class="bg-primary h-1.5 mx-auto rounded-lg w-30 "></div>
Output CSS
.rounded-lg {
border-radius: 0.5rem;
}
.mx-auto {
margin-left: auto;
margin-right: auto;
}
// I don't know why, but it will be created 2 times if you use `mx-auto` 2 times in difference place
.mx-auto {
margin-left: auto;
margin-right: auto;
}
.bg-primary {
--tw-bg-opacity: 1;
background-color: rgba(153, 27, 27, var(--tw-bg-opacity));
}
h-1.5
and w-30
the two are is missing from CSS Output.
Environment
- Rollup
v2.33.1
- Svelte
v3.29.4
- Windi CSS Preprocess
v3.0.0-beta.1
I use Routify Framework for the routing library. See https://github.com/lamualfa/routify-windi.
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (8 by maintainers)
Top Results From Across the Web
“Mac Mouse Fix quit unexpectedly” when opening v3.0.0 Beta ...
Description I get a “Mac Mouse Fix quit unexpectedly” error every time I try to open the new v3.0.0 beta. Steps to reproduce...
Read more >Change Log — HOOMD-blue 3.0.0 documentation
See the Migrating to HOOMD v3 page for an overview and individual class and method documentation for more information. To summarize, the new...
Read more >JavaScript Client Reference v3.0.0-beta.1
The Braintree JavaScript SDK is split up into several modules. Each module is also represented by a class encapsulating the actions that module...
Read more >Release notes | U.S. Web Design System (USWDS) - Digital.gov
Here you'll find our release notes — summaries of bug fixes, new features, and other updates introduced in each release. Have suggestions for...
Read more >Ethereum Gas Station Network (GSN) | v3.0.0 beta.1 pre-release
The problem. Without GSN, anyone who sends an Ethereum transaction needs to have ETH to pay for gas fees. This forces new users...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
it is an issue of rollup config somehow. the classes do get generated correctly in the preprocessor. however, do not ask me to fix it right now. Have to look into rollup in more detail, I never used it, if you have the time, please try with snowpack example and see if the inline expression work there
@lamualfa i think
compile: true
is not working and buggy. Can you try withfalse
and check? also, I will track it in new issue here https://github.com/windicss/svelte-windicss-preprocess/issues/58