https://github.com/sheraff/css-inline-modules
https://github.com/sheraff/css-inline-modules
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/sheraff/css-inline-modules
- Owner: Sheraff
- Created: 2023-12-20T22:32:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-24T12:37:57.000Z (over 2 years ago)
- Last Synced: 2025-01-26T19:51:52.464Z (over 1 year ago)
- Language: TypeScript
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CSS inline modules
Write CSS Modules inside your TSX files
```tsx
import { css, inline } from "./css"
const a = css(`
.foobar {
color: limegreen;
}
`)
const A = () =>
Hello
const b = css(`
.yolo {
color: pink;
}
.foobar {
text-decoration: underline;
}
`)
const B = () =>
Bonjour
const C = () => (
Hola
)