[PR #3] [MERGED] Export styles.css for Astro framework support #21

Closed
opened 2026-03-02 05:16:37 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hiaaryan/sileo/pull/3
Author: @ttymayor
Created: 2/15/2026
Status: Merged
Merged: 2/15/2026
Merged by: @hiaaryan

Base: mainHead: feat/astro-css-support


📝 Commits (1)

  • 6d5d1a2 feat: export styles.css for framework support

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 package.json (+2 -1)

📄 Description

Summary

Adds explicit CSS file export to package.json to support frameworks like Astro that require separate style imports.

Changes

  • Added "./dist/styles.css": "./dist/styles.css" export path to package.json
  • Replaced tabs with spaces

Motivation

Frameworks like Astro (especially when using View Transitions) need to import CSS files separately from the component library. This export allows users to explicitly import the Sileo styles:

import 'sileo/dist/styles.css'

Without this export, users would have to rely on deep imports or workarounds to access the stylesheet.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hiaaryan/sileo/pull/3 **Author:** [@ttymayor](https://github.com/ttymayor) **Created:** 2/15/2026 **Status:** ✅ Merged **Merged:** 2/15/2026 **Merged by:** [@hiaaryan](https://github.com/hiaaryan) **Base:** `main` ← **Head:** `feat/astro-css-support` --- ### 📝 Commits (1) - [`6d5d1a2`](https://github.com/hiaaryan/sileo/commit/6d5d1a220cbb3a955459ca507b6bdcff161125b2) feat: export styles.css for framework support ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+2 -1) </details> ### 📄 Description ## Summary Adds explicit CSS file export to package.json to support frameworks like Astro that require separate style imports. ## Changes - Added `"./dist/styles.css": "./dist/styles.css"` export path to package.json - Replaced tabs with spaces ## Motivation Frameworks like Astro (especially when using View Transitions) need to import CSS files separately from the component library. This export allows users to explicitly import the Sileo styles: ```js import 'sileo/dist/styles.css' ``` Without this export, users would have to rely on deep imports or workarounds to access the stylesheet. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 05:16:37 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/sileo#21
No description provided.