プロジェクトmodular-css
概要
CSS Modulesをより使いやすくした実装です。Rollup、Vite、Webpack、CLI、PostCSS、JS APIから利用できます。
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルmodular-css

A streamlined re-interpretation of CSS Modules
Documentation
Check out the official modular-css site: http://m-css.com/
Try it
There's an online REPL where you can try out modular-css without needing to install anything!
Features
Composition
.red {
color: red;
}
.blue {
composes: red;
background: blue;
}
/* in the output .blue will be combination of both styles */
Values
@value alert: #F00;
.alert {
color: alert;
}
/* will output as */
.alert {
color: #F00;
}
Selector Scoping
.style {
color: red;
}
:global(.style2) {
color: blue;
}
/* Will output as */
/* Scoped with unique file-based prefix */
.f5507abd_style {
color: red;
}
/* Remains unstyled due to :global() pseudo */
.style2 {
color: blue;
}
Style Overrides
/* input.css */
.input {
width: 100%;
}
/* fieldset.css */
.fieldset :external(input from "./input.css") {
width: 50%;
}
More detailed descriptions are available on the website.
Install
Detailed installation instructions are available on m-css.com
関連プロジェクトを探す
読み込み中…