💧 Write atomic components using only CSS! (JS-from-CSS™)
Mist Hashira
I'm proud to announce that MistCSS now supports Vue! Also, following Vue's tradition, this release is named after an anime.
You can now write your atomic Vue components in CSS only! :green_heart:
/* Button.mist.css */
@scope (button.custom-button) {
/* ... */
}
mistcss ./components --target=vue
// App.vue
import CustomButton from 'Button.mist`
Full Changelog: https://github.com/typicode/mistcss/compare/v0.5.0...v0.5.1
mistcss ./components --target=astro
--render
option to --target
Full Changelog: https://github.com/typicode/mistcss/compare/v0.4.0...v0.5.0
Before:
@scope (.badge) {
div:scope {
Now:
@scope (div.badge) {
:scope {
Full Changelog: https://github.com/typicode/mistcss/compare/v0.3.8...v0.4.0
Full Changelog: https://github.com/typicode/mistcss/compare/v0.3.7...v0.3.8
Full Changelog: https://github.com/typicode/mistcss/compare/v0.3.6...v0.3.7
Full Changelog: https://github.com/typicode/mistcss/compare/v0.3.5...v0.3.6
.mist.css
fileCard.mist.css
@scope (.card) { /* ... */ }
@scope (.card-title) { /* ... */ }
@scope (.card-image) { /* ... */ }
App.tsx
import { Card, CardTitle, CardImage } from 'Card.mist`
Full Changelog: https://github.com/typicode/mistcss/compare/v0.3.3...v0.3.4