Comments (1)
This seems related to lightningcss messing with the CSS's order during the optimizing phase.
![CleanShot 2024-02-17 at 21 28 54@2x](https://private-user-images.githubusercontent.com/6916170/305671200-75b44253-547f-4139-b824-71fa18ce73f4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDk5NjI2OTUsIm5iZiI6MTcwOTk2MjM5NSwicGF0aCI6Ii82OTE2MTcwLzMwNTY3MTIwMC03NWI0NDI1My01NDdmLTQxMzktYjgyNC03MWZhMThjZTczZjQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDMwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAzMDlUMDUzMzE1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTYxYzkzZWMzZmRhOTFmYzA2NmI5MGYyNGM2Mjc2YTFmZGI5YzUxYjhkMDlkMDIyNTI5OGE0ODNhMWY4MzhhMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.tKUTRbMI9t_rq28qAqwX_-B1P0sYCM2bptv4mKtYjV4)
I recommend using a hook to correct this for now.
// panda.config.ts
export default defineConfig({
// ...
hooks: {
'cssgen:done'({ content, artifact }) {
if (artifact !== 'styles.css') return content
const rule = '@layer reset, base, tokens, recipes, utilities'
return content.startsWith(rule) ? content : `${rule};\n\n${content}`
},
},
})
There is not a regression in Panda. We'll consider opening an issue in the lightningcss repo.
from panda.
Related Issues (20)
- support px to rem? HOT 1
- Support Style Props for Svelte HOT 1
- Wrong "missing token" warning when using nested tokens
- Semantic tokens break tokens completely HOT 4
- Jest encountered an unexpected token
- Code completion issues in Webstorm
- cva not extracting css in 0.33.0 HOT 1
- CVA and SVA not pre-generating CSS HOT 1
- backgroundImage doesn't work with template string as value HOT 1
- Pattern styles not compiled in monorepo
- Pattern styles not compiled in monorepo HOT 4
- Panda config polyfill & preflight options bug HOT 2
- Styles not generated on windows
- Color opacity modifier syntax (blue.300/70) in token references doesn't work with conditions HOT 1
- Recipe invalid when I change the name of the component HOT 1
- Config Recipe are not extracted properly using `raw` function HOT 2
- Using color opacity modifier syntax in semantic tokens with conditions will throw an error in validation
- Duplicated classes in extended components HOT 2
- Allow multi themes on pandacss/studio
- Unclear what CSS values are valid for `border` when `strictPropertyValues` is enabled HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panda.