livellosegreto.it is one of the many independent Mastodon servers you can use to participate in the fediverse.
Livello Segreto è il social etico che ha rispetto di te e del tuo tempo.

Administered by:

Server stats:

1.2K
active users

#css

74 posts55 participants3 posts today

🌘 RCSS:結合 Rust 語法的 CSS 擴展
➤ 運用 Rust 語法打造更強大的 CSS
github.com/ved-patel226/RCSS
RCSS 是一個新穎的樣式語言,它將 Rust 的語法結構引入 CSS,旨在提供更強大的功能和更好的可維護性。它結合了 Rust 的可靠性以及類似 SASS 的特性,如巢狀結構和變數。目前已完成核心功能,包含 Rust 風格的語法解析、變數與巢狀結構的支援、無參數函式的支持,以及 VS Code 語法高亮擴展。未來計畫包含支援參數化的函式、導入功能、程式碼格式化工具、更完善的錯誤處理機制,以及 WASM 支援。
+ 「這個想法很棒!如果真的能將 Rust 的強大功能帶入 CSS,那絕對能解決很多前端開發的痛點。」
+ 「看起來很有潛力,但還需要看看它的實際效能和易用性如何。希望未來能有更多實際案例分享。」
#開發工具 #CSS #Rust

just an extension of css with rust syntax. Contribute to ved-patel226/RCSS development by creating an account on GitHub.
GitHubGitHub - ved-patel226/RCSS: just an extension of css with rust syntaxjust an extension of css with rust syntax. Contribute to ved-patel226/RCSS development by creating an account on GitHub.
Continued thread

Same visual result in both cases, it's just that the #CSS version specifies the entire RGBA value + (equidistant) stop positions for each stop, while the #SVG #filter one only specifies the alpha values for each stop. Given those are equidistant too, a `steps()` way of setting them would make sense.

More stepped gradient examples on @codepen
codepen.io/thebabydino/pen/jOo

These all use the same SVG filter.