Title: Add Support for Import as String · Issue #35 · unplugin/unplugin-lightningcss · GitHub
Open Graph Title: Add Support for Import as String · Issue #35 · unplugin/unplugin-lightningcss
X Title: Add Support for Import as String · Issue #35 · unplugin/unplugin-lightningcss
Description: Clear and concise description of the problem I have a web component-based design system that currently uses scss for handling styles pre-compile. I want to switch to Lightning CSS, but the problem is your rollup bundler just creates a CS...
Open Graph Description: Clear and concise description of the problem I have a web component-based design system that currently uses scss for handling styles pre-compile. I want to switch to Lightning CSS, but the problem ...
X Description: Clear and concise description of the problem I have a web component-based design system that currently uses scss for handling styles pre-compile. I want to switch to Lightning CSS, but the problem ...
Opengraph URL: https://github.com/unplugin/unplugin-lightningcss/issues/35
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add Support for Import as String","articleBody":"### Clear and concise description of the problem\n\nI have a web component-based design system that currently uses scss for handling styles pre-compile.\nI want to switch to Lightning CSS, but the problem is your rollup bundler just creates a CSS file, but I need this code to work in my component\n```js\nimport CSS from './my-style.css'\n``` \nWhat I want is CSS filled with the string value of my compiled CSS,l ike what I have in the scss compiler.\nhere is my code that only creates css file. https://github.com/javadbat/design-system/blob/d895c20e923b7be0b7c7456e3578e48e24c3f6b9/tasks/build/builder/src/web-component-builder.ts#L139\n\n### Suggested solution\n\nI need some config like {inline:true} so I can import css file content inline in my code or add some `?inline` like so i could import my css file compile result in inline variable\n\n### Alternative\n\n_No response_\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [x] Follow our [Code of Conduct](https://github.com/unplugin/.github/blob/main/CODE_OF_CONDUCT.md)\n- [x] Read the [Contributing Guide](https://github.com/antfu/contribute).\n- [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.","author":{"url":"https://github.com/javadbat","@type":"Person","name":"javadbat"},"datePublished":"2025-09-09T17:35:56Z","url":"https://github.com/unplugin/unplugin-lightningcss/issues/35"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9d9874ac-4e7e-2e12-6230-b234294ecc72 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 805A:20C949:3826CF:4CE064:6B006C7F |
| html-safe-nonce | 0717dd9ac08335bfaaa33e162a380f51e96c31f64a1c6d5cadfea4d5a54e2f16 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDVBOjIwQzk0OTozODI2Q0Y6NENFMDY0OjZCMDA2QzdGIiwidmlzaXRvcl9pZCI6IjQxNzQxNzkxMzc5NjA4MzIxMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 80bacc5a60d4886483629c91b8f9dfab22bf216715a5a59fb98cd2e6bab80f18 |
| hovercard-subject-tag | issue:3399354740 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/unplugin/unplugin-lightningcss/35/issue_layout |
| twitter:image | https://opengraph.githubassets.com/56ec77590dc14f3960407a0f3dd53a6ee4d5b788026372a744f5f630078cb692/unplugin/unplugin-lightningcss/issues/35 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/56ec77590dc14f3960407a0f3dd53a6ee4d5b788026372a744f5f630078cb692/unplugin/unplugin-lightningcss/issues/35 |
| og:image:alt | Clear and concise description of the problem I have a web component-based design system that currently uses scss for handling styles pre-compile. I want to switch to Lightning CSS, but the problem ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | javadbat |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa |
| turbo-cache-control | no-preview |
| go-import | github.com/unplugin/unplugin-lightningcss git https://github.com/unplugin/unplugin-lightningcss.git |
| octolytics-dimension-user_id | 143585159 |
| octolytics-dimension-user_login | unplugin |
| octolytics-dimension-repository_id | 677769344 |
| octolytics-dimension-repository_nwo | unplugin/unplugin-lightningcss |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 677769344 |
| octolytics-dimension-repository_network_root_nwo | unplugin/unplugin-lightningcss |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width