{"id":17244407,"url":"https://github.com/takuma-ru/unplugin-lit-sass","last_synced_at":"2025-09-23T14:55:29.661Z","repository":{"id":242817816,"uuid":"809565668","full_name":"takuma-ru/unplugin-lit-sass","owner":"takuma-ru","description":"SCSS files to be imported as css variables in lit.","archived":false,"fork":false,"pushed_at":"2024-07-24T05:10:38.000Z","size":89,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-22T03:38:08.000Z","etag":null,"topics":["css","lit","lit-element","sass","scss","unplugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takuma-ru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-03T02:39:11.000Z","updated_at":"2024-07-24T05:10:41.000Z","dependencies_parsed_at":"2024-07-24T06:51:16.237Z","dependency_job_id":null,"html_url":"https://github.com/takuma-ru/unplugin-lit-sass","commit_stats":null,"previous_names":["takuma-ru/unplugin-lit-sass"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/takuma-ru/unplugin-lit-sass","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuma-ru%2Funplugin-lit-sass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuma-ru%2Funplugin-lit-sass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuma-ru%2Funplugin-lit-sass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuma-ru%2Funplugin-lit-sass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takuma-ru","download_url":"https://codeload.github.com/takuma-ru/unplugin-lit-sass/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuma-ru%2Funplugin-lit-sass/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276595483,"owners_count":25670167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","lit","lit-element","sass","scss","unplugin"],"created_at":"2024-10-15T06:18:39.885Z","updated_at":"2025-09-23T14:55:29.603Z","avatar_url":"https://github.com/takuma-ru.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unplugin-lit-sass\n\n## Description\n`unplugin` to allow `.scss` files to be imported as css variables in lit.\n\n## Getting Started\n\n### 1. Install\n```bash\npnpm add unplugin-lit-sass\n```\n\n### 2. Configure\n\u003cdetails\u003e\n\u003csummary\u003evite\u003c/summary\u003e\n\n`vite.config.ts`\n```ts\nimport { defineConfig } from \"vite\";\nimport { unpluginLitSass } from \"unplugin-lit-sass\";\n\nexport default defineConfig({\n  plugins: [unpluginLitSass.vite()],\n});\n```\n\n`src/vite-env.d.ts`\n```ts\n/// \u003creference types=\"unplugin-lit-sass/@types\" /\u003e\n```\n\u003c/details\u003e\n\n## Usage\n### 1. Create SCSS file\nCreate .scss.\ne.g.) `lit-component-name.scss`.\n\n### 2. Import SCSS file from Lit component file\n\u003e [!WARNING]\n\u003e The path name must end with `?litSass`.\n\u003e Giving this query will run the plugin\n\n```ts\nimport styles from \"./lit-component-name.scss?litSass\";\n// or\nimport { styles } from \"./lit-component-name.scss?litSass\";\n```\n\n### 3. Apply scss\n```ts\nimport styles from \"./my-element.scss?litSass\";\n\n@customElement(\"my-element\")\nexport class MyElement extends LitElement {\n  static readonly styles: CSSResultArray = [styles];\n  // ...\n\n  render() {\n    // ...\n  }\n}\n```\n\n## Options\n### `fileType`\n#### Description\nFile type to be processed.\n#### Default\n```[\".scss\", \".sass\"]```\n#### Type\n```Array\u003c`.${string}` | `?${string}`\u003e```\n\n\n### All options\n```ts\nexport type Options = {\n  /**\n   * File type to be processed.\n   *\n   * @default [\".scss\", \".sass\"]\n   */\n  fileType?: Array\u003c`.${string}` | `?${string}`\u003e;\n};\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuma-ru%2Funplugin-lit-sass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakuma-ru%2Funplugin-lit-sass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuma-ru%2Funplugin-lit-sass/lists"}