Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
/ mistcss Public archive
forked from typicode/mistcss

Write atomic React components using only CSS! (JS-from-CSS™) 🌬️

License

Notifications You must be signed in to change notification settings

0oooooooo0/mistcss

 
 

Repository files navigation

MistCSS 🌬️

Node.js CI

Write React components using CSS only

MistCSS is a new, better and faster way to write visual components. CSS-in-JS? Nope! JS-from-CSS 👍

View the site to learn more.

Supports Next.js, Remix and TailwindCSS. More to come.

Paragraph.mist.css

@scope (.paragraph) {
  p:scope {
    color: black;

    &[data-error] {
      color: red;
    }
  }
}

App.jsx

import { Paragraph } from 'Paragraph.mist.css'

export default const App = () => (
  <main>
    <Paragraph>I'm a React component written in CSS only</Paragraph>
    <Paragraph error>props can be passed</Paragraph>

    {/* 💥 TypeScript will catch errors */}
    <Paragraph eror>typo</Paragraph>
    <Paragraph type="button">invalid prop</Paragraph>
  </main>
)

Documentation

https://typicode.github.io/mistcss

Why the name?

C in CSS stands for cascade 🌊 → atomized water forms mist 🌫️ → MistCSS creates pure CSS atomic components 🌬️

About

Write atomic React components using only CSS! (JS-from-CSS™) 🌬️

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.3%
  • TypeScript 5.5%
  • CSS 3.2%